Академический Документы
Профессиональный Документы
Культура Документы
Getting Started with Digital Signal Controllers (DSCs) for Motor Control and Energy Conversion
FTF-IND-F0580 Pavel Grasblum, Ph.D.
Application Engineer
TM
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
Agenda
DSC
Introduction
DSC
Core Introduction Key peripherals for Motor Control and Energy Conversion Applications
Detail Description Differences among DSC Families
Peripherals
Utilization Guidelines
ADC to PWM Synchronization Low Cost Current Measurement BLDC Motor Commutation
MC
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
Designed for controller code Compact code size Easy to program Inefficient signal processing
Designed for DSP processing Designed for matrix operations Complex programming Less suitable for control
Compact assembly and C compiled code size Easy to program Additional MIPS headroom and extended addressing space
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
the application is dominated by high-speed capture and analysis of analog input and feedback (e.g. PWM adjustment) to a closed loop system
DSC is similar to an MCU but with the performance to run complex algorithms for more responsive control and often, system cost reduction DSC provides flexibility to be used in multiple systems or to adapt within a system to environmental changes (compared to fixed analog-based control)
Key
features
Sufficient MIPs (32-60 MIPS) MCU/DSP performance for advanced algorithms High speed/performance 600ns/12 bit ADC for fast dynamic response High speed sophisticated (60 MHz- 96 Mhz) PWMs and timer modules to effectively increase PWM resolution Quadrature decoders for direct interface to Hall effect sensors or optical encoders Safety features (fault inputs, loss of clock) to prevent catastrophic failures
Key
applications
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
Flash Size
DSC Roadmap
Low Power Low Cost Large Capacity Mid Range High Performance
<280kB <560kB
MC56F836x MC56F836x 60MHz 60MHz 32-bit Core, 32-bit Core, 100MHz, DMA, 100MHz, DMA, FAST ADC & FAST ADC & PWM PWM MC56F834x MC56F834x 60MHz 60MHz 32-bit Core, 32-bit Core, 100MHz, DMA, 100MHz, DMA, FAST ADC & FAST ADC & PWM PWM
Pin Compatible
<144kB
MC56F803x MC56F803x 32MHz, HR PWM, 32MHz, HR PWM, CAN, ADC, DAC CAN, ADC, DAC
MC56F824x/5x MC56F824x/5x 60MHz, 60MHz, Accurate PWM Accurate PWM FAST ADC 2010 FAST ADC 60MHz, 60MHz, Accurate PWM Accurate PWM FAST ADC FAST ADC
32-bit Core, 32-bit Core, 100MHz, DMA, 100MHz, DMA, FAST ADC & FAST ADC & PWM PWM 32-bit Core 32-bit Core 100 MHz, DMA 100 MHz, DMA FAST ADC & FAST ADC & PWM PWM
Production - Available NOW
<64kB
<32kB
Pin Compatible
MC56F802x MC56F802x 32MHz, HR PWM, 32MHz, HR PWM, ADC, DAC ADC, DAC MC56F801x MC56F801x 32MHz, 32MHz, HR PWM, HR PWM, ADC ADC 56F800x 56F800x V. Low Cost, V. Low Cost, HR PWM HR PWM
<16kB
2009
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
56F8011/56F8013/56F8014
12K - 16KB Program Flash 4kB Program/ Data RAM System Integration Module (SIM) Interrupt Controller PLL Relaxation OSC Voltage Regulator COP Power-On-Reset JTAG/EOnCE Power Supervisor 6-ch PWM Output Up to 26 GPIOs 1 x SCI 1 x SPI 1x IIC 3-4ch 12bit ADC 3-4ch 12bit ADC
programmable fault inputs Two 12-bit ADCs with up to 8 inputs, 1.125us conversion rate Synchronization between PWM and ADC Four 16-bit general purpose programmable timers Computer operating properly timer Serial ports: SCI, SPI, I2C Up to 26 GPIOs Versatile pin usage Low power consumption 59 mA max. and .026 mA min. JTAG/EOnCE debug port Industrial and automotive temperature range Cost effective
Synch
4Ch 16bit Timer
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
32 MHz/32 MIPS 56800E core 3.0-3.6V operation 32K-64 K Bytes program FLASH 4K-8 K Bytes program/data RAM Flash security Tunable internal relaxation oscillator Software programmable phase locked loop Up to 96 MHz peripherals timers and PWMs 6 output PWM module with 4 programmable fault inputs with selectable PWM frequency for each PWM signal complementary pair Two 12-bit ADCs with up to 16 inputs , 1.125us conversion rate Up to two 12-bit digital to analog converters Two analog comparators Synchronization between PWM and ADC 4 or 8 16-bit general purpose programmable timers 1 or 3 programmable interval timers (PIT) Computer operating properly timer 2-queued serial communications interface 2-queued serial peripheral interface Optional MSCAN I2C communications interface Up to 53 GPIOs Versatile pin usage JTAG/EOnCE debug port Industrial and automotive temperature range
56F8023/56F8025/56F8036/56F8037
32KB - 64KB Program Flash 4kB-8KB Program/ Data RAM System Integration Module (SIM) Interrupt Controller PLL Relaxation OSC Crystal OSC Up to 53 GPIOs 2 x QSCI 2 x QSPI 1xIIC 1x MSCAN 3xPIT 8ch 12bit ADC 8ch 12bit ADC
Synch
8Ch 16bit Timer 6-ch PWM Output
JTAG/EOnCE
Power Supervisor
2 x 12 bit DAC
2 x Comparators
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
32 MHz/32 MIPS 56800E core 1.8-3.6V operation 12K - 16K Bytes program FLASH with Flash security 2K Bytes program/data RAM Tunable internal relaxation oscillator and 32 KHz clock Phase locked loop (PLL) Up to 96 MHz peripherals timers, PWM & Hi-SCI 6 output PWM module with 4 programmable fault inputs with selectable PWM frequency for each PWM signal complementary pair Two programmable gain amplifiers with x2, x4, x8, x16 gains (clocked in order to cancel input offset) Two 12-bit ADCs with up to 24 inputs , 2.5us per conversion Programmable delay block provides precise control of ADC/PGA sample times relative to PWM reload cycles Three high speed analog comparators 2 multiple function programmable timers Computer operating properly timer One periodic interval timer (PIT) 1 high speed serial communication interface (Hi-SCI) 1 serial peripheral interface (SPI) I2C communications interface Up to 40 GPIOs versatile pin usage JTAG/EOnCE debug port Industrial temperature range: -40C 105C
56F8002, 56F8006
12-16KB Program Flash 2KB Program/ Data RAM System Integration Module (SIM) Interrupt Controller PLL Relaxation OSC Crystal OSC 1 Period Int Timer Up to 40 GPIOs 1 SCI 1 SPI 1 IIC 2 x 16bit Timers 3 x Analog Comparators 2 x Programmable Gain Amplifiers 12ch 12bit ADC 12ch 12bit ADC
Synch
Programmable Delay Block 6-ch PWM Output
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
56F8011 -40C~125C 3.0V - 3.6V On-Chip 12KB 2KB Yes Yes Yes Yes 1 x 6ch 4 2 x 3ch No No No 4 No 26* 1 1 - SCI 1 - SPI No Yes 32LQFP
56F8013 32MHz/MIPs -40C~125C 3.0V - 3.6V On-Chip 16KB 4KB Yes Yes Yes Yes 1 x 6ch 4 2 x 3ch No No No 4 No 26* 1 1 - SCI 1 - SPI No Yes 32LQFP
56F8014 -40C~125C 3.0V - 3.6V On-Chip 16KB 4KB Yes Yes Yes Yes 1 x 5ch 3 2 x 4ch No No No 4 No 26* 1 1 - SCI 1 - SPI No Yes 32LQFP
56F8023 -40C~105C 3.0V - 3.6V On-Chip 32KB 4KB Yes Yes Yes Yes 1 x 6ch 4 2 x 3ch 2 2 No 4 1 26* 1 - QIIC 1 - QSCI 1 - QSPI No Yes 32LQFP
56F8025 32MHz/MIPs -40C~105C 3.0V - 3.6V On-Chip 32KB 4KB Yes Yes Yes Yes 1 x 6ch 4 2 x 4ch 2 2 No 4 3 35* 1 - QIIC 1 - QSCI 1 - QSPI No Yes 44LQFP
56F8036 32MHz/MIPs -40C~105C 3.0V - 3.6V On-Chip 64KB 8KB Yes Yes Yes Yes 1 x 6ch 4 2 x 5ch 2 2 No 4 3 39* 1 - QIIC 1 - QSCI 1 - QSPI MSCAN Yes 48LQFP
56F8027/37 32MHz/MIPs -40C~105C 3.0V - 3.6V On-Chip 32KB / 64KB 4KB /8KB Yes Yes Yes Yes 1 x 6ch 4 2 x 8ch 2 (Pinned out) 2 No 8 3 53* 1 - QIIC 1 - QSCI 1 - QSPI MSCAN Yes 64LQFP
32MHz/MIPs 32MHz/MIPs
32MHz/MIPs 32MHz/MIPs
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
Flash Size
DSC Roadmap
Low Power Low Cost Large Capacity Mid Range High Performance
<280kB <560kB
MC56F836x MC56F836x 60MHz 60MHz 32-bit Core, 32-bit Core, 100MHz, DMA, 100MHz, DMA, FAST ADC & FAST ADC & PWM PWM MC56F834x MC56F834x 60MHz 60MHz 32-bit Core, 32-bit Core, 100MHz, DMA, 100MHz, DMA, FAST ADC & FAST ADC & PWM PWM
Pin Compatible
<144kB
MC56F803x MC56F803x 32MHz, HR PWM, 32MHz, HR PWM, CAN, ADC, DAC CAN, ADC, DAC
MC56F824x/5x MC56F824x/5x 60MHz, 60MHz, Accurate PWM Accurate PWM FAST ADC 2010 FAST ADC 60MHz, 60MHz, Accurate PWM Accurate PWM FAST ADC FAST ADC
32-bit Core, 32-bit Core, 100MHz, DMA, 100MHz, DMA, FAST ADC & FAST ADC & PWM PWM 32-bit Core 32-bit Core 100 MHz, DMA 100 MHz, DMA FAST ADC & FAST ADC & PWM PWM
Production - Available NOW
<64kB
<32kB
Pin Compatible
MC56F802x MC56F802x 32MHz, HR PWM, 32MHz, HR PWM, ADC, DAC ADC, DAC MC56F801x MC56F801x 32MHz, 32MHz, HR PWM, HR PWM, ADC ADC 56F800x 56F800x V. Low Cost, V. Low Cost, HR PWM HR PWM
<16kB
2009
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
10
MC56F824x/MC56F825x Features
60 MHz/60 MIPS from 56800E core 2.7-3.6V operation 64K Bytes program FLASH 8K Bytes program/data RAM Flash security 8Mhz/100Khz tunable internal relaxation oscillator Software programmable phase locked loop Up to 60 MHz peripherals timers and PWMs
Prog Gain Amp Ax1,2,4 Prog Gain Amp Bx1,2,4 8-ch High Res PWM 1ch 12-bit DAC 3 5-bit DAC 3 Analog Comparators
PLL Relaxation OSC 2 x High Speed QSCIs 1 x QSPI 2x IIC/SMbus 1 x MSCAN 8Ch 16-bit Timer Inter-module Cross Bar
2-12-bit ADCs with total 16 inputs 600ns conversion rate built-in PGA with 1x, 2x, 4x, gains 1 12-bit digital to analog converter 3 5-bit digital to analog converters 3 analog comparators 8 16-bit enhanced GP multifunction
Voltage Regulator System Integration Module (SIM) Interrupt Controller COP POR LVI
programmable timers Cyclic redundancy check generator (CRC) Computer operating properly timer 2 high speed serial communications interface (SCI) 1 queued serial peripheral interface (QSPI) 1 MS-CAN bus 2 I2C/SMbus communications interface Up to 54 GPIOs Inter module cross-bar JTAG/EOnCE debug port Industrial temperature range: -40C to 105C with 60 Mhz
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
11
Instruction Fetch: PAB - 21 bits PDB - 16 bits 1st Data Access: XAB1 - 24 bits CDBR - 32 bits CDBW - 32 bits 2nd Data Access: XAB2 - 24 bits XDB2 - 16 bits Operations Performed: 1st - PAB / PDB 2nd - XAB1 / DBRCDBW 3rd - XAB2 / XDB2
PC LA LA2 HWS FIRA FISR SR OMR LC LC2
PROGRAM CONTROLLER
INSTRUCTION DECODER INTERRUPT UNIT LOOPING UNIT
AGU
ALU1 ALU1
ALU2 ALU2
M 01 N3
R0 R0 R1 R1 R2 R2 R3 R3 R4 R4 R5 R5 N N SP SP
Program Memory
Data Memory
IP-Bus Interface
A2 B2 C2 D2
A1 B1 C1 D1 Y0 Y1 X0
A0 B0 C0 D0
DATA ALU
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
12
Parallel Move
Destination 1
Source 2
Destination 2
X:(R0)+N,Y0
X:(R3)-,X0
PRIMARY READ SECONDARY READ (Uses XAB1 and CGDB) (Uses XAB2 and XDB2)
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
13
AGU
ALU1 ALU1
ALU2 ALU2
M 01 N3
R0 R0 R1 R1 R2 R2 R3 R3 R4 R4 R5 R5 N N SP SP
Program Memory
XAB1 XAB2 PAB PDB CDBW CDBR XDB2
Data Memory
A2 B2 C2 D2
A1 B1 C1 D1 Y0 Y1 X0
A0 B0 C0 D0
DATA ALU
IP-Bus Interface
Multi-bit Shifter
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
14
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
15
signals or combinations
Complementary channel operation Separate deadtime insertions for rising and falling edge Separate top and bottom polarity control Edge-aligned or center-aligned signals 15-bits of resolution Half-cycle reload capability Asymmetric mode of operation (for phase shifting) Programmable integral reload rates (half to 16) Individually software-controlled PWM outputs ADC synchronization Up to 4 programmable fault inputs PWM compare output polarity control 8 or 4 mA current source/sink Output polarity control Write protected registers Double-buffered PWM registers Wait/debug mode operation Selectable PWM supply source for each
PWM generator External GPIO Internal timer channel ADC conversion result, taking into account values setting ADC high and low limit register
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
16
outputs + 1 auxiliary PWM input/output 16 bits resolution for center, edge aligned, and asymmetrical PWMs Fractional delay for enhanced resolution of the PWM period and edge placement Complementary pairs or independent operation Independent control of both edges for each PWM output Synchronization to external hardware or other PWM submodules Double buffered PWM registers Integral reload rates from 1 to 16 include half cycle reload Half cycle reload capability Multiple output trigger events per PWM cycle Support for double switching PWM outputs Fault inputs can be assigned to control multiple PWM outputs Programmable lters for fault inputs Independently programmable PWM output polarity Independent top and bottom deadtime insertion Individual software control for each PWM output Software control, and swap features via FORCE_OUT event Compare/capture functions for unused PWM channels Enhanced dual edge capture functionality
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
17
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
18
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
19
CH0b
CH0a
All PWM-on values are set to the init value, and never changed again. Positive PWM-off values generate pulse widths above 50% duty cycle . Negative PWM-off values generate pulse widths below 50% duty cycle . This works well for bipolar waveform generation.
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
20
Ch0a
Ch0b
When the Init value is the signed negative of the Modulus value, the PWM module works in signed mode. Center-aligned operation is achieved when the turn-on and turn-off values are the same number, but just different signs.
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
21
CH0a
CH0b
In this example, both PWMs have the same duty-cycle. However, the edges are shifted relative to each other by simply biasing the compare values of one waveform relative to the other.
Alternatively, if the waveforms are generated by different sub-modules, the waveforms can be shifted by simply changing the Init value of one sub-module relative to the other.
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
22
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
23
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
24
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
25
0011
0000 tclk
tPWM
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
26
PWM resolution can be enhanced by analog delay circuit, which can place edge between two edges, derived from input clock
Example:
Consider 2-bit analog delay block Lets generate PWM signal with MODULO=4:0, DUTY_CYCLE=2:3 (68.75 %)
0011:00
0000:00 tclk
tPWM
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
27
0010:11 0000:00
0010:11
0011:00 0010:11
0000:00 tclk ttimer tPWM PWM output using delay block DUTY_CYCLE = 0010:11 PWM output w/t delay block DUTY_CYCLE = 0010 Timer clock
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
28
Consider 2-bit analog delay block Lets generate PWM signal with MODULO=4:2, DUTY_CYCLE=2:1 (50 %)
0011
0000 tclk
tPWM
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
29
Consider 2-bit analog delay block Lets generate PWM signal with MODULO=4:2, DUTY_CYCLE=2:1 (50 %)
0011:00
0000:00 tclk
tPWM
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
30
0000:00
0011:00 0010:01 0010:00 0001:00 0000:10 0000:00 tclk ttimer tPWM
0010:01
0000:10
0010:11
0000:00 + 1clk
0010:01
Timer clock
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
31
to calculate the next edge position for rising and falling edges within very short period not fast enough, so need hardware adder shows 21 bit adder to control both edges automatically setting new comparator values after each edge has been triggered
Ideal timing 16 bits at IP Bus timing resolution 5 bits NanoEdge timing resolution
Actual timing 16 bits at IP Bus timing resolution 5 bits NanoEdge timing resolution
Software
Diagram
PWM Period N
PWM Period N
PWM reload times are restricted to 16-bit IP bus timing (truncation of 21 bit value). Any residual left over from PWM period N-1 needs to be added back to period N.
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
32
user sets required 21-bit (16+5 bit) values into corresponding value registers only 5-bit delay block corresponds to 1.92 GHz input clock (for 60MHz PWM module input clock)
16-bit digital value
PWM Value Register NanoEdgeTM placement not used. 16-bit value only.
The
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
33
For high frequency the digital value is usually less than 11 bits. For example, 200 kHz edge-aligned PWM has resolution less than 9 bits Therefore we can keep calculation in 16 bits Result of calculation is moved right by 5 bits and written into 32-bit register
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
34
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
35
Two ADC modules allowing parallel conversion Input voltage range from VSSA to VDDA Up to 28 analog inputs Output in 12-, 10- or 8-bit right-justified format Single or continuous conversion (automatic return to idle after single conversion) 2.5 s conversion time Configurable sample time and conversion speed/power Conversion complete flag and interrupt Input clock selectable from up to four sources Operation in wait or stop modes for lower noise operation Asynchronous clock source for lower noise operation Hardware and software triggering Temperature sensors that are routed to ANA26 and ANB26 Support up to four samples per conversion
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
36
Sampled PGA architecture Common mode noise and offset cancelation Synchronized with PWM operation 0.14 MSPS maximum Sampling time can be precisely controlled (to less than 0.1 s) Programmable gains (1, 2, 4, 8, 16, and 32) Selectable tradeoff for slower/low power versus faster/more power Rail-to-rail input voltage range Single-ended output routed directly to on-chip ADCs ANA15 and ANB15 Software and hardware triggers are available Includes additional calibration features: Offset calibration eliminates any errors in the internal reference used to generate the VDDA/2 output center point Gain calibration can be used to verify the gain of the overall datapath Both features require software correction of the ADC result
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
37
12-bit resolution Maximum ADC clock frequency is 5.33 MHz Sampling rate up to 1.6 million samples per second Sequential: First 1.6s subsequent 1.125s Simultaneous: 8 conversions in 4.97s Internal or external Vref ADC can be synchronized to a PWM via the SYNC signal High and low limits can control PWM outputs Simultaneous or sequential sampling Internal multiplexer to select two of eight inputs Ability to sequentially scan and store up to eight measurements Ability to simultaneously sample and hold two inputs Optional interrupts at the end of a scan, if an out-of-range limit is exceeded, (high or low) or at zero crossing Optional sample correction by subtracting a pre-programmed offset value Signed or unsigned result Single-ended or differential inputs for all input pins with support for an arbitrary mix of input types Auto-standby mode to reduce power consumption Power savings modes allow automatic shutdown/startup of all or part of ADC
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
38
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
39
16 sample and result registers First 8 samples support high/low limits, zero-crossing and offset features only
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
40
LOW LIMIT
IRQ Logic
ADC input clock 10 MHz (conversion time 850/600 ns) Integrated PGA with gain 1x, 2x, 4x Support multi-trigger operation
> <
Above IRQ
Below
PGA
V-
12Bit ADC
RESULT MUX
ANx Vrefl
ADC RESULT
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
16x
ADC OFFSET
8x
TM
41
Analog Comparators
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
42
M U X
Falling Edge Interrupt Request Rising Edge Interrupt Request Programmable Glitch Filter COUT To Timer A1 To PWM To GPIO
CMP_A
0 1
M U X
M U X
To PWM Fault 1
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
43
to two continuous-time differential-input analog comparator modules Internal switching matrix supports the independent connection of the analog inputs to the positive or negative input of the analog comparator and to the comparators export output for another comparator module. 5 selectable input sources:
Three GPIO pins One DAC output One import input from another comparator module
Programmable
comparator output polarity Comparator output edge indicator Interrupt can be generated by comparator output rising edge, or falling edge, or both edges Comparator output can be fed to timer input, PWM faults input, PWM source, external pin output Software controlled power down mode
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
44
Operates over the entire supply range Less than 40 mV of input offset Less than 15 mV of hysteresis Inputs may range from rail to rail Selectable interrupt on rising edge, falling edge, or both edges of comparator output Selectable inversion on comparator output
Shorter propagation delay at the expense of higher power Low power, with longer propagation delay Sampled Windowed (ideal for certain PWM zero-crossing-detection applications) Digitally filtered Filter can be bypassed
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
45
Timers
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
46
PRESCALER
OUTPUT
OFLAG
Primary Input
INPUTS OTHER INPUTS
Output
Secondary Input
TMRLOAD
TMRHOLD
CAPTURE
TMRCMP1
TMRCMP2
CMPLD1
CMPLD2
DATA BUS
4x
Unique architecture with 2x Inputs (primary + secondary) and 1x output Powerful MUX - primary input, secondary input and output can be connected to external pins Individual channel capability - input capture trigger, output compare, clock source, prescaler Counters are pre-loadable, count once or repeatedly Master operation - any channel can be a master that broadcasts its compare signal to the other channels. This way
they can be configured to reinitialize their counters and/or force their OFLAG output signals to predetermined values. Compare - The TMRCMP1/2 registers provide the compare values (up/down) for the counter. If a match occurs, the OFLAG signal can be set, cleared, or toggled (polarity is selectable). If enabled, an interrupt is generated, and the new compare value is loaded into TMRCMP1 or 2 registers from TMRCMPLD1 and 2 (as enabled). Capture register stores a copy of the counters value when an input edge (positive, negative, or both) is detected. Once a capture event occurs, no further updating of the capture register will occur until the input edge flag is cleared.
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
47
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
48
(ADC acquisition of new samples until a specified period of time has passed since the PWM sync signal occurred)
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
49
Counter will decode the primary and secondary external inputs as quadrature encoded signals Compare interrupts will signal commutation
Timer is Off
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
50
Others
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
51
signal interconnection among peripherals Connects any of 22 signals on left side to the output on right side (multiplexer) Total 30 multiplexers All multiplexers share the same set of 22 signals Increase flexibility of peripheral configuration according to user needs
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
52
HSCMP
Pin
3
Pin ADC_In
3 0 2 1
Crossbar Fabric
To comparators
Pin
SYNC_IN
3 Window / Sample[2:0]
X3 Quad Timer B
TB[3:0]
4 4
12-Bit DAC
Pin
X4
OUT_TRIG0[2,0] OUT_TRIG1[2,0]
X6
4
OR Functions
I/O Module
I/O Muxing
X9
PWMA[3:0] PWMB[3:0] PWMX[3]
8-ch GHzPWM
X6
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
53
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
54
Average Current
Inductor Current
Sampled Current
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
55
PWM1 Q AT
Shunt resistor
Dead Time
- U/2
I sense_A
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
56
combination of the PWM + QTimer + ADC allows precise control of the sample event The PWM synch output is connected to secondary input of QTimer - Ch3 The QTimer Ch3 output is connected to ADC SYNC0 The QTimer Ch2 output is connected to ADC SYNC1 The ADC sample can be easily synchronized with PWM with no software overhead (constant delay). Note the delay also can be applied to the external trigger signal Cycle-by-cycle control of the QTimer addresses advanced ADC trigger delay control
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
PWM
IP BusCLK PWM Sync
MUX
ADC SYNC1
ADCB ADCA
ADC SYNC0 * can be used to mimic ADC SYNC pulse during debugging
TM
57
PWM COUNTER
PWM SYNC
PWM
GENERATOR OUTPUTS 0, 1
dead-time/2 dead-time/2
PWM
PINS 0, 1
POWER
t1 - time between PWM SYNC signal and TMR3 output. TMR3 output starts ADC conversion immediately. t2 ADC conversion time
STAGE VOLTAGE
dead-time
dead-time
TMR3
COUNTER
TMR3
t1 t2
OUTPUT
ADC CONVERSION
ADC
ISR
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
58
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
59
Individual Operation
ORed Operation
Both ADC converters operate in ping pong mode. Up to four samples can be taken per conversion sequence
This mode can be used for window operation of high speed comparator The output can be connected to pin and generated PWM signal
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
60
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
61
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
62
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
63
HSCMP
Pin
3
Pin ADC_In
3 0 2 1
Crossbar Fabric
To comparators
Pin
SYNC_IN
3 Window / Sample[2:0]
X3 Quad Timer B
TB[3:0]
4 4
12-Bit DAC
Pin
X4
OUT_TRIG0[2,0] OUT_TRIG1[2,0]
X6
4
OR Functions
I/O Module
I/O Muxing
X9
PWMA[3:0] PWMB[3:0] PWMX[3]
8-ch GHzPWM
X6
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
64
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
65
8-ch eFlexPWM
OUT_TRIG0[0]
submodule 0
OUT_TRIG1[0]
OR
Crossbar Fabric
OUT_TRIG0[1]
submodule 1
OUT_TRIG1[1]
OR
OR
crossbar input[19]
OUT_TRIG0[2]
submodule 2
OUT_TRIG1[2]
OR
crossbar input[18]
OUT_TRIG0[3]
submodule 3
OUT_TRIG1[3]
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
66
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
67
+U/2
PWM At PWM Bt Phase A PWM Ab PWM Bb PWM Ct Phase B PWM Cb
DC Bus
Phase C
Shunt resistor
- U/2
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
68
Measurement Table
DC-Link current idc +ia -ic +ib -ia +ic -ib 0 0
V1(100) V2(110) V3(010) V4(011) V5(001) V6(101)
Voltage Vector
A B C
iDC=-ic iDC=+ia
V7(111)
V0(000)
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
69
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
70
PWMs
Critical edge
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
71
ADC Conversion
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
72
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
73
Shunt resistor
- U/2
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
74
Voltage applied on two phases only It creates 6 flux vectors Phases are powered based on rotor position The process is called commutation
Phase voltages
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
75
Q1=Q4=PWM; Q2=Q3=Q1
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
76
A
70% 70%
B
70%
0 0 0 0 0 0
0 0 0
1.
30%
3.
30%
5.
30%
One shot write to all six One shot write to all six PWM channels! PWM channels! Value written to this register Value written to this register defines just the speed of defines just the speed of motor rotation and motor rotation and
2.
4.
6.
PWM Value Register 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1
5999h 70% of max. value of Duty Cycle when 7FFFh is the max. value
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
77
A
70% 0%
B
70%
0 0 0 0 1 1 6. 5. 4. 3. 2. 1. transistors
0 0 0
1.
0%
3.
30%
5.
30%
Mask will disable Mask will disable the complementary the complementary transistor pair transistor pair
2.
MASK
4.
6.
PWM Value Register 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1
5999h 70% of max. value of Duty Cycle when 7FFFh is the max. value
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
78
A
0% 70%
B
30%
1.
0%
3.
30%
5.
70%
Swap reroutes the top Swap reroutes the top and bottom control and bottom control signals of complementary signals of complementary pair pair
2.
4.
6.
PWM Value Register SWAP 0 1 0 1 1 0 0 1 1 0 0 1 1 0 0 1
5999h 70% of max. value of Duty Cycle when 7FFFh is the max. value
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
79
The MASK and SWAP feature is asynchronous to PWM generation Speed control and commutation control are fully independent
The The
56F82xx allows preloading of new state and time for next commutation. The commutation is performed based on timer event
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
80
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
81
step commutation Sensorless back-EMF zero crossing detection technique Back-EMF zero crossing detection using internal comparators Running on MC9S08MP16 Both directions of rotation Speed closed loop control Torque closed loop control Target applications:
Fans Compressors Pumps Appliances
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
82
MC56F80xx digital signal controller 3-phase AC/BLDC high voltage power stage board 1-phase line input 110/230VAC @ 50/60Hz Appliance PM motor Initial rotor position detection Full torque at motor start-up Field weakening Application based on C-callable library functions (GFLIB, GDFLIB, MCLIB, ACLIB) Current control loop execution time: 55us Speed control loop with field weakening execution time : 17us Flash: ~ 6KB, RAM ~ 1.5KB Reference design manual
TM
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
83
85-265Vac @ 45-65Hz 12V/41 Amps (max.) 5V/25 Amps (max.) 500W shared by both voltage outputs. The power limit can be set individually by SW for each voltage output. PM bus communication (HW ready) CAN communication (HW ready) Communication with PC using USB Over-voltage, over-current, overtemperature on both primary and secondary side. Active controlled cooling
Output voltage
Output power
Communication
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
84
VA digitally controlled solar inverter One or two 200Wp solar panels On grid/off grid operation
Single
phase output 230V/50Hz or 115V/60Hz Optional battery charger MPPT algorithm implemented Over-current, short circuit, input under-voltage protection
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.
TM
85
TM