Robust Design with Kinetis E Series MCUs FTFINDF
Robust Design with Kinetis E Series MCUs FTF-IND-F 1142 Allen Lv | Senior Global Product Manager JUN. 01. 2015 TM External Use
Agenda • Kinetis E Mission • Make Your Design Robust with Kinetis E • Kinetis E Enablement • Summary TM External Use 1 #FTF 2015
Kinetis E Mission TM External Use 2 #FTF 2015
Kinetis E Series Designed for applications where need high robustness on EMC/ESD, 5 V system, 8 b/16 b MCUs migration. Robustness +/- 20 KV PESD, +/- 4. 4 KV EFT Fully compliant with 5 V and 3 V system 2. 7 V to 5. 5 V power supply 8 b/16 b Migration Easy of use, 32 b Cortex®-M 0+ Core, 8 -bit peripherals TM External Use 3 #FTF 2015
Kinetis E Series Target Market & Applications BLDC Motor Control Appliance Industrial Convection Oven E-Bike DC Motor DC Fan Microwave Oven 3 Washer Induction Cooker Intelligent MCCB 2 4 1 5 Circuit Breaker Refrigerator Smart Lighting General Purpose CFL Ballast LED Lighting LED Street Light UPS TM External Use 4 #FTF 2015 HVAC Industrial HMI
KE 0 x. Z Master Block Diagram Key Features: System ARM® Cortex® -M 0+ 48 MHz Watchdog 128 KB Flash Debug Interfaces LVD/POR 256 B EEPROM Interrupt Controller BME/Bit Band 1 K LPO 2. 7~5. 5 V PMC FLL Core/System • ARM ® Cortex ® -M 0+ up to 48 MHz Memory • up to 128 KB Flash • up to 16 KB SRAM • up to 256 B EEPROM Communications • 1 x MSCAN • 3 x UART / 2 x SPI / 2 x I 2 C Analog • 1 x 12 b ADC • 2 x ACMP Timers • 1 x 6 ch FTM (PWM) • 2 x 2 ch FTM (PWM) • 1 x PIT / 1 x PWT • RTC Others • Up to 71 I/Os • 2. 7 -5. 5 V, -40 to 105 o. C Packages: 80 LQFP(0. 65 mm pitch) 64 LQFP(0. 5 mm pitch) 64 QFP(0. 8 mm pitch) 44 LQFP(0. 8 mm pitch) 32 QFN(0. 5 mm pitch) 24 QFN(0. 5 mm pitch) 20 SOIC(1. 27 mm pitch) 16 TSSOP(0. 65 mm pitch) Pin compatible within KE Memories Core Clocks 16 KB SRAM 4 -24 M/32 K OSC IRC 32 KHz(1%) Security and Integrity Analog Timers CRC 1 x 12 b ADC 3 x Flex. Timer 2 x I 2 C 2 x SPI KBI UID 2 x ACMP PIT 3 x UART 1 x MSCAN 2 true open drain PWT RTC TM External Use 5 #FTF 2015 Communication Interfaces HMI 8 pins 20 m. A
KE 0 x. Z Parts List BME UART SPI I 2 C CAN ACMP 12 bit ADC Total # of IOs 16 TSSOP 20 SOIC 24 QFN 32 LQFP 44 LQFP 64 LQFP 80 LQFP KE 04 Z CM 0+ (MHz) EEPROM (KB) KE 02 Z Part Number SRAM (KB) Sub-Family Features Flash (KB) Memory MKE 02 Z 16 xxx 4 40 MHz 16 2 0. 256 1 3 2 1 - 2 1 28~37 - - - √ √ √ - - - MKE 02 Z 32 xxx 4 40 MHz 32 4 0. 256 1 3 2 1 - 2 1 28~57 - - - √ √ √ - MKE 02 Z 64 xxx 4 40 MHz 64 4 0. 256 1 3 2 1 - 2 1 28~57 - - - √ √ √ - MKE 04 Z 8 xxx 4 48 MHz 8 1 - 1 1 - 2 1 14~22 √ √ √ - - - MKE 04 Z 64 xxx 4 48 MHz 64 8 - 1 3 2 2 - 2 1 37~71 - - - √ √ MKE 04 Z 128 xxx 4 48 MHz 128 16 - 1 3 2 2 - 2 1 37~71 - - - √ √ MKE 06 Z 64 xxx 4 48 MHz 64 8 - 1 3 2 2 1 37~71 - - - √ √ MKE 06 Z 128 xxx 4 48 MHz 128 16 - 1 3 2 2 1 37~71 - - - √ √ KE 06 Z TM External Use 6 #FTF 2015
Kinetis E Series: Selling Point - Robust Feature category Feature Benefit to customer Robust Improved 5 V I/O pad with digital filter Better EMC performance and system robust in the harness environment and easy for PCB layout Safety IEC 60730 compliant watchdog, CRC and certified IEC 60730 safety S/W library Makes system more safer while reducing system cost by removing external BOM TM External Use 7 #FTF 2015
Kinetis E Series: Selling Point - Efficiency Feature category Feature Benefit to customer Fast processing Single cycle 32 bx 32 b ARM Cortex-M 0+ core Much higher performance than M 0, and 8/16 -bit MCUs Fast response Nested Vectored Interrupt Controller True hardware interrupt nesting and less interrupt latency than M 0 and 8/16 -bit MCUs Fast response 12 -bit x 16 ch SAR ADC with 8 -entry FIFO Provide faster sampling rate, higher resolution, and faster response Fast response 2 x ACMP with 6 -bit DAC Provide over-current, over-voltage protection as well as zero-crossing detection for full voltage range. Fast response Bit manipulation engine Support bit-band on peripherals that extends the core instructions and generates more efficient code Fast response Single cycle fast GPIO Provide faster response bit-banging and software protocol emulation without additional BOM TM External Use 8 #FTF 2015
Kinetis E Series: Selling Point - Application Special Feature category Feature Benefit to customer Motor control 6 -ch 16 -bit Flextimer optimized for motor control with sync to ADC via PDB Make motor control easier High drive Up to 8 high drive pins with each supporting 20 m. A Provide direct connection to LED drive circuit without additional cost Data endurance Up to 256 B EEPROM with 500 K endurance cycles Provide longer life time of the NVM SMBus compatible IIC Make SMBus connection easier without additional overhead TM External Use 9 #FTF 2015
Kinetis E Series: Selling Point - Save Cost Feature category Feature Benefit to customer Scalable & Pin-Compatible Wide range of packages with pincompatible Makes code easy to reuse and platform design easier Low PCBA cost 0. 8 mm pitch package (64 QFP) Cost down PCBA process Lost cost development tool CW special edition free for 64 KB Cost down development TM External Use 10 #FTF 2015
Kinetis E EMC Performance Robustness in EFT, PESD and AC Power Relay Tests Test Conditions • Microwave Oven with KE 02 as main control MCU • Board and System level tests based on KE 02 Controller Board − IEC 61000 -4 -4(EFT) − IEC 61000 -4 -2(PESD) − China Appliance local AC Power Relay test Test Results • Board level − IEC 61000 -4 -4(EFT): +/- 4. 4 k. V* − IEC 61000 -4 -2(PESD): Indirect Contact Discharge +/- 20 k. V − China Appliance local test on AC Power Relay: 6 -turns without Reset • System level − IEC 61000 -4 -4(EFT): +/- 4. 4 k. V* − IEC 61000 -4 -2(PESD): Contact Discharge(at the case) +/- 20 k. V − IEC 61000 -4 -2(PESD): Air Discharge (at the control panel) +/- 15 k. V *Limited by the test equipment max output voltage TM External Use 11 #FTF 2015 Microwave Oven with the KE 02 Controller Board
Make Your Design Robust with Kinetis E TM External Use 12 #FTF 2015
Background • A simple microwave oven reference design is developed as a test platform. • The hardware, firmware and mechanical design is to provide a stable, controllable and precise environment for EMC measurement. TM External Use 13 #FTF 2015
Test Platform Application: Home Appliance Product: Microwave oven MCU: MKE 02 Z 64 VLD 2 (44 -LQFP) Board: KE 02 Controller Board with Power Supply KE 02 Controller Board Microwave Oven TM External Use 14 #FTF 2015
Test Results Board level: • IEC 61000 -4 -4(EFT): +/- 4. 4 k. V* • IEC 61000 -4 -2(ESD): Indirect Contact Discharge +/- 20 k. V • China Appliance local test on AC Power Relay: 6 -turns without Reset System level • IEC 61000 -4 -4(EFT): +/- 4. 4 k. V* • IEC 61000 -4 -2(ESD): Contact Discharge (at the case) +/- 20 k. V • IEC 61000 -4 -2(ESD): Air-Discharge (at the control panel) +/- 15 k. V *Limited by the test equipment max output voltage TM External Use 15 #FTF 2015
PCB Layout Recommendation Ground Plane Connection: • Rotate the KE 02 package 45 degree for more easy routing on I/O pins. • Fill up a ground plane underneath the MCU and connect all VSS pins together to ensure all VSS pins are kept at same potential level. • The MCU ground plane can be further extended to the package corner points to achieve short ground paths with minimum loop area for other peripheral components around the MCU. • Use separated ground trace to avoid ESD discharge energy directly inject to MCU ground. TM External Use 16 #FTF 2015
PCB Layout Example 1 (Refer to AN 4779) Fill up a ground plane underneath the MCU and connect all VSS pins together with same potential level Minimize the ground loops by use of the corner points for peripheral components around the MCU 5 V GND Power supply GND 12 V GND Avoid the ESD discharge energy injects into the 5 V GND directly TM External Use 17 #FTF 2015
PCB Layout Recommendation (cont. ) Crystal Oscillator Ground Connection: Place oscillator circuit components as close as possible to the XTAL and EXTAL pins. • Do not place any signal trace near crystal circuit or across the bottom side of the circuit. • Connect crystal oscillator load capacitors ground to the common ground plane. • Route ground traces in the form of a guard ring, along with the traces connecting to the EXTAL and XTAL pins can minimize the noise coupling into the crystal circuit. • TM External Use 18 #FTF 2015
PCB Layout Example 2 (Refer to AN 4779) Add a guard ring (a ground trace with no current flow) Connect crystal loading capacitors to a common ground plane Avoid any signal trace near the oscillator circuit or across the bottom side of the circuit Place the oscillator circuit to the EXTAL and XTAL pins as close as possible TM External Use 19 #FTF 2015
Defensive Software Design • The software design cannot change the physical media which couples the noise into the system, or reduce the absolute magnitude of noise generated from external sources. • The software must be able to identify a particular event if it is a false alarm triggered by noise sources or it is a normal driven event and then make a smart decision on corresponding actions. • Good defensive software design is one of the key factors to improve overall performance, system protection and operating stability in noisy environments (e. g. EMC). TM External Use 20 #FTF 2015
System Configuration Software can act as Digital Filter to suppress EMC noise TM External Use 21 #FTF 2015
Implementations • • Enable Watch-Dog to avoid code runaway. Refresh data direction setting registers periodically. Fill unused memory to avoid code runaway. Define all interrupt vectors even those that are not used. Select Frequency Locked Loop (FLL) engaged mode. Always re-confirm edge triggered event. Enable digital filter on input port. TM External Use 22 #FTF 2015
Application Note for EMC • AN 4779 − EMC Design Tips for Kinetis E Family • AN 4438 − EMC Design Considerations for MC 9 S 08 PT 60 • AN 4476 − • AN 4463 − • Improving the Transient Immunity Performance of Mircocontroller-Based Applications AN 1050 − • Designing for Board Level Electromagnetic Compatibility (Chinese Version) AN 2764 − • Designing for Board Level Electromagnetic Compatibility AN 2321_GB − • How To Develop a Robust Software in Noise Environment AN 2321 − • System Design Guideline for 5 V 8 -bit families in Home Appliance Applications Designing for Electromagnetic Compatibility (EMC) with HCMOS Microcontrollers AN 1259 − System Design and Layout Techniques for Noise Reduction in MCU-Based Systems TM External Use 23 #FTF 2015
Application Note for EMC • AN 1263 − • AN 1705 − • Use of OSC 2/XTAL as a Clock Output on Motorola Microcontrollers AN 1706 − • Determining MCU Oscillator Start-up Parameters EB 396 − • Resetting MCUs AN 1783 − • Resetting Microcontrollers During Power Transitions EB 413 − • Power-On, Clock Selection, and Noise Reduction Techniques for the Motorola MC 68 HC 908 GP 32 AN 1744 − • Noise Reduction Techniques for Microcontroller-Based Systems AN 2015 − • Designing for Electromagnetic Compatibility with Single-Chip Microcontrollers Microcontroller Oscillator Circuit Design Considerations EB 398 − Techniques to Protect MCU Applications Against Malfunction Due to Code Run-Away TM External Use 24 #FTF 2015
Kinetis E Enablement TM External Use 25 #FTF 2015
Kinetis E Series MCUs Entry-level Enablement IDE & Code Generation Hardware New Freescale Freedom Development Platform FRDM-KE 02 Z 40 M FRDM-KE 04 Z FRDM-KE 06 Z Freescale & 3 rd party IDEs • Freescale Code. Warrior IDE v 10. 5: free • • 64 KB Keil MDK: free 32 KB IAR EWARM: free 32 KB Atollic True. Studio: free 8 KB GCC ARM Embedded via Launchpad. net • Low –cost platform for entry-level developers ($12. 95 USD) Freescale Processor Expert Code Generator • Features the Freescale open standard embedded serial and debug adapter (Open. SDA). • Free software generation tool for device drivers / start-up code • 7 steps from project creation to debug – dramatically reduces development time • Available within Code. Warrior IDE or as a standalone plug-in for IAR/Keil/GNU IDEs GNU TM External Use 26 #FTF 2015 Product Selection Solution Advisor www. 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 mixing configurations
Kinetis E: HARDWARE Development Platforms www. freescale. com/FRDM-KE 02 Z Freedom Platform (FRDM-KE 02 Z) The Freescale Freedom development platform is a set of software and hardware tools for evaluation and development. It is ideal for rapid prototyping of microcontroller-based applications. The Freescale Freedom KE 02 Z hardware, FRDM-KE 02 Z, is a simple, yet sophisticated design featuring a Kinetis E Series microcontroller, the industry’s 5 V microcontroller built on the ARM® Cortex™-M 0+ core. Features: • MKE 02 Z 64 VQH 2 MCU – 20 MHz, 64 KB Flash, 4 KB SRAM, 64 QFP • Capacitive touch slider, MMA 8451 Q accelerometer, Tricolor LED • Flexible power supply options – USB, external source • Easy access to MCU I/O • Ir. DA transmitter and receiver • Thermistor sensor to measuring temperature • Form factor compatible with Arduino ™ R 3 pin layout • New, Open. SDA debug interface − Mass storage device flash programming interface (default) – no tool installation required to evaluate demo apps − P&E Debug interface provides run-control debugging and compatibility with IDE tools − CMSIS-DAP interface: new ARM standard for embedded debug interface Refer to the FRDM-KE 02 Z User’s Manual and Open. SDA User’s Guide for more information. TM External Use 27 #FTF 2015 Order Now $12. 95
Get to know KE 02 freedom Reset Button USB Open. SDA Ir. DA Arduino R 3 compatible I/O Header Accelerometer KE 02 Z 64 VQH 2 Thermistor Arduino R 3 compatible I/O Header RGB LED Touch Slider TM External Use 28 #FTF 2015
KE 0 x driver library • • ARM CMSIS complaint coding format more friendly for ARM users Unified coding style for better readability, reusability, portability, and maintenance. Unified API easy to understand for other module developers More efficient code by using inline functions Cover all on-chip peripherals providing low level driver(register access) and high level driver Rich sample code for each module from simple to complicated API reference manual help user rapid to learn how to use it TM External Use 29 #FTF 2015
Summary • Kinetis E Series MCUs Mission − 5 V, Robustness, 8/16 b Migration • Kinetis E Series MCUs Robustness − Help customer for robust design with high performance on EMC/ESD • Kinetis E Series MCUs, − Various enablement helps customer on easy to use, fast to market. TM External Use 30 #FTF 2015
TM www. Freescale. com © 2015 Freescale Semiconductor, Inc. | External Use
- Slides: 32