External Use
TM
Kinetis M Series MCUs
Overview Presentation
M A R . 1 2 . 2 0 1 4
Ralf Lehmann | DTRM EMEA
TM
External Use 1
Energy Meter Types & Measurements
TM
External Use 2
Smart Metering
Market Overview and Challenges
Market Overview:
400Mu Smart e-meters to be deployed by
2015 ($2B SAM)
Deployment mainly driven by regulations
and mandates
75% are 1-phase e-meters
Challenges for Smart Meters & MCUs:
Cost effective:
- Meter in a chip
- Reduced Bill of Material
- Reduced calibration time at end of manufacturing line
Security: With an increased number of connected meters, any entry point to the
Grid need to be highly secured and protected against -
- Fraud: Need to guarantee billing information integrity
- Privacy: Power consumption data reflects users activity and can generate added value services
- Hacking: Smart Grid illegal access could result in a black out
Accuracy:
- Meet increased demands for accuracy while deceasing the power consumption of the meter
Source: Pike Research, 2011
TM
External Use 3
Freescale Solutions Enabling the Smart Grid
Energy Efficient. Secure. Connected
Power
Generation,
Transmission,
Monitoring &
Control,
Renewables
MPC8xxx,QorIQ, Kinetis
Distribution &
Sub-station
Automation,
Grid Power
Protection,
Relay/Switch
Control and
Monitoring
MSC9130,MPC8xxx,
QorIQ, Kinetis
Data
Concentrator
P102x, MPC8308, i.MX28
1/2/3-phase
e-Meters,
Sub-Metering
Kinetis M Series
Kinetis L/K
Series,
Accelerometers
(Physical
Tamper
Detection)
HAN (Home
Area Network)
ZigbeeKinetis KW20
TM
External Use 4
EnablementAnalog Front End Security & HMI
1, 2, & 3-phase regionally specified electricity meter Reference Designs certified to international standards
Filter and FFT based metrology firmware provided free-of-charge
TWR-KM34Z50M Freescale Tower System Module compatible with multiple peripheral modules from Freescale and 3rd parties
Comprehensive peripheral library drivers
Complimentary Freescale MQX Lite RTOS
Freescale CodeWarrior IDE with Processor Expert code generator. ARM ecosystem support
High accuracy AFE with 4 x 24-bit Sigma Delta ADCs for simultaneous voltage and current measurement.
0.1% power measurement accuracy with high SNR of 94dB and robust ESD performance (4 kV ESD, 6 kV PESD)
2 x Programmable Gain Amplifiers delivering dynamic range of 200 to 1
12 channel, 16-bit SAR ADC inputs for accurate measurement of phase voltage in 3-phase applications
Precision voltage reference with low drift over temperature and a phase shift compensator to simplify accurate power computation.
Auto compensated iRTC with tamper detect, fast calibration and low drift over temperature
Core, Memory Protection Unit, Cross-Bar Peripheral Bridge, GPIO and DMA enable compliance with WELMEC & OIML regional standards requiring the separation of legally relevant (billing related) software from the main application software
Active and passive tamper pins with automatic time stamping to protect the meter against external intrusion.
Hardware Random Number Generator eases and speeds up support for encryption algorithms
CRC (16/32 bits) for data integrity
Segment LCD Controller supporting up to 288 segments and 8 backplanes. Low power blink mode operation and segment fault detect capability
Enabling high accuracy, secure 1-, 2- & 3-phase electricity metering solutions
through a rich analog front end, hardware tamper detection and multiple
low power features in a 32-bit ARM CortexTM-M0+ MCU
Kinetis M Series: Smart Metering & Measurement MCUs
TM
External Use 5
Kinetis M Series MCUs: Overview Core
32-bit ARM Cortex-M0+ core up to 50MHz
Separate FLL post-scalers for Flash and Core clocks.
Dedicated PLL for modulator clock
4ch DMA
Memory Protection Unit
Single 32kHz Crystal operation
MHz Crystal optional
Security & Encryption
Programmable 16/32-bit CRC
IRTC w/ tamper detection
3 Tamper pins (operating on battery)
Random Number Generator (NIST: SP800-90)
AES Encryption (via software library)
Memories
Up to 128 KB Program Flash
16 KB SRAM
Analog
4x24 bit after averaging (2xPGA) highly accurate supporting EN
50470-1, EN 50470-3, IEC 62053-21, IEC 62053-22 and IEC 62053-
23, optimized for shunt sensor (50uOhm).
0.1% error in active and reactive energy over a dynamic range of
2000 to 1
Internal 1.2V reference voltage (15-20 ppm/oC)
12-ch 16-bit SAR for auxiliary measurement
2x analog comparator
Serial Communications
2x SPI
4x UART
All combined with Quad Timer & HSCMP for IR
2 support ISO7816
All support flow control
2 I2C
All UARTs and SPIs are 3V compatible while 1 UART and 1 SPI are
both 3V and 5V compatible (open drain configuration)
Peripheral XBAR
Remapping peripheral IOs
UART selection for IR
Timer/PWM/Clock
Quad Timer (total 4 universal timers)
2x PIT
1x Watchdog Timer (windowed, independently clocked)
1x EWM (External Watchdog Monitor)
1x LPTimer
LCD Display
Up to 288 segment LCD, up to 8 backplanes
Wakeup Unit
Group selected GPIOs (16), LPTIM, RTC (+tamper pins) ,
HSCMP, SCI , Brownout and POR sources to wake up from
Power Gated STOP mode
GPIO
Up to 68 with push pull, pull up/down select
Up to 8 GPIO with filter
Support for interruption on any edge
Single cycle access for all GPIOs (Rapid GPIO)
Power Modes & Clock
Many low power modes supported
2.7V to 3.6V Operating voltage with AFE
1.71V to 3.6V Operating voltage without AFE
1.71V-3.6V IRTC VBAT supply
32kHz or 4 MHz internal clock source
32.768kHz crystal oscillator
Package
100 LQFP, 64 LQFP and 44 LGA options
-40C ~ +85C Temp
New IP and
functionality
+/-250mV
analogue I/O pads
with 6kV PESD
TM
External Use 6
eMeter Security Requirements
Traditional 2-chip Solutions
Legally relevant software shall run in privileged mode exclusively preventing other software
functions to influence its execution
Memory sections for legally relevant software, parameters and variables storage shall be
protected against reading, writing and execution (R/W/E) from other software routines
On-chip peripherals controlled by the legally relevant software shall not be influenced by
other software routines
Legally relevant software Legally non-relevant software
TM
External Use 7
Kinetis M Series MCUs: Legally Relevant/Non-relevant
Software Separation H/ware SupportMemory Protection Unit
(MPU)Performs on-chip memory access
control based on access attributes
of each bus cycle. Separate access
rights can be defined for CM0+
and DMA bus masters
GPIO ProtectionControls R/W accesses to GPIO
pins (grouped to 8-bit ports).
Supports privileged secure and
user secure/non-secure access
modes based on access
attributes of each bus cycle
Cross Bar SwitchForces and enables control
attributes for CM0+ and DMA
masters. Supports privileged
secure and user secure/non-
secure access modes
Kinetis M Platform*Supports privileged and user
access modes
DMA Controller ModuleConducts accesses to on-chip
memory with either fixed or inherited access attributes. Supports privileged secure and user
secure/non-secure access modes on a per channel basis
Peripheral Bridge
(AIPS-Lite) Performs on-chip peripheral
register space access control
based on access attributes of
each bus cycle
TM
External Use 8
Kinetis M Series MCUs: Support for WELMEC/OIML Standards
Kinetis M Series MCU Platform: MPU: 8 region descriptors (memory protection)
AIPS-Lite with *ACR (peripheral protection)
GPIO with ACR (GPIO protection)
DMA with ACR (DMA access protection)
Core User/Supervisor mode of execution.
*ACR Access Control Register
Freescale MQX Lite RTOS: Reduced Footprint, target code size to be within 6K
Available as Processor Expert (PEX) component
Processor Expert device drivers instead of IO subsystem
No need for dynamic memory allocation
Reduced functionality but with compatible programming model.
RTCS and File system will not be available.
USB Device stack supported via PEx.
MQX Lite will support legally/non-legally relevant code separation
Freescale white paper @ http://www.metering.com/node/22879
Kinetis M Support for Distinct Separation of Legally Relevant Software
Cortex-
M0+
Core
MQX Lite
RTOS
WELMEC/
OIML
Platform
Extension
http://www.metering.com/node/22879TM
External Use 9
Kinetis M Series MCUs: Enablement
Development Hardware IDE & Code GenerationRun-Time Software &
Product Selector
Tower Development Platform
TWR-KM34Z50M
www.freescale.com/TWR-KM34Z50M
MKM34Z5128CLL5 MCU (50 MHz, 128 KB Flash, 16 KB RAM, low power, 100LQFP)
Large 160-segment LCD glass On-board debug circuit: open source
JTAG/SWD (OpenSDA) MMA8491Q 3-axis accelerometer/anti-
tamper tilt sensor Independent, battery-operated power supply
for real-time clock (RTC) and tamper detection modules
General-purpose Tower plug-in (TWRPI) socket
$159 SRP (TWR-ELEV module not included)
Freescale MQX Lite RTOSwww.freescale.com/mqx
Free, light-weight MQX kernel customised
for small resource MCUs
Packaged as a Proc. Expert component
Upwards compatible with MQX RTOS
Integration into CodeWarrior or as
standalone for integrating generated code
into 3rd party IDEs
Micro Solution Advisorwww.freescale.com/sa
Web-based interactive MCU selector
Filters for operating characteristics,
packaging, memory configuration &
peripherals. Verifies muxing compatibility
Save, download and print summary reports
and pin muxing configurations
Freescale & 3rd party IDEs Freescale CodeWarrior for MCUs v10.5,
free up to 64KB
IAR EWARM v6.50 or higher
Freescale Processor Export
Code Generator Free software generation tool for device
drivers / start-up code
7 steps from project creation to debug
dramatically reduces development time
Available within CodeWarrior or as a
standalone plug-in for IAR/Keil/GNU IDEs
http://www.freescale.com/TWR-KM34Z50Mhttp://www.freescale.com/mqxhttp://www.freescale.com/sahttp://www.keil.com/http://www.keil.com/TM
External Use 10
Kinetis M Series: Freescale e-Meter Reference Designs1-phase
(EMEA & Asia)
2-Phase
(Americas)
3-Phase
(EMEA and Asia)
5(100)A current range, nominal current 5A, peak current
100 A
Tested with range 0240A (320A)
Four quadrant measurement, 85V...264V, 50/60Hz
voltage range
Active and Reactive energy accuracy IEC50470-3 Class
C, 0.2%
4x44 segment LCD display: V,A,W,Var,VA, ...
Electronic tamper detection via MAG3110 magnetometer
IEC1107 infrared hardware interface or optically isolated
RS232 interface
Communication interface connector (for I2C Daughter
Card for connection to a ZigBee network
Current Class: CL200 (TA=30A, Max. 200A, Starting
50mA)
Nominal Voltage: 120VAC 20%, Nom. Freq.: 60Hz
10%
Accuracy class: ANSI C12.20, Class 0.2
Default Watt-hour constant: Kh=0.2 (from 0.001 to 10)
8x20 segment LCD including charge pump
LED pulse o/ps (kWh, kVARh) and opto. isolated pulse
o/p
Electronic tamper detection via MAG3110 magnetometer
& MMA8491Q accelerometer
ANSI C12.18-2006 Infrared Interface, optically isolated
RS232 serial interface (optional only)
RF communication supporting 2.4 GHz IEEE 802.15.4 or
900MHz RF Mesh IEEE 802.15.4g/e + WPAN/IPv6
Enclosure: compliant with ANSI C12.10-2004, Form 12S
(or Form2S)
Click here for webpage
1-Phase
5 to 80A current range (nom. 5A; peak 80A). 85 to 264V,
50/60 Hz voltage range
Accuracy class: B or C (active energy EN50470-3) and 3%
or 2% (reactive energy EN62053-23)
4x22 segment LCD including charge pump
Upper/lower tamper cover monitoring with time stamp
IEC1107 infrared h/ware interface & Isolated (4kV) RS232
port for monitoring & s/ware upgrade
LED pulse outputs (kWh, kVarh)
EMC proven design (EN61000-4-2, EN610004-4)
RF connector supporting SubGHz or 2.4 GHz 802.15.4
Xtrinsic 3-axis low power tilt sensor for electronics tamper
detection (optional)
Click here for webpage
1-ph Optimized
Class 1, 5(30) capacitive power supply-based meter
90300 V operating range , 4565 Hz & Back UP battery
Active and reactive energy accuracy per IS13779
Current transformer for neutral current sensing
IS13779:1999 compatible
Click here for webpage
1-Phase1-Phase
(optimized)2-Phase 3-Phase
Supplied with comprehensive firmware for complex measurement algorithms
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDKM3METERING2PHhttp://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDKM3METERING1PHhttp://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDKM3ENERGYMETER1PHTM
External Use 11
Kinetis M Series: Availability
Part NumberMeter
Type
ADCsPackage
Seg.
LCD
Memory
(Flash /
SRAM)
10K #
SRP
(USD)
Sample
Availability(PK: Engineering)
(MK: Production)
MKM14Z64CHH5 1-ph 444LGA
(5x5mm2)- 64 / 16 KB $1.63 MK: now
MKM14Z128CHH5 2-ph 444LGA
(5x5mm2)- 128 / 16 KB $1.90 MK: now
MKM33Z64CLH5 1-ph 3 64LQFP 8 x 17 64 / 16 KB $2.01 MK: now
MKM33Z128CLH5 1-ph 3 64LQFP 8 x 17 128 / 16 KB $2.28 MK: now
MKM33Z64CLL5 1-ph 3 100LQFP 8 x 38 64 / 16 KB $2.13 MK: now
MKM33Z128CLL5 1-ph 3 100LQFP 8 x 38 128 / 16 KB $2.40 MK: now
MKM34Z128CLL5 2-ph 4 100LQFP 8 x 38 128 / 16 KB 2.56 MK: now
Order should be placed against superset pns shown in blue below.
TM
External Use 12
Kinetis KM
100LQFP
HMI
NVRAM
Phase Current
Sensors
Phase Voltage
Sensors
1-3 phases
1-4 phases
Basic
COMMs
Pulse
Outputs
RTC
Tamper
HAN
SPI 100 LQFP
14 x 14 mm2
Use Case 1: Kinetis M Series MCUs
Single Chip 1-, 2- and 3-phase Electricity Meter
Legally relevant
Legally nonrelevant
TM
External Use 13
Kinetis KM
64/100LQFP
HMI
NVRAM
Phase Current
Sensors
Phase Voltage
Sensors
Kinetis MCU
>256kB Flash
1-3phases
1-4phases
Basic
COMMs
SPI
Pulse
Outputs
RTC
Tamper
HANSPI
100 LQFP
14 x 14 mm264 LQFP
10 x 10 mm2
Legally relevant
Legally nonrelevant
Use Case 2: Kinetis M Series MCUs
Modular 1-, 2- and 3-phase Electricity Meter
TM
External Use 14
Use Case 3: Kinetis M Series MCUs
1-, 2- and 3-phase Smart AFE
44 LGA
5 x 5 mm2Kinetis KM
Smart AFE
44LGA
NVRAM
Phase Current
Sensors
Phase Voltage
Sensors
Kinetis MCU
>256kB Flash
1-3phases
1-4phases
Basic
COMMsSPI
Pulse
Outputs
RTC
Tamper
HMI
Legally relevant
Legally nonrelevant
TM
External Use 15
The worlds first ARM Cortex M0+ based Metrology MCU
Part of Freescales broad Metrology Portfolio
Enabling single-chip 1,2 & 3-phase meter designs
AFE, Security & HMI. Single crystal implementation
Single point of calibration during manufacture
Highest accuracy metrology with regional
feature support
Multiple ADCs with PGA
Supports neutral disconnect use case
Compliance with WELMEC/OIML global
security standards
Memory & peripheral protection
H/ware tamper detect with time stamping
Low power RTC, battery back up with tamper memory
Exceptional Freescale development Support
Certified 1,2 & 3-ph reference designs + metrology firmware
World-leading Metering Solutions Engineering Expertise
Free CodeWarrior IDE + Processor Expert & MQX Lite RTOS
Product Longevity Program (min. of 10 years MCU life)
Kinetis M Series MCUs: Summary
www.freescale.com/Kinetis/Mseries
http://www.freescale.com/Kinetis/MseriesTM
2014 Freescale Semiconductor, Inc. | External Use
www.Freescale.com
http://www.freescale.com/http://www.freescale.com/https://twitter.com/Freescalehttps://twitter.com/Freescalehttps://twitter.com/Freescalehttps://twitter.com/Freescalehttps://www.facebook.com/freescalehttps://www.facebook.com/freescalehttps://www.facebook.com/freescalehttps://www.facebook.com/freescale