Copyright © Am Road Electronics Co., Ltd. TMS320C24x Overview Max Chyou Engineering Manager AmRoad Co.Ltd.

Slides:



Advertisements
Similar presentations
DSPs Vs General Purpose Microprocessors
Advertisements

8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
ECE 2211 Microprocessor and Interfacing Chapter 8 The 8088/8086 Microprocessors and their memory and I/O interfaces Br. Athaur Rahman Bin Najeeb Room.
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
9/20/6Lecture 3 - Instruction Set - Al1 The Hardware Interface.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 11.
Introduction of Holtek HT-46 series MCU
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
The 8051 Microcontroller architecture
Ehsan Shams Saeed Sharifi Tehrani. What is DSP ? Digital Signal Processing (DSP) is used in a wide variety of applications, and it is hard to find a good.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
DARPA Digital Audio Receiver, Processor and Amplifier Group Z James Cotton Bobak Nazer Ryan Verret.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose:  This training module provides a technical description of Renesas.
Ch. 9 Interrupt Programming and Real-Time Sysstems From Valvano’s Introduction to Embedded Systems.
System Clocks.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 8.
Event Manager Block Diagram (EVA)
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
Typical Microcontroller Purposes
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
Microprocessor-based Systems
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
EEE440 Computer Architecture
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
1 - 1 Digital Signal Controller TMS320F2812 Module 1 : Architecture.
Control code in the memory (The flow chart of the control code shown in Fig.-8.2) Pyroelectric transducer Input port/buffer Temporary memory-1 Analog to.
80386DX. Features of 80386DX It supports 8/16/32 bit data operands It has 32-bit internal registers It supports 32-bit data bus and 32-bit non-multiplexed.
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
EFLAG Register of The The only new flag bit is the AC alignment check, used to indicate that the microprocessor has accessed a word at an odd.
32-Bit-Digital Signal Controller Texas Instruments Incorporated
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
System Integration Module MTT Motoola SYSTEM INTEGRATION MODULE (SIM)
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Chapter Microcontroller
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
Multiplex of Data and Address Lines in 8088 Address lines A0-A7 and Data lines D0-D7 are multiplexed in These lines are labelled as AD0-AD7. –By.
Components of a typical full-featured microcontroller.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
68HC11 Interrupts & Resets.
Basic Processor Structure/design
Timer and Interrupts.
ECE 353 Introduction to Microprocessor Systems
Introduction to the processor and its pin configuration
AVR Addressing Modes Subject: Microcontoller & Interfacing
8086/8088 Hardware Specifications
E3165 DIGITAL ELECTRONIC SYSTEM
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
전자의료시스템 및 실습 System Configuration/Interrupt
AVR – ATmega103(ATMEL) Architecture & Summary
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
ADSP 21065L.
Presentation transcript:

Copyright © Am Road Electronics Co., Ltd. TMS320C24x Overview Max Chyou Engineering Manager AmRoad Co.Ltd.

Contents Introduction Architectural Overview Clocks Power Management Interrupts Timer PWM Architecture Space Vector Q&A

Introduction

Introduction Why DSP? Benefits of Digital System  Reliability, flexibility  Time sharing / task switching  Freedom from environmental effects  Bandwidth and resolution of analog system

Introduction Why DSP? Optimized Architecture  Instruction set tailored for signal processing functions  Architecture minimizes numerical problems in processing discrete signals

Introduction Why DSP? High Performance  Implementation of complex algorithms in real-time  Implementation of high sampling rates  Minimizes computational delay  Performance to implement multiple functions

Introduction Features Features  Single-cycle instruction  DSP instruction set  Multiple buses  Hardware multiplier  Hardware scaling shifters Benefits Benefits  High sampling rates / control of high bandwidth system  Real-time execution of advanced control algorithms  Simultaneous access of data and instructions  Minimize computational delays

Introduction Features Features  Hardware scaling shifters  16-bit word length  32-bit ALU / ACC  Hardware stack  Saturation mode Benefits Benefits  Fast scaling / dynamic range  Minimize quantization errors  Minimize truncation errors  Fast interrupt processing  Prevent wrap around of ACC

Introduction Function Function  Notch filter algorithms  Adaptive Kalman filter algorithms  State estimator algorithms  Vector control algorithms  Pulse width modulation (PWM) Benefits Benefits  Cancel mechanical resonance  Reduce sensor noise  Estimate multiple variables  Real-time axis transformation  Improve motor control

Introduction Function Function  Notch filter algorithms  Adaptive Kalman filter algorithms  State estimator algorithms  Vector control algorithms  Pulse width modulation (PWM) Benefits Benefits  Cancel mechanical resonance  Reduce sensor noise  Estimate multiple variables  Real-time axis transformation  Improve motor control

Introduction Function Function  High order PID control loop  High sample rate  Time division multiplexing  Fuzzy set control algorithms Benefits Benefits  Precise control  High system bandwidth  Several control system implementations with 1 DSP device  “Intelligent” control

Introduction Function Function  Dead band controller  State controller  Power factor correction  FFT algorithms  Adaptive control algorithms Benefits Benefits  Quick settling time  Control many variables  Reduce motor power loss  Analyze mechanical resonance  Reduce disturbance effects

DSP CORE

Core Architecture MultiplierMultiplier DataMemoryDataMemory ProgramMemoryProgramMemory ALU/ShiftersALU/Shifters Peripherals Controller A(15-0) D(15-0) Program Bus Data Bus MemoryMappedRegistersMemoryMappedRegisters SystemInterface Module * * ‘C240 Only Peripherals (Event Mgr)

Core Architecture MUX T (16) MULTIPLIER P (32) SHIFTER (-6, 0, 1, 4) SHIFTER (0-16) MUX ACCH (16) SFL (0-7) C Data Bus ALU (32) ACCL (16)

Core Architecture Data Bus STACK (8x16) PC PC Program ROM / FLASH Address Instruction To Data Memory MUX MUX MUX D(15-0) A(15-0) Program Bus

Peripheral

Clock Signals crystal x4PLL Clock Module x4PLL kHz Prescaler Watchdog WDCLK CPUCLK XTAL1 XTAL2 Event Manager Core Memory External Memory Interface SPISCICANCPU Prescaler ADC ADCCLK CLKOUT

Architecture Data Bus Program Bus AR0(16) AR1(16) AR2(16) AR3(16) AR4(16) AR5(16) AR6(16) AR7(16) ARAU(16) ARP(3) ARB(3) DP(9) DataRAM MUX MUX MUX MUX From Program Memory Data / Program RAM LSB From IR

Architecture Event Manager GP Timers Compare Unit PWM Outputs Dead-Band Logic Capture Unit QuadratureEncoder Pulse (QEP) Data Bus Watchdog Timer SCI SPI A/D Converter I /O Pins CAN Non-EV Manager SystemInterfaceModule (‘F/C240 only)

Watchdog Timer 6 - Bit Free - RunningCounter CLR /2 /4 /8 /16 /32 /64 WDCLK SystemReset Bit Watchdog Counter CLR One-CycleDelay Watchdog Reset Key Register 55 + AA Detector Good Key Bad Key / / 3 3 WDCR WDCR. 6 WDPS WDDIS WDCNTR WDCR WDCHK 2-0 Bad WDCR Key

Power Manager Low Power Mode Normal Run Idle 1 Idle 2 HaltComments CPU off All Peripherals off (except watchdog) Oscillator & Watchdog off Power ~80 20 MIPS ~ 50 mA ~ 7 mA ~ < 1 mA Note: PLL is on all the time for ‘X241/2/3!

Interrupt NMI ‘ C24x CORE 2 non-maskable interrupts (RS, NMI) 6 maskable interrupts (INT1 - INT6) INT1 INT5 INT2 INT3 INT4 INT6 RS

System Reset Watchdog Timer RS pin active To RS pin RS ‘C24x Core

Reset ‘C24x RS 10K V cc ExternalDevice reset RS 17 CPUCLK cycles 8 cycles min. Reset Vector Fetched RS pin must be held low a minimum of one CPUCLK RS pin must be held low a minimum of one CPUCLK cycle to ensure recognition of a reset cycle to ensure recognition of a reset Once a reset source is activated, RS pin is driven low Once a reset source is activated, RS pin is driven low for 8 CPUCLK cycles minimum for 8 CPUCLK cycles minimum

Event Management EV and Non-EV PeripheralsXINT1 XINT2 PDPINT NMI RS EV and Non-EVPeripheralInterface Internal Sources External Sources NMI ‘C24x CORE INT1 INT5 INT2 INT3 INT4 INT6RS

Event Management INT1 INT2 INT ‘C24x Core (INTM) “Global Switch” (IMR) “Switch” (IFR) “Latch”CoreInterrupt

Event Management Arbitrator FlagEnable XINT1 Flag XINT2 Flag ADCINT To Core InterruptINT1 Enable Enable Polarity Polarity

Event Management INT1INT2INT3INT4INT5INT6 Capture 1,2,3 Timer 2 Compare 1,2,3 Timer 1 Compare 1,2,3 Timer 1 EV ADC (low priority) XINT1,2 (low priority) ADC (low priority) XINT1,2 (low priority) SPI, SCI, CAN (low priority) XINT1,2 (high priority) SPI, SCI, CAN (high priority) ADC (high priority) XINT1,2 (high priority) SPI, SCI, CAN (high priority) ADC (high priority) NonEV Core PDPINTPDPINT

Latency   delay between an interrupt request and the first interrupt specific code fetch TMS320C24x Latency Components   Peripheral interface time (synchronization)   CPU response time (core latency)   ISR branching time (ISR latency)

Stack Operation ACCL PC PUSHPOP 8-LEVEL HARDWARESTACKPOPD PSHD DATA MEMORY INT CALL RET  Hardware stack is expandable to data memory using PSHD/POPD

Protection  Interrupt latency may not protect hardware when responding to over current through ISR software  PDPINT has a fast, clock independent logic path to high- impedance the PWM output pins (~ ns) DSPCOREDSPCORE PWMOUTPUTS PDPINT Enable OverCurrentSensorOverCurrentSensor ‘C24x PDPINTflagPDPINTflag clock synch.

Timer GP Timer Stop/HoldStop/Hold Up Counting Up/Down Counting ContinuousContinuous ContinuousContinuous DirectionalDirectional

Timer Architecture TxCNTTimerCounterTxCNTTimerCounter TxPR Period Register TxPR Buffer Buffer CompareLogicCompareLogic 16 PrescaleCountersPrescaleCounters clockingsignal TMRDIRpin auto-load on underflow MUX TMRCLKpin CPUCLK (internal DSP)

UP Timer CPUCLK TxCNT Reg. TxCON[6] CPU writes a 2 to period reg. buffer anytime here TxPR=2 is auto-loaded on underflow here This example: TxPR = 3 (initially) Prescale =

U/D Timer CPUCLK TxCON[6] TxCNT Reg CPU writes a 2 to period reg. buffer anytime here TxPR=2 is auto-loaded on underflow here This example: TxPR = 3 (initially) Prescale = 1 Seamless up/down repetition Up/down count period is 2*TxPR

PWM Architecture PWM Circuits Output Logic GP Timer 1 Compare GP Timer 1 GP Timer 2 Compare GP Timer 2 Full Compare 1 Full Compare 2 Full Compare 3 Capture Units MUXQEPCircuitWaveformGenerator Output Logic WaveformGenerator EV Control Registers / Logic Reset INT2, 3, 4 TMRCLK / TMRDIR / 2 ADC Start Data Bus CLK DIR T1PWM/T1CMP T2PWM/T2CMP PWM1/CMP1 PWM2/CMP2 PWM3/CMP3 PWM4/CMP4 PWM5/CMP5 PWM6/CMP6 CAP1/QEP1 CAP2/QEP2 CAP3

TIMER CPUCLK TxCNT Reg. TxCON[6] TMRDIR Count holds at TxPR=3 since TMRDIR = hi on rising clock edge 2 CPUCLK latency This example: TxPR = 3 Prescale = 1 CPUCLK as source

PWM Architecture This example: TxCON.3-2 = 00 (reload TxCMP on underflow) TxPR = 3 TxCMP = 1 (initially) Prescale = CPUCLK TxCNT Reg. 3 0 CPU writes a 2 to compare reg. buffer anytime here TxCMP=2 is loaded here TxPWM/TxCMP (active high) TxCINT

PWM Architecture CPUCLK TxCNT Reg TxPWM/TxCMP (active high) This example: TxCON.3-2 = 01 (reload TxCMP when on underflow or period match) TxPR = 3 TxCMP = 1 (initially) Prescale = 1 TxCMP loads with a 1 TxCMP loads with a 2 TxCMP loads with a 1

PWM Architecture CMPRx compare register CMPRx Compare Reg. Buffer Compare CompareLogicCompareLogic 16 sym.asym.sym.asym. OutputLogic PWMy/ CMPy CMPy T1CNT (GP Timer 1) auto-load on software selectable events SVSV DeadBandDeadBand MUXMUX

Space Vector

VaVbVc DTPH1DTPH2DTPH3DTPH1DTPH2 DTPH Phase Power Converter GNDVs Only states of transistors 1, 3, & 5 need be determined since 2, 4, & 6 are their respective compliments Switching State Notation: (Q5,Q3,Q1) e.g. (0,0,1) means gate 1 is on, gates 3 & 5 are off e.g. (0,0,1) means gate 1 is on, gates 3 & 5 are off

Space Vector Y-Connected Motor Windings Showing Current Flow (Q5,Q3,Q1) = (001)  V a =V s, V b =V c = GND Vc 60° V a V b 60° i i/2 i/2 Voltage Drop Vectors yx 2V s /3 V s /3

Space Vector Basic Space Vectors w/ Switching Patterns U 180 (110) U 300 (101) U 0 (001) U 240 (100) U 120 (010) U 60 (011) O(000) O(111)

Space Vector Approximate desired voltage drop vector as a linear combination of the basic space vectors Coefficients are duration times U 0 (001) U 60 (011) Uout T 1 T 2

Space Vector DTPH1 DTPH2 DTPH3 O(111) U 0 (001) U 60 (011) U 0 (001) U 60 (011) Full compare #1 match Full compare #2 match O(111) GP Timer 1 value T 1 /2 T 2 /2 T p /2 T1PR match

PWM to motor phase supply rail Gate Signals are Complimentary PWM  Transistor gates turn on faster than they shut off  Short circuit if both gates are on at same time!

Asymmetric PWM Example PHx DT dead time prescalerprescaler Counter8-bit ENA reset CPUCLK (20 MHz) ComparatorComparator 4-bit period (DBTCON.11-8) (DBTCON.11-8) DTPH x DTPH x_ PH x DT edgedetectedgedetect Clock DTPH x DTPH x_

A/D Converter Ch. 0-7 Sample & Hold Sample 10 bit A/D Converter Converter 2-Level FIFO Internal Data Bus VREFHI VREFLO ADCSOC Control&ReferenceCircuitry 8/1MUX VCCA AGND 5 volts GND Event Manager SOC Signal

Q&A

Thanks