Upload
truongdung
View
215
Download
1
Embed Size (px)
Citation preview
TMFreescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Industry’s Most Robust, Secure MCU Solution for Meteorology
Freescale 32-bit ColdFire MCU solution eMeters
May, 2010
TM
2Freescale, 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, TurboLinkand 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
1. Energy Metering – Trends & Factors2. Introduction to Energy Metering3. MCF51EM256 Highlights4. MCF51EM256 Poly-phase Reference Design5. Demos6. Summary
TM
3Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Freescale Introduces Product Longevity Program
► The embedded market needs long-term product support
► Freescale has a longstanding track record of providing long-term production support for our products
► Freescale is pleased to introduce a formal product longevity program for the market segments we serve
• For the automotive and medical segments, Freescale will make a broad range of program devices available for a minimum of 15 years
• For all other market segments in which Freescale participates, Freescale will make a broad range of devices available for a minimum of 10 years
• Life cycles begin at the time of launch
► A list of participating Freescale products is available at:www.freescale.com/productlongevity
TM
4Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 4
Digital signal controllers and microcontrollers portfolio support these applications. Working closely with industry leaders to further develop solutions in this space.
Intelligent appliances within the home, micro-grid generation (solar cells), Plug-in Hybrid vehicles require appropriate interface and measurement technologies
Emerging Applications that need interface to smart grids
Freescale offers i.MX25 and MPC8308 products for Energy gateway. Monitoring standards for HAN (Homeplug, GreenPHY)
Home/energy gateways are using existing infrastructure
Communication Within Home
Freescale high-end products (MPC83xx, QoRIQ) ideal fit for these applications which require IEEE® 1588, Ethernet, Security support.
Protocols emerging for control and communication of various components in Smart Grids
Smart Grids Infrastructure development
Market Trend Description Freescale’s Portfolio Evolution and Alignment
Wired and Wireless Protocols
Wired and Wireless communications are the key technologies used in today’s AMI and AMR designs
PLM – SFSK, OFDM, MBUS (wired & wireless)ZigBee® SE profile, MC1322x; Freescale is focused developing NPIs for <1GHz frequency range to support AMI and AMR networks.
Low Power Consumption
With the shift to electrical gas and water meters, power consumption is a key decision factor due to battery life requirements and costs
Key focus area for Freescale. 9S08GW family with S08L core suitable for long-life gas, water meter applications.Freescale is indicating ideal products with an Energy Efficient Solutions brand mark.
Peripherals Integration
Focus on cost driving higher levels of integration
Differentiator and strength of Freescale across multiple product groups. Key example is the release of the MC1322x and MCF51EM256 with ADC integrated.
Key Technology and Solution Trends in Metering
TM
5Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
GPRS Communication Network
Intranet
PLC orWireless
MV/LVSubstation
Electricity Meters
Operation Center
Freescale Solutions for Metering
Cable, DSL
i.MXPowerQUICC®
Heat Meter
Gas Meter
WaterMeter
))))))
S08ColdFire® V1
MV Grid
LV Grid
Energy Gateway
Commercial System (CRM)Centralized Remote Management SystemInterface Communication Software
Data Communication Center
S08ColdFire® V1
S08ColdFire® V1
S08ColdFire® V1
i.MXPowerQUICC®
Freescale High-End Micro Processor (MPU)Freescale High-End Micro Processor (MPU)
Freescale Low Power Controllers (MCU)Freescale Low Power Controllers (MCU)
Freescale Dedicated Controllers (MCU)Freescale Dedicated Controllers (MCU)
Freescale High-End Micro Processor (MPU)Freescale High-End Micro Processor (MPU)
Freescale Low Power Wireless SolutionsFreescale Low Power Wireless Solutions
TM
6Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 6
Metering Solutions Overview
1-Phase MeterMCF51EM256Integrated AFE
Low Cost Meter9RS08KA8
Simulation DEMOEM
MCF51EM2561-Phase/3-
PhaseMeter
MCF51EM256Integrated AFE
PLMMC56F8025
Low Cost Meter9S08LL/LG32
OFDM PLMMCF51EM256
Low Cost Meter9S08LH64
Integrated AFE
Energy Gateway i.MX25
Concentratori.MX27
Water Meter9S08LL16
Gas Meter9S08LL16
Heat Meter9S08LL16
802.15.4/ZigbeeMC1322x HomePlug
Reference Design
Low Cost Meter9S08LA8
Smart Energy (AMM)
MPC8308G/Bit Enet
RFPCIPLM
TM
7Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
1. Lower system cost
2. Accurate Power Measurement (trend to Active)
3. Energy calculations / tariff charging
4. Grounding and noise issues
5. Connectivity to multiple/increasing interfaces, IR, RF, PLM etc., to aid Smart Grid Systems
6. Active & Robust Time Measurement
7. Risk / increase in fraud / to improve robustness to attack
8. Secure code update capability.
The Challenges of Electricity Meter Makers
TM
8Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 8
MCF51EM256/128Metrology & RTC
► ColdFire CPU• 32-bit MAC (16x16 signed/unsigned)• 50MHz performance providing power calculation and
communications capability
► Secure & Robust • Independent iRTC• Dual Bank Flash with Swap Controller
► Connectivity• AMR SPI & SCI with Open Drain System, provides a 5v
interface to external AMR modems• Comparators with internal programmable reference (IR)
linked directly to SCI• 288 Segment LCD Controller for HMI Display
► Accurate Measurement• 4 x 16-bit high speed SAR ADC, 14.5ENOB• Programmable Delay Block
► Low Power• The industry's benchmark low power implementation
80-pin & 100-pin LQFP packages
TM
9Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 9
MCF51EM256 Key Features for E-metering
Enables MCU to function with loss of crystal(s) clock.Multiple Clock Source
Communication peripherals supporting IR communication and easy interfacing to 3.3V and/or 5V logic.
Connectivity (SPI, SCI, IIC)
Reliable in field code/tariff table updates without stopping measurement and energy counting
Secure Flash Update
Measurement triggering, sensor phase shift compensation and reduction interrupt overhead.
Programmable Delay Block
Measurement up to 64th harmonics, differential channel inputs, simultaneous current and voltage measurements.
Fast & High Resolution ADC with Simultaneous Sampling
Tariff management, Tamper time stamping, Time and Date keeping in standby modes
Independent Robust Real Time Clock
MCF51EM256 Customer needs
32-bit, 50MHz Coldfire V1 core with MAC Single core to perform calculations, meter management and communications.
Professional Development Tools Simplicity, robustness, development tools, FreeMaster
TM
10Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Independent Robust Real Time Clock
Full clock – hour, minutes and seconds with option for storing values in BCD or binary formatCalendaring – day, month, year and day of the week with option for storing values in BCD or binary formatAuto adjustment for day light saving with user defined parametersAutomatic month and leap year adjustmentProgrammable alarm with interrupt - output from IRTC in case MCU wants to use it as a wakeup eventSeven periodic interruptsMinute countdown timer with minute resolution32.768 kHz input clock with option to output the clock for use in the MCU’s ICSHardware compensation to compensate 1 Hz clock against frequency variations in oscillator clock due to temperature or crystal characteristics (correction in range from ±.12ppm up to ±3900ppm). Reset to the IRTC block is generated only when both battery supply and CPU power are removed and either is powered upBattery operation (standby mode) ensures seamless IRTC operation when CPU power is removedTamper detection to detect illegal access into the system (time stamp stored on tamper event)Non volatile 32-bit Counter (can be used for energy counting)32 bytes of standby RAMSupply current 1.5µA (powered from VBAT)
Block Diagram
Alarm Matching
Clock Compensation
IPS Bus Decode
Counter Control (with Day Light S aving Control)
Tamper Detection
StandByIsolation
S tandByRAM
Write ProtectStae Machine
Register SpaceTime, Calendar& Stopwatch
Counters
Prescaler
tamper detect
batterydisconnect
config_datartc_int_brtc_alarm
rtc_osc_clk_in
cpu_high_voltage IPS_Interface rtc_standby_b
RTC Control
rtc_osc_out_clk
rtc_off_chip_clk
rtc_cal_out
rtc_porrtc_supply
rtc_ground
buffer 1�b0
rtc_osc_buf_clk
bal_1hz_clk_in
IRTC_SYN
Tamper Detection Unit
Non volatile 32-bit Counter
TM
11Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
16-Bit SAR Analog-to-Digital ConverterLinear successive approximation converter with up to 16-bit resolutionUp to 4 pairs of differential and 24 single-ended external analog inputsADC clock range is 1-8MHz, so conversion times range from 2.7us to 1.9ms with a bus clock of 25MHz. Self-Calibration mode (offset and gain calibration)Hardware average function to increase resolution (up to 32x)Selectable voltage reference, Internal, External, or AlternateDual result registers - two sequential conversionsOutput Modes: Differential 16-bit, 13-bit, 11-bit and 9-bit modes, or Single-ended 16-bit, 12-bit, 10-bit and 8-bit modesOutput formatted in 2’s complement 16b sign extended for differential modesOutput in right-justified unsigned format for single-endedSingle or continuous conversion (automatic return to idle after single conversion)Configurable sample time and conversion speed/powerConversion complete / Hardware average complete flag and interruptInput clock selectable from up to four sourcesOperation in wait or stop3 modes for lower noise operationAsynchronous clock source for lower noise operation with option to output the clockSelectable asynchronous hardware conversion trigger with hardware channel selectAutomatic compare with interrupt for less-than, greater-than or equal-to, within range, or out-of-range, programmable valueIntegrated Temperature sensor
Block Diagram
PG,MG
/2
ADCK
ALTCLK
Bus ClockADACK
DD
IFFn
ADC
O
ADTRG
MO
DE
ADLS
MP
AD
LPC
ADIV
AD
ICLK
initi
aliz
e
sam
ple
conv
ert
abor
t
trans
fer
ADACKENco
mpl
ete
trigg
er
CLPx
CLMx
Control Registers (ADCSC2, ADCCFG1, ADCCFG2)
ControlSequencer
ClockDivide
Asynch.Clk. Gen
SARConverter
ADCSC1A
ADCSC1n
ADCxG
ADCCLPx
ADCCLMx
ConversionTriggerControl
CompareLogic
Formatting
Averager
Offset Subtractor ADCOFS
ADCSCs
ADCCFG1,2
ADCRHA:ADCRLA
ADCRHn:ADCRLn
ADCSC2
ADCCV1, ADCCV2
Calibration
1
1
transfer
ACFEACFGT,ACRENCompare true
CV1
MODE, DIFFn
AVGE ,AVGS
CFS
CAL CALF
VBGL
VALTL
VREFL
VBGH
VALTH
VRE FH
TempM
DADM3
DADM0
TempPAD23
AD4DADP3
DADP0
MCU STOPInterrupt
ADVINPADVINM
Compare true
ADHWT
ADHWTS n
ADHWTSA
V REF
SL
VRE
FSH
ADC
Hn
AIE
NnC
OC
On
CV2
TM
12Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
ADC1
ADC2
ADC3
ADC4
Ch1
Ch2
Ch3
Ch4
PreTriggerA
PreTriggerB
COCOA
COCOB
DADP1DADP1DADM1DADM1 Reg. A: Live 1 CTResult A
Result B
Result AResult B
Result AResult B
Result AResult B
AD3AD3
AD4AD4
Reg. B: Live 1 VoltageReg. C: auxiliary 1.
DADP2DADP2DADM2DADM2 Reg. A: Live 2 CT
AD5AD5 Reg. B: Live 2 Voltage
DADP0DADP0DADM0DADM0 Reg. A: Live 3 CT
AD6AD6 Reg. B: Live 3 Voltage
DADP3DADP3DADM3DADM3 Reg. A: Neutral CT
AD7AD7 Reg. B: auxiliary 2.
VREF0VREFHVREFLBandgapTemp Sensor
Trigger
PDB
TriggerA
TriggerB
PreTriggerA
PreTriggerB
COCOA
COCOB
TriggerA
TriggerB
PreTriggerA
PreTriggerB
COCOA
COCOB
TriggerA
TriggerB
PreTriggerA
PreTriggerB
COCOA
COCOB
TriggerA
TriggerB
Programmable Delay Block – Usage in Application
Significantly reduces interrupt loading!ADC has two result registersOne interrupt per measurement period
PDB - ADC Integration
Duration of the first ADC conversion (Reg. A)Start possible for second ADC (Reg. B)
TM
13Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
► Measurement period • Allows the precise definition of the measurement period • Repeatable
► Granularity • The PDB resolution is at the bus speed, ie at up to 25MHz • Granularity as small as 40nS within the measurement period
► Repeatable and precise sampling • The PDB ensures samples are taken at the correct time relative to the measurement period thus improving overall
accuracy of energy calculations ► Precision periodic measurement period
• The measurement period is the inverse of the number of samples per cycle times the line freq, IE sampling period is 1 / (samples per cycle * line freq)
• E.G., 50Hz Europe is 1/(64*50)=> 312.5uS, 60Hz US is 1/(64*60)=>260.4uS ► Variation in line frequency
• As the line frequency changes the PDB can easily be reprogrammed to take into account the line frequency thereby maintaining the power calculation algorithms are operating over the correct energy period (seconds)
► Environmental compensation • By measuring ambient temperature and load current the correct phase lag/lead error of the sensor (eg CT or shunt) can
be compensated for ► Digital compensation
• Precision compensation through timing removes need for external RC filter for low load current compensation • Digital timing alleviates the impact of capacitor ageing and thus extends the operational life of the meter before requiring
re-calibration ► Low processor overhead
• The PDB initiates measurements of up to 2 channels on up to 4 ADC's without consuming any processor time • The PDB interrupts the processor AFTER the sampling of all voltage and current measurements in the measurement
period significantly reducing interrupts associated with traditional approaches, eg 3-phase measurement of 4 current and 3 voltage measurements results in 3840(64*60) rather than 26880(64*60*7) interrupts for 64 samples/cycle @ 60Hz
PDB Benefits:Technical Detail
TM
14Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 14
Secure Flash Update – New Firmware Update
Application
0Power calculationComms Routine
Interrupt Vectors
128K
UpdateApplication
space
Power calculation - copy
Comms Routine - copy
Interrupt Vectors - copy
256K
Flash Selector = 0
OldApplication
Power calculationComms Routine
Interrupt Vectors
256K
UpdatedApplication
Power calculation - copy
Comms Routine - copy
Interrupt Vectors - copy
128K
Flash Selector = 1
0
Notes
• After MCU POR & RTC POR, flash selector = 0• Flash selector is:
• Powered by RTC power supply• MCU reset does NOT change state• Power is maintained through MCU power cycles
• Only upper flash block is erased / written• Software controlled switch between blocks, instantaneous (~ 40nS)• Flash can be used as a single code space
Blo
ck 1
Blo
ck 0
Blo
ck 0
Blo
ck 1
Update method - 11. Code in block 0 writes new application
to block 1 [left diagram]2. AFTER new code validated, flash
selector set to 0 (swapping blocks)3. New/updated code in block 1 is
executed in low address space [right diagram]
• New application can replicate itself into block 0 for further fault tolerance
• Swapping of flash blocks is controlled and maintained over power cycles
Non volatile Non volatile
TM
15Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 15
Application
0Power calculationComms Routine
Interrupt Vectors
128K
128KEmulated
EE2
256K
Flash Selector = 0
Blo
ck 1
Blo
ck 0
The second flash block can be used exclusively for data storage if firmware updates are not required by the application.
Non volatile
Secure Flash Update – EEPROM Emulation
TM
16Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
MCF51EM256 AMR Specific Connectivity
SPI Slave 5V PLC / RF Interfacing
SPI Master 5V PLC / RF Interfacing
IR Transmitter Routing with Pulsed Output
IR Receiver Routing via Comparator
SCI Modulesthree modules on all packageswakeup from stop3 on Rx edge. SCI2: Tx pin in open drain mode to support interfacing to AMR (eg PLM or RF) operating at 5VIR communication support
SCI1 and SCI2: Tx pins can be modulated with timer outputs for use with IR interfaces (frequency determined by the timer)SCI1 and SCI2: Rx pins can be routed from a programmable comparator (opto receiver).
SPI Modulesthree modules on 100-pin LQFP package (two modules on 80-pin LQPF package)with full-duplex or single-wire bidirectional; double-buffered transmit and receive; master or slave mode; MSB-first or LSB-first shiftingSPI1: with 32-bit FIFO buffer, 16-bit or 8-bit data transfersSPI2 and SPI3: standard SPI with no FIFO and 8-bit data transferSPI3: open drain outputs on SCLK and (MISO OR MOSI). These, coupled with off-chip pull-up resistors, allow half-duplex interface to a 5 V SPI interface.
TM
17Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 17
Multiple Clock Sources with Fail Safe OperationDevice powers-up from internal RC oscillator after reset.Clock Options:
External 32.768 kHz crystal (XTAL1-EXTAL1)External 1-16 MHz crystal (XTAL2-EXTAL2)Internal 32 kHz RC oscillator (max. +/- 2% total deviation of trimmed DCO output frequency over voltage and temperature range)
Internal reference clock has 9 trim bits availableClock Check & Select Block checking health of 3-possible clock sources using self test that can run at any time:
Three 8-bit registers counts 3-possible clock sources for the same amount of timeWhen any counter hits the maximum value of 0xFF the test is terminatedSoftware can then compare the three registers to obtain a crude (~1.2%) measure of how well these three frequencies correlate.
Internal Clock Source (ICS) contains Frequency-locked loop (FLL) block which drives processor core speed up to 50.33 MHz (peripherals operate at half of this speed) at 3.6 V to 2.5 V and 20 MHz at 2.5 V to 1.8 V
Clock Check& Select
ICS
XOSC2 XOSC1 IndependentRTC
oscillator control
OSCOUT1OSCOUT2
XTA
L2
EXTA
L2
XTA
L1
EXT
AL1
To LCD
VBAT
Separate Power Domain
3VVBAT
ICSI
RC
LK
Block Diagram
TM
18Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 18
MCF51EM256 Performance with Algorithms used in Metering
► Implemented mostly in “C”:• Voltage and Current RMS values• Active Energy, Active Power, Apparent
Power, Reactive Power and Power Factor
• DFT (Discrete Fourier Transform)• THD (Total Harmonic Distortion)
Documentation and Code Available
For more information refer to:http://www.freescale.com/files/32bit/doc/app_note/AN3896.pdf
TM
19Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Voltage and Current capabilityUS ANSI C12- Full scale voltage: 120V±20%- Full scale Current: 15 ~ 100 A
Designed and tested against:IEC 62053-22International Energy Metering Specification,class 0.5 (or better) for active energy
IEC 62053-23International Energy Metering Specification,class 2 for reactive energy
IEC 62056-21International Energy Metering data exchange Specification
IEC 62053-22, IEC 62053-23, IEC 62052-11Electro Static Discharge (ESD), tested per IEC 61000-4
Voltage and Current capabilityEurope/ASIA IEC 62053- Full scale voltage: 230V±10% - Full scale Current: 10 ~ 60A
Poly Phase Reference Design based on MCF51EM256
TM
20Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Poly Phase Reference Design based on MCF51EM256
Current is sensed using current transformer or shunt resistor or hall sensors. Voltage is sensed using potential divider circuit or voltage transformer. Sensed voltage and current signals are multiplied and integrated over period of time to
obtain energy and it is stored in a register.
The following items will supplied to the user for developing the Energy Meter using Freescale MCF51EM256 controller: Reference Energy Meter, Software, Design document, Source Code, Documentation, Hardware detailed design document
(excel format), BOM, Schematics, wiring diagram and EMI/EMC test reports of reference Energy Meter.
TM
21Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 21
MCF51EM256 - Three-Phase Electricity Meter
LCD 288 segments (8 x 36)
44
Vref
AD
C
Energy output pulse0.1 kWhr/pulse
L3 in
L3 out
CT
x10x100N in
N out
CT
x10x100
L1 in
L1 out
CT
x10x100
L2 in
L2 out
CT
x10x100
EE2
MRAM
RF
Battery
ZigBee®
1-16MHz
Opto (diag)
Opto (rdr)
monitor
tamperPLM
GPIOADC
SCISCI
SPI/IICADC
SPI/IICSCI/SPISCI/SPI
ADCSPI/SCI
GPIO/ADCADCGPIOGPIO
GPIO On Led
32 KHzRTC
3v
VoltageL1L2L3
PDB for ADC Trigger• Programmable Delay block to trigger ADC.• Allows Simultaneous triggering of voltage and current channel by adjusting the delay
• Allows phase compensation from 0 to 7 degrees
Communication• AMR SPI and AMR SCI• High drive Output on SCI (for IR)• Combination of SCI and Comparator support Opto receiver
Fault Tolerance• Fail Safe Operation• Independent WDOG• On-chip comparator for Zero-crossing• Hardware CRC accelerator
Flash and Remote Update• Robust Flash Update• Dual Flash Architecture
IRTC and Security• RTC Clock Compensation(0.119 PPM to 3906 PPM)• Write protection• Time stamping Tamper events• Protection against Battery Removal• Monotonic Counter • Low Voltage Protection• Dedicated Tamper Input• RTC current consumption (Standby) : around 1.5uA
DualFlash
TM
22Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Documents:Poly-Phase Electricity Meter Reference Design.pdfDesign Reference Manual Devices Supported: MCF51EM256
CodeWarrior Project (CW v6.2, SW)
MCF51EM256110RDDS (MCF51EM256-based Poly Phase Energy Meter Reference Design 110V Technical Specifications).pdfReference Design Data Sheet
MCF51EM256220RDDS (MCF51EM256-based Poly Phase Energy Meter Reference Design 220V Technical Specifications).pdfReference Design Data Sheet
System Considerations Overview:Pin MappingPower Calculation ...AC to DC Converter (ENOB)
Poly Phase Reference Design based on MCF51EM256
TM
23Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Poly Phase Reference Design based on MCF51EM256
Freescale Reference Energy Meter can be connected to one of the following three types of input system:
3Ф – 4 Wire System
1Ф – 2 Wire System
1Ф – 3 Wire SystemAll the above analog signals are fed to ADC and ADC is sampling these signals synchronously 128 times per cycle (samples/cycle).
TM
24Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Poly Phase Reference Design based on MCF51EM256
TM
25Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
MCF51EM256 Poly-Phase Electricity Meter – Software Modules
TM
26Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
CodeWarrior Development Studio
CodeWarrior Project (CW v6.2, SW)
Easy to use BDM interface including 8byte
backdoor key for BDM access/security
TM
27Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
CodeWarrior Project (CW v6.2, SW)
TM
28Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
CodeWarrior Project (CW v6.2, SW)
TM
29Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
CodeWarrior Project (CW v6.2, SW)
TM
30Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
CodeWarrior Project (CW v6.2, SW)
AN3896MCF51EM256 Performance Assessment with Algorithms used in Metering Applications (with software)This application note has the objective to demonstrate the implementation of the following algorithms used in metering applications using Freescale MCF51EM256.Square Root, Voltage and Current RMS values, Active Energy, Active Power, Apparent Power, Reactive Power and Power Factor, DFT (Discrete Fourier Transform), THD (Total Harmonic Distortion)
AN3827Differences between the Controller Continuum ADC modules:The 12-bit ADC vs. the MCF51EM256 16-bit ADC
AN3938Using the MCF51EM family for Infrared Communication
AN3796LCD Driver specification
AN3493ADC16 Calibration Procedure and Programmable Delay Block Synchronization for MCF51EM256
TM
31Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Design Consideraions - ENOB, Pin-Mapping, Power, Crystal, ...
TM
32Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Design Consideraions - ENOB, Pin-Mapping, Power, Crystal, ...
TM
33Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Hardware - GBR Data's, Schematic, BOM, ...
TM
34Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Hardware - GBR Data's, Schematic, BOM, ...
TM
35Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Hardware - GBR Data's, Schematic, BOM, ...
TM
36Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Hardware - GBR Data's, Schematic, BOM, ...
TM
37Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Hardware - GBR Data's, Schematic, BOM, ...
TM
38Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Poly Phase Reference Design based on MCF51EM256- Technical Specification
TM
39Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Poly Phase Reference Design based on MCF51EM256
TMFreescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Tool Chain
TM
41Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
• CodeWarrior Development Studio offers tools for every stage of the project
CodeWarrior Development Studio for Microcontrollers
Important Choices are Made
Shortened Learning Curve
User-FriendlyPerformance
Multi-H/W CapableEnhanced BDMFlash Programming
Revision ControlQuality Control
ProjectCreation
H/W-SpecificCode Generation
Application-SpecificCode Development
Test/Debugand Validation
H/W–S/WIntegration
Product LifeSupport/Update
Project Wizard• Device• Language• Default
Connection• Add Files• RAD• C/C++
Options
Integrated Development Environment / Project ManagerIntegrated Development Environment / Project Manager
Editor
Compiler
Assembler
LinkerProcessorExpert
Device Initialization
DeviceKnowledgeDatabase
Debugger
Multi-Target Interface
Simple Profiler
ISS Multilink
Revision ControlandConfigurationManagement
TM
42Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
CodeWarrior Special Edition; It’s for Free!!Limited up to 32K / 64K Compiler
Special Edition Features:• New Project Wizard• MCU Change Wizard• Unlimited assembler (absolute, relocatable,
mixed and in-line) for HC(S)08, RS08, ColdFire V1 microcontrollers
• Highly optimized ANSI C compilers and C source level debugger, limited up to:
• HC(S)08 – 32K• ColdFire V1 – 64K
• Emulator-like complex debug capability for HCS08 and ColdFire V1 microcontrollers
• Fast Flash programming:• HC08: Via MON08• HCS08, RS08, ColdFire V1: Via BDM
• Full-chip Simulator for HC(S)08/RS08• UNIS Device Initialization tool to generate
HC(S)08, RS08, ColdFire V1 CPU and peripheral initialization code
• UNIS Processor Expert™ with components for HC(S)08 and ColdFire V1 CPUs and most on-chip peripherals
• Unlimited files in a project
Availability:• On WEB – Now• LDC (CWX-HXX-SE) – Now
Licensing:• Key is permanent, free of charge and
automatically installed with the software• 30 day Professional Evaluation license.
After 30 days, operates at Special Edition level
Support:• 1 year support included
C-Compiler Upgrade:• One upgrade package, which includes
• HC(S)08 – 64K• ColdFire V1 – 128K
TM
43Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
► Standard EditionAll Features of Special Edition Plus:• Unlimited C Compilers and Debugger for
HC(S)08 and ColdFire V1 microcontrollers• Unlimited Data Visualization • Access to Unis’ software and external
peripheral beans► Technical Support:
• One year support included► Licensing:
• Registration on the Web for a permanent license key
Standard and Professional Editions
Professional EditionAll the Features of the Standard Edition Plus:• C++ compiler/debugger for HC(S)08 and ColdFire
V1 microcontrollers• Code coverage• Profile analysis• Encryption support• Bean Wizard to build a software library that can
re-target to any HC(S)08, HC(S)12, ColdFire V1 or DSC device
• Advanced Processor Expert beans• OSEK kernel awareness• Session record and replay• PC-lint plug-in
Technical Support: • One year support included
Licensing:• Registration on the Web for a permanent license
key
TM
44Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Power Line Modem Reference Design based on 56F8025This PLM modem uses the frequency band 'A' of the CENELEC directive (frequency band 3-95kHz) reserved for energy providers (not consumer home networks). The PLM application is based on the Freescale DSP56F8025/23 (Hawk V2) family.
S-FSK (Spread FSK) modulation is used for communication, and both S-FSK modulation/demodulation routines are fully handled by the DSC software.
Power Line Modem baud rate is 2400bps and data consistency is secured with FEC (Forward Error Correction Reed-Solomon codes with erasure) methods. Modems use the 'repeating' technique to reach larger distances in harsh environment (targeting typically 500-1000m from the central node).
57.6kHz
38.4kHz
TM
45Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
OFDM over PLC
►Target: CENELEC A-band {9-95kHz}, possibly 32 sub-carriers 16QAM @ 2400Hz spacing
►First rough estimate:
• raw data rate: 250-300kbps, max. real data rate 25-30kbps• CPU core power to be explored, heavy IFFT/FFT computations, 10-30MMACs
expected, MAC unit required, modulo calculations, bit reverse addressing needed• receive sample rate 500kSamples/s (A/D with DMA (or equivalent) reqd’)• transmit sample rate 500kSamples/s (D/A with DMA (or equivalent) reqd’)• RAM needs to be explored, expected several 20-30kB, for buffers, FFT, etc.
►
TM
46Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Freescale Product Longevityw
ww
.free
scal
e.co
m/P
rodu
ctLo
ngev
ity
TM
47Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc.
Freescale’s Value to the Metering Market ► Standard products can help solve key customer problems for metering systems
• Maximize battery life ultra low power 8bit & 32bit MCUs• iRTC for accurate calendaring and fraud prevention• Reliable readings fast & accurate on-chip ADCs• Integration memory, LCD ctrl, analog• Communication I/F ZigBee®, IEEE® 802.15.4, and Ethernet• Apart of Standards IEEE® 802.15.4, ZigBee® Alliance, PRIME (PLC), HomePlug ??
► Commitment to the market with products and solutions that have characteristics important to the metering segment:
• Longevity of product available• Quality
► Breath of products spanning from RF to Sensors to MCUs to MPUs► Mix & match IP allowing specific metering solutions► Focus on Enablement
• 1 stop shop, CodeWarrior, Turnkey Ref Design + MCU to help Reduce product development cost/time• Improve time-to-market and time-in-market
TM
48Freescale, 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, TurboLinkand VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2010 Freescale Semiconductor, Inc. 48