MC56F8006PB, MC56F8006/MC56F8002 Digital Signal Controller

Freescale Semiconductor
Product Brief
Document Number: MC56F8006PB
Rev. 0, 02/2009
MC56F8006/MC56F8002 Digital
Signal Controller Product Brief
1
Introduction
Contents
1
1.1
Overview
This document provides an overview of the major
features and functional components of the
MC56F8006/MC56F8002 series of digital signal
controllers (DSCs).
The devices in the MC56F8006/MC56F8002 series
combine, on a single chip, the processing power of a
digital signal processor (DSP) and the functionality of a
microcontroller unit (MCU) with a flexible set of
peripherals to create an extremely cost-effective
solution.
The MC56F8006/MC56F8002 uses the 56800E core,
which is based on a dual Harvard-style architecture
consisting of three execution units operating in parallel.
This allows as many as six operations per instruction
cycle. The MCU-style programming model and
optimized instruction set allow straightforward
© Freescale Semiconductor, Inc., 2009. All rights reserved.
2
3
4
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Application Examples . . . . . . . . . . . . . . . . . . . . . . . 2
1.2.1 Pulse Oximeter. . . . . . . . . . . . . . . . . . . . . . . 2
1.2.2 PWM with Single Shunt Resistor as Feedback
Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.3 Sensorless BLDC. . . . . . . . . . . . . . . . . . . . . 5
Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Device Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 High Performance Core . . . . . . . . . . . . . . . . . . . . . . 7
3.3 Operation Range . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.4 Memory Configuration . . . . . . . . . . . . . . . . . . . . . . . 8
3.5 Module Configuration . . . . . . . . . . . . . . . . . . . . . . . 8
3.6 Power Management. . . . . . . . . . . . . . . . . . . . . . . . 11
Part Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Introduction
generation of efficient, compact DSP and control code. The instruction set is also highly efficient for
C compilers to enable rapid development of optimized control applications.
A full set of programmable peripherals supports various applications. Any signal pin associated with these
peripherals can also be used for general-purpose input/output (GPIO). Power-saving features include an
extremely low-power mode and the ability to shut down each peripheral independently.
1.2
Application Examples
Because of its low cost, configuration flexibility, and compact program code, the
MC56F8006/MC56F8002 is well-suited for many applications. The MC56F8006/MC56F8002 includes
many peripherals that are especially useful for cost-sensitive applications, including:
• Switched-mode, power supply, and power management
• Industrial control
• Home appliances
• Smart sensors
• Fire and security systems
• Power metering
• Motor controls (ACIM, BLDC, PMSM, SR, and Stepper)
• Handheld power tools
• Arc detection
• Medical device/equipment
• Instrumentations
• Lighting ballast
The next sections present two application scenarios that demonstrate how various features of the
MC56F8006/MC56F8002 might be used within a product.
1.2.1
Pulse Oximeter
Figure 1 shows a portable, battery-powered pulse oximeter, a medical device that indirectly measures the
oxygen saturation of a patient's blood. The MC56F8006/MC56F8002 controls the device. This application
requires low-power standby mode and dynamic operation frequency to extend battery life. The high-speed
timer module helps to sample in real time the two-wavelength digital light-signal pulses that pass through
the detector.
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
2
Freescale Semiconductor
Introduction
Ultra low power
stop modes
Power
Supervisor
OSC
MC56F8006
GPIO or SPI
16bit Timer
GPIO
OLED Display
Wave Length Switch
Red LED
Infra-Red LED
Test media
Digital Photodetector
Figure 1. Pulse Oximeter
1.2.2
PWM with Single Shunt Resistor as Feedback Sensor
Figure 2 shows the PWM outputs of the MC56F8006/MC56F8002 that control three half H-bridge circuits
driving a three-phase AC motor with an RSense current shunt in series with the negative power connection.
RSense is normally a low-valued resistor (0.01–0.1 Ω) used to convert the motor currents into a voltage that
can be measured for feedback purposes.
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
Freescale Semiconductor
3
Introduction
w in
d in
g
g
d in
w in
winding
+ DC Bus
3 F Motor
PWM0
PWM2
PWM4
PWM1
PWM3
PWM5
RSENSE
- DC Bus
Figure 2. PWM/Shunt Resistor Connections for Three-Phase Motor
Figure 3 illustrates one PWM period for this scenario. The beginning of the period is identified via a PWM
reload event, which triggers the programmable delay block (PDB) to begin counting. The PDB is
configured in two-shot mode to time the phase A and phase C current measurements from the same trigger
event.
PWM Period
PWM Modulo Counter
Phase A
Phase B
Phase C
Delay _B
Delay _A
Timer Counter
ADC Conversion
ADC End-of-Scan ISR
Phase A
Current
Phase C
Current
ADC ISR
Figure 3. Current Reconstruction Timing Diagram
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
4
Freescale Semiconductor
Introduction
By precisely synchronizing the PWM and ADC sample point via PDB, the MC56F8006/MC56F8002
PGA/ADC accurately centers its sample in the PWM pulse shown in Figure 4.
Top
PWM
Bottom
i+
iMeasurement point
Figure 4. Motor Currents vs. PWM Signals and Measurement Window
1.2.3
Sensorless BLDC
Figure 5 illustrates the use of the comparator sampling mode for sensorless BLDC applications. In this
application, comparators detect the zero-crossing of Back EMF generating in motor winding. To avoid
false zero-crossing detection due to noise or changes of Back EMF reference, synchronize the PWM pulse
and comparator output. In this case, the comparator can be programmed to send its output to the CPU when
the comparator comparing window is opened, which is triggered by the PWM module.
1Φ
Speed
Command
PID
Controller
-
PID
Controller
PWM
PWM
PWM
Phase
Commutation
BLDC
Motor
-
CurrentFeedback
Calculated Speed Feedback
Comp
PWM Synch Pulse
DSC
Figure 5. Use of Comparator Sampling Mode in a Sensorless BLDC Application
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
Freescale Semiconductor
5
Block Diagram
2
Block Diagram
Figure 6 shows a top-level block diagram for the MC56F8006/MC56F8002 series.
RESET
4
PWM
6
JTAG/EOnCE
Port or GPIOD
PWM Outputs
Program Controller
and Hardware
Looping Unit
programmable
delay block
24 Total
VSS
3
Digital Reg
ADCA
PGA/ADC
R/W Control
2
Note: All pins
are muxed with
other peripheral
pins.
Memory
Flash Memory
16 Kbytes flash
12 Kbytes flash
CMP0 CMP
or
GPIOD
CMP1
2
Unified Data /
Program RAM
2KB
CMP2
40
4
Analog Reg
Low-Voltage
Supervisor
PAB
PDB
CDBR
CDBW
ADCB
2
VDDA VSSA
PMC
16-Bit 56800E Core
Data ALU 16 x 16 + 36 → 36-Bit MAC
Address
Bit
Three 16-bit Input Registers
Generation Unit
Manipulation
Four 36-bit Accumulators
Unit
Fault Inputs
3
VDD
3
GPIO are
muxed with
all other func
pins.
XDB2
XAB1
XAB2
PAB
PDB
CDBR
CDBW
System Bus
Control
PIT
IPBus Bridge
Power
Management
Controller
Dual GP Timer
SPI
4
SCI
I2C
2
2
COP/
Watchdog
Interrupt
Controller
System
Integration
Module
RTC
Clock ROSC
Generator* OSC
2
Crystal
Oscillator
Figure 6. MC56F8006/MC56F8002 Top-Level Block Diagram
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
6
Freescale Semiconductor
Device Comparison
3
Device Comparison
Table 1. MC56F8006 Series Device Comparison
MC56F8006
MC56F8002
Feature
28-pin
Flash memory size (Kbytes)
32-pin
16
RAM size (Kbytes)
High-Speed comparators (HSCMP)
28-pin
12
2
3
3
Analog-to-digital converters (ADC)
3
3
2
Unshielded ADC inputs
6
7
7
6
Shielded ADC inputs
9
11
17
9
Total number of ADC input pins
15
18
24
15
4
3
Programmable gain amplifiers (PGA)
2
Pulse-width modulator (PWM) outputs
6
PWM fault inputs
3
4
Inter-integrated circuit (IIC)
1
Serial peripheral interface (SPI)
1
High-speed Serial communications interface (SCI)
1
Programmable interrupt timer (PIT)
1
Programmable delay block (PDB)
1
16-bit Multi-purpose timers (TMR)
2
Real-time counter (RTC)
1
Computer operating properly (COP) timer
Yes
Phase-locked loop (PLL)
Yes
8 MHz (400 kHz at standby mode) on-chip Relaxation
Oscillator (ROSC)
Yes
1 kHz on-chip oscillator
Yes
Crystal oscillator
Yes
Power management controller (PMC)
Yes
IEEE 1149.1 Joint Test Action Group (JTAG) interface
Yes
Enhanced On-Chip Emulator (EOnCE)
Yes
3.1
Features
3.2
High Performance Core
•
48-pin
Efficient 16-bit 56800E family Digital Signal Controller (DSC) engine with dual Harvard
architecture
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
Freescale Semiconductor
7
Device Comparison
•
•
•
•
•
•
•
•
•
•
•
•
•
•
3.3
•
•
•
3.4
•
•
3.5
•
•
•
•
•
•
Up to 32 Million Instructions Per Second (MIPS) at 32 MHz core frequency
155 Basic Instructions in conjunction with up to 20 address modes
Single-cycle 16 × 16-bit parallel Multiplier-Accumulator (MAC)
Four 36-bit accumulators, including extension bits
32-bit arithmetic and logic multi-bit shifter
Parallel instruction set with unique DSP addressing modes
Hardware DO and REP loops
Three internal address buses
Four internal data buses
Instruction set supports both DSP and controller functions
Controller-style addressing modes and instructions for compact code
Efficient C compiler and local variable support
Software subroutine and interrupt stack with depth limited only by memory
JTAG/Enhanced On-Chip Emulation (OnCE) for unobtrusive, processor speed-independent,
real-time debugging
Operation Range
From power-on-reset: Approximately 1.9 V to 3.6 V
Operating: 1.8 V to 3.6 V (power supplies and input/output)
Ambient temperature operating range: -40 °C to 105 °C
Memory Configuration
Up to 16 Kbytes program flash memory with flash security protection
2 Kbytes unified program/data RAM
Module Configuration
One 6-channel PWM module
— Up to 96 MHz PWM operating clock
— 15 bits of resolution
— Center-Aligned and edge-aligned PWM signal mode
— Four programmable fault inputs with programmable digital filter
— Double-Buffered PWM registers
Dual 12-bit SAR analog-to-digital converters (ADC)
3.042 μSec for first ADC conversion, 2.125 μSec for subsequent
Linear successive approximation algorithm with 12-bit resolution
Up to 24 analog inputs
Output formatted in 12-, 10-, or 8-bit right-justified unsigned format
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
8
Freescale Semiconductor
Device Comparison
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Single or continuous conversion (automatic return to idle after single conversion)
Configurable sample time and conversion speed/power
Conversion complete flag and interrupt
Input clock selectable from up to four sources
Operation in wait or stop3 modes for lower noise operation
Asynchronous clock source for lower noise operation
Selectable asynchronous hardware conversion trigger
Automatic compare with interrupt for less-than, or greater-than or equal-to, programmable value
Temperature sensor
Two differential programmable gain amplifiers (PGA)
— Sampled PGA architecture
— Common mode noise and offset are automatically cancelled out (2–4 consecutive samples
required for noise/offset cancellation)
— Sample may be synchronized with PWM operation using the PWM sync output and
programmable delay block
— Sampling time can be precisely controlled (to less than 0.1 μs)
— Several programmable gains (1×, 2×, 4×, 8×, 16×, and 32×)
— 0.14 MSPS maximum
— 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
One high-speed serial communication interface (SCI) with LIN slave functionality
— Max baud rate of 6 Mbps when using 3× IPBus at 96 MHz.
— Full-duplex or single-wire operation
— Two receiver wake-up methods:
– Idle line
– Address mark
One serial peripheral interface (SPI)
— Full-duplex operation
— Master and slave modes
— Programmable Length Transactions (2 to 16 bits)
Dual 16-bit general-purpose timers (GPT)
— Up to 96 MHz operating clock
— Eight independent 16-bit counter/timers with cascading capability
— Each timer has capture and compare capability
— Up to 12 operating modes
One programmable interval timer (PIT)
— 16-bit counter/timer
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
Freescale Semiconductor
9
Device Comparison
•
•
•
•
•
•
•
— Programmable count modulo
Real-time counter (RTC) which can be used to implement a real-time clock
— 8-Bit up-counter
— Three software selectable clock sources for input to prescaler with selectable binary-based and
decimal-Based divider values
– 1 kHz internal oscillator
– External clock
– 32 kHz internal clock
One programmable delay block (also known as a sync timer) for coordination of the ADC, PGA,
or comparator samples with PWM
One inter-integrated circuit (I2C) port
— Operates up to 400 kbps
— Supports both master and slave operation
— Supports both 10-bit address mode and broadcasting mode
— System Management Bus Specification (SMBus) Version 2 support
Computer operating properly (COP)/watchdog timer with independent 1 kHz on-chip oscillator
— Integrated 1 KHz oscillator
— Programmable timeout period
— Programmable wait and stop and partial powerdown mode operation
— Choice of clock sources for counter
— Support for switched power modes
Clock sources
— On-chip 8 Mhz relaxation oscillator
— On-chip 1 Khz clock
— External clock (32 Khz or 8 Mhz): Crystal oscillator, ceramic resonator, and external clock
source
Integrated phase-locked loop (PLL)
Three on-chip comparators
— Selectable input source from external pins
— Selectable interrupt on rising edge, falling edge, or either rising or falling edges of comparator
output
— Programmable output polarity
— Comparator output may be:
– Sampled
– Windowed (ideal for certain PWM zero-crossing-detection applications)
– Digitally Filtered
– Filter can be bypassed
– Clocked via external SAMPLE signal or scaled peripheral clock
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
10
Freescale Semiconductor
Part Numbers
•
•
3.6
•
•
•
•
•
•
•
•
4
JTAG/Enhanced On-Chip Emulation (EOnCE™) for unobtrusive, real-time debugging
Up to 40 general-purpose input/output (GPIO) lines
— Programmable output drive level, slew-rate control, and optional input low-pass filters
— Individual control for each pin to be in either Peripheral or GPIO mode
— Individual Input/Output direction control for each pin in GPIO mode
— Individual Pull-Up Enable Control for each input pin in either Peripheral or GPIO mode
— 15 mA sink/source current
Power Management
On-chip regulator for digital and analog circuitry to lower cost and reduce noise
Integrated power-on reset
Low-voltage interrupt with a user-selectable trip voltage of 1.86 or 2.33 V
User selectable brown-out reset
RUN, WAIT, and STOP modes
Low-power RUN, WAIT, and STOP modes
Partial Power Down mode
— RAM, PMC, and COP remain powered
— Rest of the chip is shut down for extreme power savings
Each peripheral can be individually disabled to save power
Part Numbers
Table 2. Orderable Part Number Summary
Freescale Part
Number
Description
Flash / SRAM
(Kbytes)
Package
Temperature
MC56F8006VLF
MC56F8006 DSC
16 / 2
48 LQFP
–40 °C to 105 °C
MC56F8006VLC
MC56F8006 DSC
16 / 2
32 LQFP
–40 °C to 105 °C
MC56F8006VWL
MC56F8006 DSC
16 / 2
28 SOIC
–40 °C to 105 °C
MC56F8002VWL
MC56F8002 DSC
12 / 2
28 SOIC
–40 °C to 105 °C
MC56F8006/MC56F8002 Digital Signal Controller Product Brief, Rev. 0
Freescale Semiconductor
11
How to Reach Us:
Home Page:
www.freescale.com
Web Support:
http://www.freescale.com/support
USA/Europe or Locations Not Listed:
Freescale Semiconductor
Technical Information Center, EL516
2100 East Elliot Road
Tempe, Arizona 85284
+1-800-521-6274 or +1-480-768-2130
www.freescale.com/support
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH
Technical Information Center
Schatzbogen 7
81829 Muenchen, Germany
+44 1296 380 456 (English)
+46 8 52200080 (English)
+49 89 92103 559 (German)
+33 1 69 35 48 48 (French)
www.freescale.com/support
Japan:
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
Japan
0120 191014 or +81 3 5437 9125
[email protected]
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
[email protected]
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
1-800-441-2447 or +1-303-675-2140
Fax: +1-303-675-2150
[email protected]
Document Number: MC56F8006PB
Rev. 0
02/2009
Information in this document is provided solely to enable system and software
implementers to use Freescale Semiconductor products. There are no express or
implied copyright licenses granted hereunder to design or fabricate any integrated
circuits or integrated circuits based on the information in this document.
Freescale Semiconductor reserves the right to make changes without further notice to
any products herein. Freescale Semiconductor makes no warranty, representation or
guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor assume any liability arising out of the application or use of any
product or circuit, and specifically disclaims any and all liability, including without
limitation consequential or incidental damages. “Typical” parameters that may be
provided in Freescale Semiconductor data sheets and/or specifications can and do vary
in different applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer application by
customer’s technical experts. Freescale Semiconductor does not convey any license
under its patent rights nor the rights of others. Freescale Semiconductor products are
not designed, intended, or authorized for use as components in systems intended for
surgical implant into the body, or other applications intended to support or sustain life,
or for any other application in which the failure of the Freescale Semiconductor product
could create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended or
unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and
its officers, employees, subsidiaries, affiliates, and distributors harmless against all
claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale
Semiconductor was negligent regarding the design or manufacture of the part.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
All other product or service names are the property of their respective owners.
© Freescale Semiconductor, Inc. 2009. All rights reserved.