DSP OVERVIEW DSP OVERVIEW • DSPs are like “traditional” embedded DSPs are like “traditional” embedded microprocessors microprocessors • DSPs are designed to meet sophisticated DSPs are designed to meet sophisticated “signal processing algorithms” “signal processing algorithms” • DSPs are used in drives, audio & video DSPs are used in drives, audio & video applications, image applications, bio applications, image applications, bio medical, industrial automations etc., medical, industrial automations etc.,
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
DSP OVERVIEWDSP OVERVIEW
• DSPs are like “traditional” embedded DSPs are like “traditional” embedded microprocessorsmicroprocessors
• DSPs are designed to meet sophisticated DSPs are designed to meet sophisticated “signal processing algorithms”“signal processing algorithms”
• DSPs are used in drives, audio & video DSPs are used in drives, audio & video applications, image applications, bio applications, image applications, bio medical, industrial automations etc.,medical, industrial automations etc.,
ADVANTAGES OF DSP……ADVANTAGES OF DSP……
• Easy to change applicationsEasy to change applications
• Better control & accuracyBetter control & accuracy
• Easy to execute complex algorithms like svpwm, Easy to execute complex algorithms like svpwm, vector control , dtc etc.,vector control , dtc etc.,
• Compact in size (ic)Compact in size (ic)
• Cost effective (ic) for particular applications. Cost effective (ic) for particular applications.
DSP LEADING MANUFACTURERSDSP LEADING MANUFACTURERS
• TMS320C2000 series offers various processors for TMS320C2000 series offers various processors for motor control applications motor control applications
• Based on the requirements user can choose the Based on the requirements user can choose the following processorsfollowing processors
TMS320C240TMS320C240
TMS320LF2407TMS320LF2407
TMS320LF2812TMS320LF2812
LF2407 KEY FEATURESLF2407 KEY FEATURES
• 3.3v operating volts3.3v operating volts
• 16 bit fixed point processor with 144 pins16 bit fixed point processor with 144 pins
• 40MHz operating frequency40MHz operating frequency
• 32KWord FLASH memory, 2.5 K Word RAM32KWord FLASH memory, 2.5 K Word RAM
PLL Clock Module provides all of the clocks required for the PLL Clock Module provides all of the clocks required for the entire device.entire device.
• CPUCLKCPUCLK – – This is the highest frequency clock provided by the This is the highest frequency clock provided by the module and is used by the CPU, all memories and any module and is used by the CPU, all memories and any peripherals tied directly to the CPUs buses, including an peripherals tied directly to the CPUs buses, including an external memory interface if used. external memory interface if used.
• SYSCLKSYSCLK – – This clock is a half or a quarter the rate of CPUCLK. This clock is a half or a quarter the rate of CPUCLK. It is used to clock all the peripherals on the TI peripheral bus.It is used to clock all the peripherals on the TI peripheral bus.
• WDCLKWDCLK – – This is the low power clock used by the watchdog This is the low power clock used by the watchdog timer/real- time interrupt module. timer/real- time interrupt module.
WATCHDOG TIMER MODULEWATCHDOG TIMER MODULE
• Internal 8 bit re-settable up counting timer, that Internal 8 bit re-settable up counting timer, that reset the system if software fails to operate reset the system if software fails to operate properly.properly.
• If the software goes into an improper loop, or if If the software goes into an improper loop, or if the CPU becomes temporarily disrupted, the WD the CPU becomes temporarily disrupted, the WD timer overflows to assert a system reset.timer overflows to assert a system reset.
• The watchdog increases the reliability of the The watchdog increases the reliability of the CPU, thus ensuring system integrity.CPU, thus ensuring system integrity.
SERIAL COMMUNICATION INTERFACE SERIAL COMMUNICATION INTERFACE MODULEMODULE
• The programmable SCI module supports digital The programmable SCI module supports digital communications between the CPU and other communications between the CPU and other asynchronous peripherals.asynchronous peripherals.
• To ensure data integrity, the SCI checks data that To ensure data integrity, the SCI checks data that has been received for break detection, parity, has been received for break detection, parity, overrun, and framing errors.overrun, and framing errors.
• The speed of the bit rate (baud) is programmable to The speed of the bit rate (baud) is programmable to over 64K different speeds through a 16-bit baud-over 64K different speeds through a 16-bit baud-select register.select register.
SERIAL PERIPHERAL INTERFACE MODULESERIAL PERIPHERAL INTERFACE MODULE
• The SPI is a high-speed synchronous serial input/ The SPI is a high-speed synchronous serial input/ output (I/O) port that allows a serial bit stream of output (I/O) port that allows a serial bit stream of programmed length (one to eight bits) to be shifted into programmed length (one to eight bits) to be shifted into and out of the device at a programmed bit-transfer rate.and out of the device at a programmed bit-transfer rate.
• The SPI is normally used for communications between The SPI is normally used for communications between the DSP controller and external peripherals or another the DSP controller and external peripherals or another controller.controller.
• SPI applications include external I/O or peripheral SPI applications include external I/O or peripheral expansion via devices such as shift registers, display expansion via devices such as shift registers, display drivers, and analog-to-digital converters (ADCs).drivers, and analog-to-digital converters (ADCs).
DIGITAL I/O MODULEDIGITAL I/O MODULE
• The digital I/O ports module provides a The digital I/O ports module provides a flexible method for controlling both flexible method for controlling both dedicated I/O and shared pin functionsdedicated I/O and shared pin functions
• The LF2407 has a total of 40 shared I/O linesThe LF2407 has a total of 40 shared I/O lines
• I/O ports can be used as i/o lines or as pwm I/O ports can be used as i/o lines or as pwm lineslines
EVENT MANAGER (EV) MODULEEVENT MANAGER (EV) MODULE• The EV module provides functions and features that are required for motor The EV module provides functions and features that are required for motor
control applicationscontrol applications
• LF2407 has two event managers EVA & EVBLF2407 has two event managers EVA & EVB
• GPTCONAGPTCONA -- General purpose timer control register General purpose timer control register • T1CNTT1CNT -- Timer1 counter registerTimer1 counter register• T1CMPRT1CMPR -- Timer1 compare registerTimer1 compare register• T1PRT1PR -- Timer1 period registerTimer1 period register• T1CONT1CON -- Timer1 control registerTimer1 control register
• EVENT MANAGER COMPARE CONTROL REGISTERSEVENT MANAGER COMPARE CONTROL REGISTERS
• COMCONACOMCONA -- Compare control registerCompare control register• ACTRAACTRA -- Action control registerAction control register• DBTCONADBTCONA -- Dead-band control registerDead-band control register• CPMR1CPMR1 -- Compare register1Compare register1• CMPR2CMPR2 -- Compare register2Compare register2• CMPR3CMPR3 -- Compare register3Compare register3
SPACE VECTOR PWM MODULESPACE VECTOR PWM MODULE
• The EV module has built-in hardware to The EV module has built-in hardware to generate svpwmgenerate svpwm
• Software is used to generate svpwm Software is used to generate svpwm outputsoutputs
CAPTURE & QEP UNITSCAPTURE & QEP UNITS• The capture & QEP units can be used to The capture & QEP units can be used to
interface with an optical encoder to get interface with an optical encoder to get speed information from the rotating speed information from the rotating machinemachine
• Capture unit is used to sense the actual Capture unit is used to sense the actual speed of the machinespeed of the machine
• QEP is used to find the direction of rotation QEP is used to find the direction of rotation of the machineof the machine
ANALOG TO DIGITAL ANALOG TO DIGITAL CONVERTERCONVERTERFeatures:Features:
• 10-bit ADC core with built-in S/H circuit10-bit ADC core with built-in S/H circuit
• Fast conversion time of 500nsFast conversion time of 500ns
• 16 multiplexed analog input16 multiplexed analog input
• Two independent 8 state sequencer can beTwo independent 8 state sequencer can be operated in dual-sequencer or cascaded modeoperated in dual-sequencer or cascaded mode
• 16 result registers to store the digital values16 result registers to store the digital values
ADC BLOCK DIAGRAMADC BLOCK DIAGRAM
ADC CONTROL REGISTERSADC CONTROL REGISTERS
• ADCTRL1ADCTRL1 - Adc control register1- Adc control register1
• ADCTRL2ADCTRL2 - Adc control register2- Adc control register2
• MAXCONVMAXCONV- Maximum conversion reg- Maximum conversion reg