of 107/107
TM Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. © 2010 Freescale Semiconductor, Inc. Freescale Kinetis Seminar ARM Cortex-M4 Microcontrollers Design Potential. Realized Gonzalo Delgado & Paolo Alcantara

Kinetis Mexeedev

  • View
    259

  • Download
    3

Embed Size (px)

Text of Kinetis Mexeedev

Freescale Kinetis SeminarARM Cortex-M4 Microcontrollers Design Potential. Realized Gonzalo Delgado & Paolo AlcantaraTM

Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

Top Level Agenda

Top Level Agenda Freescale Kinetis 1-Day Seminar

Freescale Kinetis Overview System Architecture Peripherals Overview Hands-On Exercise Third Party Ecosystem Q&A, Close

Freescale Confidential and ProprietaryFreescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.TM

2

Freescale Kinetis OverviewTM

Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

Kinetis: Overview

The most scalable portfolio of low-power

ARM Cortex-M4 MCUs available today

Innovative 90nm Thin-Film Storage Flash with FlexMemory embedded

EEPROM capability

Exceptional mixed-signal integration One of the most comprehensive ARM enablement portfolios, including solutions from Freescale as well as the ARM connected community

Freescale Confidential and ProprietaryFreescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.TM

MCU Portfolio: Solutions-Focused and Core AgnosticBuilt on

Power Architecture Technology

90nm

100-400+ MIPS

Market-leading performance, reliability and software enablement for automotive and industrial applications.

32-bit

Kinetisbased on ARM Cortex-M4 core ColdFire

NEW! 90nm

50-200 MIPS

Scalable, ultra-low-power product families with bundled software enablement for industrial and consumer applications.Application-oriented ultra-low power solutions with optimized enablement, integration and cost for appliance, metering and consumer applications.

ColdFire+

NEW! 90nm

50-200 MIPS

16-bit

Digital Signal Controllers S12 and S12X

Application-oriented solutions for automotive, motor control and power conversion applications.

8-bit

RS08 and S08

Scalable cost & power-optimized product families for industrial, automotive and consumer applications.

Giving customers an ideal solution regardless of architecture preference.Freescale Confidential and ProprietaryFreescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.TM

Kinetis MCUsScalable Mixed-Signal Consumer and Industrial Microcontroller FamiliesMarket-leading software enablement IDE, RTOS and initialization tools from Freescale and leading ARM ecosystem providers to speed time to market

ColdFire+ MCUs

More than 40 New 90nm

Innovative low-power 90nm thin film storage flash process with FlexMemory EEPROM capability

Hundreds of new 32bit mixed-signal MCUs with huge performance, memory and feature scalability

More than 200 New 90nm Kinetis MCUsUltra-low power consumption with flexible power management to balance performance and battery life

More than 240 new 90nm 32-bit MCUs in scalable product families

First available broad-market MCU samples based on ARM Cortex-M4!Freescale Confidential and ProprietaryFreescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.TM

Freescales Industrial and Multi-Market 32-bit MCU PortfolioAppliance

Consumer

General Purpose

Energy & Metering

Medical

Factory Automation

5V Capability

Low Power

Highperformance TimersHuman Machine Interface

USB ConnectivityEncryption Touch Sensing

Large, Compatible Portfolio Full Connectivity Offering Low Power

Measurement Engine Power Line Communication Wireless Capability

Precision Analog Ultra-Low Power Connectivity Continua

Signal Processing High-Speed Peripherals Integrated Analog and Mixed-Signal

Precision Analog

Kinetis MCUsColdFire+ MCUs

Offers customers great solutions for a variety of applications.Freescale Confidential and ProprietaryFreescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.TM

Key DifferentiatorsMemory Technology, Low power, and IntegrationTM

Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

90nm TFS Flash: DifferentiatorsFreescales 90nm Thin Film Storage (TFS) flash memory technology with FlexMemory will deliver outstanding performance, value, reliability and low power for next generation industrial and consumer microcontrollers. Industry leading bit-level reliability through revolutionary silicon nano crystal technology Fast, low-voltage transistors that provide lowpower read capability and help satisfy the increasing demands of power-sensitive applications with full flash operation specified down to 1.71 volts Flash access times of >30nsec; and excellent area efficiency, enabling a rich level of memory and peripheral integration across flash densities, while maintaining optimal MCU cost

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

90nm TFS Flash: DifferentiatorsAttribute Read-while-write with program memory Granularity Write Time Erase + Write Time Guaranteed Endurance Write Voltage Flexibility Traditional embedded EEPROM Yes Byte write/erase ~1-5msec (byte write only) ~5-10 msec 50-300K cycles (fixed) 2.0V Fixed by part number FlexMemory Yes Byte write/erase ~100usec (word or byte program, brown-outs w/o loss/corruption of data) ~750usec + ~750usec = ~1.5msec Can exceed 10Mcycles [configurable] 1.71V Configurable [Quantity vs. Endurance]

TFS Value = reliability, lower power, EEPROM, scalabilityFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

Kinetis Power ModesTypical Recovery Time: IDD:Starting @ 64) DSP extensions by default Single Precision Floating Point Unit (optional)

Freescale IP and Innovation

On-chip instructions / data cache (optional) Cross-Bar Switch (concurrent multi-master/slave access) On-chip DMA for CPU off-load Low-leakage Wake-up (in addition to AWIC) Unit

Freescale IP for Digital Signal Processing

Motor Control: Advanced algorithms, longer lifespan, power efficiency Automation High calculation and algorithm bandwidth at a low cost Power management Designed for low/battery powered systems Audio and Video 5x performance improvement over software, making batteries last longer

Dotted boxes denote optional blocks

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Kinetis Family200 scalable and compatible DevicesTM

Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

14

Kinetis Family Overview

K70512KB-1MB, 196-256pin

Common

Common

Common

System IP32-bit ARM Cortex-M4 Core w/ DSP Instructions Next Generation Flash Memory High Reliability, Fast Access FlexMemory w/ EEPROM capability SRAM Memory Protection Unit eDMA Low Voltage, Low Power Multiple Operating Modes, Clock Gating (1.71V-3.6V , optional with 5V tolerant I/O) -40C to 105C

Analog IP16-bit ADCs

Digital IPCRC I2 C

DevelopmentBundled IDE w/ Processor Expert Bundled OS USB, TCP/IP, Security Modular Tower H/ware Development System Application Software Stacks, Peripheral Drivers & App. Libraries (Motor Control, HMI, USB) Broad 3rd party ecosystem

K60256KB-1MB, 100-256pin

K50128-512KB, 64-144pin

Programmable Gain Amplifiers

SAI (I2S) UARTs/SPIs

K4064-512KB, 64-144pin

12-bit DACs

Programmable Delay Block External Bus Interface

K3064-512KB, 64-144pin

High-speed Comparators

Motor Control Timers, PIT, LPTeSDHC

K2032KB-1MB, 32-144pin

Low-power Touch Sensing

RTC

K1032KB-1MB, 32-144pin

*128k Flash and higher **120MHz & 150MHz only ***256 pin only

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

CPU Frequency Options

Maximum CPU Frequency Across Kinetis FamiliesFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

Embedded Memory Options

Kinetis Families WITHOUT FlexMemory

Kinetis Families WITH FlexMemory

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

DIGITAL I/O = UART, SPI, I2C, CAN, TIMER, etc. ANALOG I/O = OSC, ADC, CMP, etc.

Pin Compatibility Across FamiliesDIG / ANA I/O + LCD DIG / ANA I/O + sLCD

LCD power pins

DIG / ANA I/O

DIGITAL I/O

DIGITAL I/O

DIGITAL I/O

DIGITAL I/O

General Purpose USB DIGITAL I/ODIGITAL I/O

(8 x 12) (8 x 24) 96 segments 192 segments (8 x 12) (8 x 24)DIGITAL I/OsLCD USB + DIGITAL I/O

USB

USB

K10 K20 & K30 K40 = Add USBThe only difference will be 4 extra USB

pins and 4 less digital I/O pins

K10 K30 & K20 K40 = Add Segment LCDDigital & Analog I/O signals maintain placement order Segment LCD signals are muxed with existing Digital & Analog I/O signals Most Digital I/O signals muxed with Segment LCD signals become available on added pins by larger package

K20 K60 = Add EthernetAll Ethernet signals are

muxed with existing Digital & Analog I/O signalsTM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

DIG / ANA I/O + LCD

K10 K20 48-pin 48-pin

K30 64-pin orK40 80-pin 96 segments 192 segments 64-pin or 80-pin

DIG / ANA I/O + LCD

DIG / ANA I/O

Kinetis PeripheralsHMI, Connectivity, Communications, Interfaces, Integrity & SecurityTM

Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

Feature Summary: HMI (Human Machine Interface)

MCU

*Low Power Touch Sensing (All Kinetis families) Low Power Segment LCD (K30, K40 families) Graphics LCD (K70 family) Audio Interface (DSP + IIS) (All Kinetis families)

123 456 789 0#Low power wake-up via touch, H/ware module avoids polling method of s/ware implementations Blink mode operation reduces power, Failure detection in s/ware of segment, connector or LCDto-connector faults 8-bit QVGA (MCU), 24-bit SVGA with ext. memory Bus Master memory to LCD data transfer with no CPU intervention M4 core - fast/efficient processing, IIS - easy integration of audio processing h/ware

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Feature Summary: Connectivity & CommunicationsIEEE 1588 Compliant 10/100 Ethernet MAC (K50, K60, K70 families)USB host/device/OTG (FS/LS) Controller (K20, K40, K60, K70 families) USB host/device/OTG (HS) Controller (K20, K60, K70 families) CAN, UART (ISO7816), DSPI, IIC, IIS (All Kinetis families) Carrier Modulator Transmitter (All Kinetis Families)Hardware time stamping provides precision clock synchronization for real-time industrial control, AMD Magic Wake-Up Pack [wake-up source for AWIC] DCD (Device Charge Detect) optimizes charging current/time extending battery life, Low voltage regulator supplies 120mA at 3.3V for powering ext. components from 5V input

USB LS/FS Device/Host/OTG 2.0 complaint with internal PHY and USB HS Device/Host/OTG 2.0 compliant with up to 480Mbps with external ULPI PHYMultiple comms. interfaces for simple and efficient data exchange supported by eDAM, industrial network bridging and audio interfacing Infra Red waveform generation for remote control applications

www.freescale.com/MQX [= FREE RTOS, RTCS, .... ]Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

Feature Summary: Mixed Signal (Analogue)16-bit ADC (All Kinetis families) 12-bit DAC (All Kinetis families) Comparator (All Kinetis families)Fast, accurate signal conditioning, configurable resolution, sample time, avaraging, self calibration, level/compare mode, speed and power (8/10/12/16-bit) Analog signal generation (DMA and buffer support) for audio applications Fast, accurate motor over-current protection with internal 6-bit DAC, band gap and external or internal voltage reference

Programmable Gain Amplifier (All Kinetis families)Analog Voltage Reference (All Kinetis families) FlexTimer [PIT & LPT] (All Kinetis Families)

x64 gain for small amplitude signal boost

Accurate on-chip Vref eliminates need for external Vref reduced system cost Input / output, combine, pulse measurement, PWM functions; double buffered, fault detect & dead time, Quadrature encoder, self test, DMA trigger, gloabel time base [8ch, 2ch, 2ch]

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Feature Summary: Security

Flash Security (All Kinetis families) Memory Protection Unit (All Kinetis families) DryIce & Tamper Detection (K60, K70 families) Cryptographic Acceleration Unit(K50, K60, K70 families)

4-level protection limits access to flash resources safeguarding users IP

Data protection and increased software reliability

Voltage, frequency, temperature & external sensing for physical attack detection, independent VBAT & EXTAL32 Faster than s/ware implementations with only minimal CPU intervention Wide variety of algorithms supported Validation of memory contents and communication data for enhanced system integrity [initial seed and polynomial, transpose and final XOR]

H/w Cyclic Redundancy Check (All Kinetis families)

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Feature Summary: External Interfaces

FlexBus (All Kinetis families) DRAM Controller (K60, K70 families) NAND Flash Controller (K10, K20, K60, K70 families) Secure Digital Host Controller (All Kinetis families)

Connection of ext. memories & peripherals e.g. graphics displays. Supports up to 6 chip selects [no additional BOM]

Connection of DDR, DDR2 and low-power DDR memories Connection of up to 32-bit ECC current & future NAND types ECC management handled in h/ware minimizes s/ware overhead Connection of SD, SDIO, MMC or CE-ATA cards for inapplication software upgrades, media files or Wi-Fi support

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Enablement & EcosystemDevelopment Tools & Hardware, 3rd PartiesTM

Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

Choose Your Partner: The Freescale MCU EcosystemRun-Time Software: RTOS, Stacks, File System

ARM Cortex Microcontroller Software Interface Standard - hardware abstraction layer

HW BDM Debugger/Emulators

IDE: Tools Compliers, Debuggers

GNU Tools

MQX Support / Design Services

Audio/Video Codecs

GUI Graphical

Security / Medical

EVBs & System Design

Ind. Protocol Stacks

eGUI

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Cortex-M4 Math and DSP LibrariesFree ARM Cortex-M4 Math & DSP librariesCodeWarrior, IAR, Keil, and CMSIS C callable and operating system independent functions Functions optimized for ARM Cortex-M4 using compiler intrinsics for DSP/SIMD instructions Separate functions for 8-bit, 16-bit, 32-bit integers and 32-bit floating-point values Supports many math and DSP functions:Filtering Biquad cascade direct form 1 (IIR) Convolution Partial convolution FIR (transversal) filter Polyphase FIR decimator Polyphase FIR interpolator LMS adaptive filter Normalized LMS adaptive filter Sparse FIR filter Correlation 64-bit high precision biquad filters FIR lattice filters Direct form 2 transposed IIR filter IIR lattice filters Transforms Complex forward FFT Real FFT Inverse real FFT Discrete cosine transform Inverse discrete cosine transform Matrix addition, subtraction, transpose, scaling, inversion Controller PID controller Field oriented control (clarke and park transforms)

Vector Math Absolute value Add (element by element) Vector dot product Multiply elements Invert sign (negate) Add constant offset Scale by constant Shift left/right Subtract (element by element) Fast Math Sine, Cosine, Square root Interpolation (linear and bilinear) Complex Math Complex conjugate Complex magnitude Complex magnitude squared Complex by complex multiplication Complex by real multiplication Complex dot product Statistics Maximum / minimum value Mean Power Root mean square (RMS) Standard Deviation Variance

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Kinetis EnablementFreescale MQX + MCUFree MQX RTOS

+ Tower System

+ CodeWarrior IDE

MQX Core PSP & BSP

+Full-featured, scalable, proven RTOS Simplifies HW management, streamlines SW development Reduces development costs while speeding time to market

Modular, expandable and cost-effective development platform for 8/16/32-bit MCUs and MPUs Rapid eval and prototyping with maximum HW reuse. Supported by a diverse range of MCU and peripheral plug-in boards and a growing web community

Eclipse environment Processor Expert code generation wizard Build, debug and flash tools Software analysis Kernel-aware debug Host platform support Visual and automated framework to accelerate development time

Comprehensive solution for embedded control and connectivity

Open source hardware platform for prototyping application development

One-stop-shop for silicon, IDE & RTOSFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

A modular development platform for 8/16/32-bit MCUs & MPUs

The Freescale Tower System

Quickly combine Tower Modules to build a prototype of your application Modules sold individually or in kits Open Source: Build your own Tower Module to integrate your IP Cost-optimized hardware Software support from Freescale and Third Parties Growing community of Third Party hardware support On-line community: www.towergeeks.orgPart Number Contents SRP

TWR-MEM

TWR-LCD

TWR-SENSOR-PAK

MCU/MPU Module:

Tower controller board Standalone or in Tower System

Primary Elevator

TWR-K40X256 TWR-K40X256-KIT TWR-K60N512 TWR-K60N512-KIT

TWR-K40X256 moduleTWR-K40X256 module TWR-ELEV module TWR-SER module

$69 $139 $69

Board Connectors Peripheral Module: Secondary Elevator

TWR-K60N512 moduleTWR-K60N512 module TWR-ELEV module TWR-SER module

$139

Up to 3 per system: Serial, Memory, LCD,.. Mix & match with different MCU modulesTM

Freescale Confidential and ProprietaryFreescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

Top Level Agenda

Top Level Agenda Freescale Kinetis 1-Day Seminar

Welcome and Introductions Freescale Kinetis Overview System Architecture Peripherals Overview Hands-On Exercise Third Party Ecosystem Q&A, Close

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

30

Kinetis System ArchitectureTM

Freescale, the Freescale logo, CodeWarrior, ColdFire and Powerquicc are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Flexis, Processor Expert and QorIQ are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 and ARM Cortex-M3 are trademarks of ARM Limited. 2010 Freescale Semiconductor, Inc.

System Agenda

Cortex M4 Overview Kinetis System Architecture Flash Performance FlexMemory Low Power Modes

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

32

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

33

Cortex M4 is fully compatible with Cortex M3 and adds : DSP & SIMD instructions Optional s.p. Floating Point

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

34

DSP Library Performance ( CMSIS 2.0 )Cortex-M4 SIMD + FPU Fix point: ~2x faster Floating point: ~10x fasterDSP Library Benchmark: Cortex-M3 vs. Cortex-M4 - 35% - 75% - 69% - 70% - 91%158,878

FIR q15fixed point

PID q15fixed point

IIR q31fixed point Cortex-M3

Matrix Mulfixed point Cortex-M4

Correlationfloating point Memory Access CyclesTM

Cycles: smaller numbers are better

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

35

13,619

8,819

2,244

8,596

2,462

8,310

2,462

41

27

Kinetis System Architecture

TM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

Bus StructureCore

SRAM

Cache

AHB Masters Bus Fabric

AHB SlavesFlash IPS Slaves

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Kinetis System Architecture

All access to SRAM is via the MPU MPUFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

38

Architecture of devices available todayNo SP FPU 100MHz No Cache Up to 512kB No NFC No LCDC No SDRAM No DryICE 4K EERAM

100 MHz

4 Kbyte EERAM

Up to 512k bytes

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

39

System Agenda

Cortex M4 Overview Kinetis System Architecture Flash Performance FlexMemory Low Power Modes

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

40

Kinetis: Flash Performance

TM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

Clock Domains (100 MHz)

Platform 100 MHz

50 MHz

Flash 25 MHz

IPS Peripherals 50 MHz

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Flash Memory ControllerFlash

System Architecture

Dual Bank, x64 Flash Memory Consecutive x32, word aligned reads with no wait states FMC effectively reads 128bit records from flash each access

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

43

System Agenda

Cortex M4 Overview Kinetis System Architecture Flash Performance FlexMemory Low Power Modes

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

44

Flex Memory

TM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

What is FlexMemory?

FlexMemory is a memory block that can be configured as EEPROM and/or flash memory Combination of TFS flash array (FlexNVM) + SRAM block (FlexRAM) + hardware state machine. Fully embedded in the MCU XBS avoids software complexity and eliminates system resource impact on CPU/flash/RAM of EEPROM emulation schemesMemory Interface & Control Logic

Firmware

Main Program Memory

FlexMemory

Can be accessed simultaneously with the main program memory Can be used for storing additional application program code, data tables or byte write/erase system data

FlexRAM

FlexNVMFirmware

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Feature list [1]

P-Flash (Program Flash)

256 Kbytes of P-Flash memory composed of one logical 256 Kbyte Flash block divided into 128 sectors of 2 Kbytes P-Flash protection scheme prevents accidental program or erase of stored data Automated, built-in, program and erase algorithms with verify Section programming for faster bulk programming times Read access to P-Flash memory possible while programming or erasing data in the D-Flash memory or EERAM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

47

Feature list [2]

D-Flash (Data Flash)

Up to 256 Kbytes of D-Flash memory with 2 Kbyte sectors D-Flash protection scheme prevents accidental program or erase of stored data Automated, built-in program and erase algorithms with verify Section programming for faster bulk programming times Read access to D-Flash memory possible while programming or erasing data in the P-Flash memory

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

48

Feature list [3] EERAMUp to 4 Kbytes of EERAM configured for EEE or traditional RAM operations When configured for EEE (EEPROM Emulation):

EERAM protection scheme prevents accidental program or erase of data Built-in hardware emulation scheme to automate EEE record maintenance Programmable EEE Data Set Size and D/E-Flash Partition Code allows EEE memory endurance trade-offs Supports EERAM aligned writes of 1, 2, or 4 bytes at a time Read access to EERAM possible while programming or erasing data in the P-Flash or D-Flash memory

When configured as Traditional RAM Read and write access possible to the EERAM while programming or erasing data in the P-Flash or D-Flash memory

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

49

FTFL Commands Supported Embedded Commands:

Read 1s Block Read 1s Section Program Check Read Resource Program Longword Erase Flash Block Erase Flash Sector Program Section Read 1s All Blocks Read Once

Program Once Erase All Blocks Verify Backdoor Access Key Program Partition Set EERAM Function

The address of FCCOBn registers are not in normal sequence (3,2,1,0,7,6,5,4,B,A,9,8)Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

50

Useful Information

Program

flash is guaranteed to minimum 10K cycles over full operating specificationParameterTacc at Full Power Tacc at Low Power Twakeup from VLLS mode Twakeup from POR Tpgm Terase 50 us 2 ms 75 us 5 ms

Min

Typ

Max28 ns 800 ns[1] 4 us 20 us 500 us 200 ms

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

System Agenda

Cortex M4 Overview Kinetis System Architecture Flash Performance FlexMemory Low Power Modes

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

52

Kinetis Low Power Modes & Wakeup Modes, NVIC, AWIC, LLWU

TM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

Power Modes, Current & Wake-Up TimesTypical Recovery Time:

IDD:Starting @ Alt7 Drive Strength low/high Open drain yes/no Slew Rate : fast/slow Pull Resistor Enable : yes/no, pull-up or pull-down Passive filter enable : optional passive lowpass filter (10-30MHz BW )

PCR settings are always in effect regardless of what module is connected to the pinNote : a lock bit in each PCR register can make it read-only until next reset

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

60

Section 1 Communications Peripherals

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

61

Part 1 of 7 - UARTIt is not Just a UART:

It is 6 UARTs on 144pin packages

All 6 UARTs support LIN All 6 UARTs support IrDA

Modified IP : MCF51AG128

Check routing in SIM; only UART0 &, UART1 CMP

UART0 supports ISO7816 (SIM, smartcards)

At 100MHz:

UART0 /1 6.25 Mbits/s UART2-5 3.13 Mbits/s

Reduced CPU Loading

Rx, Tx from UART can assert DMA request UART0, UART1 have 8-entry Rx, Tx FIFOs All UARTs have optional RTS, CTS UART2-5 have double-buffered registers

Address-Match feature

Low Power enablement

Muxed to several alternate ports

e.g. UART0 available on 4 ports for 144pin packageTM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

62

Part 2 of 7 DSPI [1]DSPI = DMA Serial Peripheral Bus:Re-use IP : MCF532x/7x, MCF5445x, others

A 3-wire, full duplex synchronous bus 3 SPIs on 144pin packages Master and Slave Modes Very Fast FIFO Architecture

Max Master speed is fBUS/2 , 25MHz Max Slave speed is fBUS/4 , 12.5 MHz 4-entry Transmit FIFO 4-entry Receive FIFO Command Buffer in system RAM Tx FIFO not full DMA trigger Rx FIFO not empty DMA trigger Can be expanded with external mux e.g. DSPI0 available on 3 ports for 144pin packageTM

DMA Capable Queued Mode

Up to 6 Peripheral Chip Selects

Muxed to several alternate portsFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

63

Part 3 of 7 - I2CStandard I2C Features, of course:

Modified IP : MCF51AG128

Multi-master operation 7-bit address or 10-bit address extension Software-selectable acknowledge bit Interrupt-driven byte-by-byte data transfer Arbitration-lost interrupt with automatic mode switching from master to slave Calling address identification interrupt START and STOP signal generation and detection Repeated START signal generation and detection Acknowledge bit generation and detection

Muxed to several alternate ports

e.g. I2C0 available on 3 ports for 144pin package

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

64

Part 4 of 7 FlexCANCompliant to CAN protocol Ver 2.0BModified IP: MCF52xx FlexCAN3

Standard data and remote frames Extended data and remote frames Zero to eight bytes data length Programmable bit rate up to 1 Mb/sec Content-related addressing 16 mailboxes Zero to eight bytes data length Each configurable as Rx or Tx Individual Rx Mask Registers per Mailbox Full featured Rx FIFO with storage capacity for up to 6 frames and automatic internal pointer handlingCRC

Flexible Mailboxes Architecture

Idle

Start-of-Frame

Identifier

Control

Data

ACK

End-of-Frame

Interframe Space

Idle

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

65

Part 4 of 7 FlexCAN [2]

New Features

Extended ID Filtering Safe mechanism for ID filter re-configuration Match incoming IDs against:

128 extended IDs, or 256 standard IDs or 512 partial IDs, with up to 32 individual masking capability

Flexible Mailboxes Rx Mailboxes can be configured with the same acceptance criteria

Reception Queue Allows the CPU more time to service received messages

Selectable priority of message reception between Mailbox and Rx FIFOStart-of-Frame Identifier Control Data CRC

Idle

ACK

End-of-Frame

Interframe Space

Idle

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

66

Part 5 of 7 - USBUSB-oriented Modules:Re-use IP: MCF5225x, MCF51JM USB ecosystem is an integration of three modules: On chip voltage regulator Device charger detection module (DCD) Full-speed USB 2.0 dual-role module (Host / device)

3.3vVoltage regulator VBUS D+ DGND

USB

DCDFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

67

Part 5 of 7 USB [2]

On chip voltage regulatorUSB voltage regulator is independent of the MCU Enabled even if the MCU is not powered. 5v USB voltage input

NEW IP

3.3v output @ 120mA Output pin: Vreg33 Can supply MCU

Drop-out is 300mV Modes: Run (120uA) Standby (1uA) Shutdown

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

68

Part 5 of 7 USB [3]

USB EngineMain Features

Re-use IP: MCF5225x, MCF51JM

Full-speed USB 2.0 Compliant Dual Role Operation Host/Device 16-off, double-buffered, bidirectional endpoints Onchip USB full-speed PHY Low Power Operation Integrated with DCD ModuleVBUS D+ DGNDDCD

Only 2 pins to Remember!D+ USB0_DP DUSB0_DM Both shared with DCD Block Dedicated, so no pin muxing required.

USB

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

69

Part 5 of 7 USB [4]

Device Charger Detection DCDBackground:

NEW IP

NEW IP

USB Battery Charger Spec Rev 1.1 Compliant I am a USB Device, Full Speed USB2.0 I have a rechargeable battery I want to know if the host into which I am plugged can provide sufficient charging current

Negotiated during device attachment D+ and D- sink/source currents, detected by DCD module Charger Port Detection Charger Type Detection About 40ms after D-pin connect debounce.Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

70

Part 6 of 7 - EthernetEthernet Module MAC-NET ( 10/100 MAC )Modified IP: MCF5441x Supports

legacy FEC buffer descriptors compatible with FEC used on ColdFire Supports MII and RMII interfaces IEEE1588 Implements a hardware acceleration block For IP, TCP, UDP and ICMP protocol services Supports AMD magic packet detection with interrupt to wake up MCU from low power mode

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

71

Part 7 of 7 - SSISynchronous Serial Interface:A full duplex synchronous bus, typically for audio Re-use IP: MCF532x/7x, MCF5445x, others 1 SSI on 144pin packages Supports a variety of formats: AC97 I2S Normal Modes Synchronous, also Gate Clock mode Asynchronous Network (TDM) Mode FIFO Architecture DMA Capable Dual 15-entry, 32-bit Transmit FIFOs Dual 15-entry 32-bit Receive FIFOs Tx FIFOn empty DMA trigger Rx FIFOn full DMA trigger SSI available on 3 ports for 144pin package

Muxed to several alternate ports

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

72

Section 2 Analog Peripherals

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

73

Part 1 of 4 ADC16 SAR architecture with up to 16-bit resolution Up to 4 pairs of differential and 24 single-ended external analog inputs + various internal channels Single or continuous conversion (automatic return to idle after single conversion) Configurable sample time and conversion speed/power Input clock selectable from up to four sources Operation in low power modes Asynchronous clock source for lower noise operation Selectable hardware conversion trigger with hardware channel select Automatic compare with interrupt for less-than, greater-than or equal-to, within range , or out-of-range, programmable value Temperature sensor Hardware average function Selectable voltage reference: external or alternate Self-calibration mode Programmable Gain Amplifier (PGA) with up to x64 gain

Two independent ADC blocks available in current siliconFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

74

12 bit DAC Overview & Features

Part 2 of 4 DAC12

Low power, general purpose 12 bit dac Two blocks available on current devices 16 word FIFO with hw or sw triggering, and configurable watermark. Selectable reference voltage Output available on-chip and off-chip Interrupt or DMA request generation Mantains static voltage output in Stop modes. Operational range : Vdd = 1.71 to 3.6V Vref.= 1.15V to 3.6V

DAC & buffer

16 word FIFO can be triggered form programmable PDB update pulses and can update the output word pointer in 3 modes :

Circular Buffer mode Swing (Up-Down) mode One Time Scan mode

16 word FIFO

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

75

Part 3 of 4 VREFAdds to PMC bandgap reference , but with higher performance and more featuresFeatures

1.20 V nominal output ( Factory Trimmed ) Tight regulation mode for external use < 33ppm/C temp variation In critical 0-50 C temp range VREF module connects to : 1. dedicated VREF_OUT pin ( only in tight regulation mode ) 2. DAC ( as voltage reference input ) 3. ADC ( as reference and channel input ) 4. HSCMP 0,1 . Static in LLS, off in VLLSx, functional in all other modesFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

76

Part 4 of 4 HSCMP

Comparator

Features:

operation over entire supply range and rail-to-rail inputs optional output to MCU pin for all comparators configurable rising and falling edge interrupts option to generate DMA request wake-up source for all MCU lowpower modes operation in continuous, sampled, or windowed modes programmable filter to change output state only when consecutive samples agree four software-controlled levels of hysteresisTM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

77

Section 3 - Timers

LPT

CAU

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

78

Part 1 of 7 - PDB PDB functionalityThe purpose of PDB (Programmable Delay Block ) is to synchronize by means of hw the activity of certain peripherals, by generating :

programmable delays between input triggers and output triggers periodical output triggers

output

triggers from PDB are available to : ADC16, DAC12, HSCMPx triggers can be sourced to PDB from : external pin, CMP, PIT, FTM, RTC, LPT, software

input

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

79

Part 2 of 7 - FlexTimerTiming & Control / PWM - Overview

Up to 3 FlexTimer with 2ch, 2ch and 8ch [ main user registers are buffered ] Support for motor control , power management, and digital lighting solutions FTM is based/backwards compatible with HC9S08 TPM but with several key enhancements [ signed up counter, deadtime insertion, fault inputs, enhanced triggering function, initialization and polarity ]

16bit (un)signed counter [ divide-by 1,2,3,8,16,32,64, or 128 ]

Free-running or with initial and final value Up or up-down counting Clock Options: Bus Clock [default] FFCLK [Fixed Frequency Clock] [ 1/2 of system clock frequency ] EXTCLK [External Clock Path] [ 2 Pins, 1/4 of system clock ] Global Time Base [ Synchronization of FTM modules (two ore more) ] Multiple sources of interrupts [ OR'd together ]NOTE The FTM1 and FTM2 configuration differs from the FTM0 configuration by reduced number of channels and by adding support for quadrature decoder mode.

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Part 3 of 7 - CMTFeature Overview

Carrier Modulation Transmitter

Provides means to generate the protocol timing and carrier signals for encoding schemes

Incorporates hardware to off-load the critical and/or lengthy timing requirements Support Interrupt and DMA request [ i.e. interrupt on end of cycle ]

Modulator disabled allow infrared output useModes of operation:

Time with independent control of high/low times [ Modulator can gate the carrier onto the modulator output ] Baseband [ Modulator can control the logic level of the modulator output ] Frequency shift key (FSK) [ Modulator can count carrier periods and instruct the carrier generator to alternatebetween two carrier frequencies whenever a modulation period (mark + space counts) ]

Direct software control of CMT_IRO pin [ infrared output ] Extended space operation in time, baseband, and FSK modes [ Extended Space Operation can be used to emulate a zero mark event ]TM

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

Part 4 of 7 - LPTFeature Overview 16bit free-running counter

Low-Power Timer

Reset on compare Pulse counter with compare

Input pins and rising or falling edge CMP output used in pulse counter mode

Interrupt Modes

and HW trigger on Timer Compare

[ across all power modes ]:

Pulse Counter, with glitch filter is bypassed / enabled

[ glitch filter clock sources are 1kHz LPO, EXTAL, EXTAL32, IRC ] Time Counter, with presacle bypassed / enabled

[ increment 22.....216 ] Continue operating through most system reset events The LPT is reset only on global POR or LVD AWIC and LLWU Wake-up Source

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Part 5 of 7 - PITFeature Overview Stopping and Starting Modifying Running Timer Period Dynamically Setting a New Load Value [without restarting] Independent timeout periodes for each timer Generate triggers at periodic intervals [ timer reaches '0' ] Generate DMA trigger pulses Generate maskable Interrupts Counter values (current state) could be read Functional in RUN and VLPR modeProvide an automatic mechanism to transmit bytes, frames or packets at fixed intervals without the need for processor intervention. Seperate Vectors PIT Ch0...Ch3

Periodic Interrupt Timer

4 x 32bit timers [ system clock source ]

DMA transfer Ch0 ... Ch3

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Part 6 of 7 - COP & EWMComputer Operating Properly & External Watchdog MonitorFeature Overview - Watchdog (COP) Independent-clocked Watchdog [ monitors the operation of the system by expecting periodic refreshing ] Programmable Timeout Period and Window Refresh Option

Unlock sequence for allowing updating of configuration registers [ within 256 clock cycles being unlocked, need update after unlocking, otherwise it resets the system ] Ability to TESET Watchdog [ Timer and RESET ] Quick Test: Small timeout value programmed Byte Test: Individual bytes of timer tested Read-Test: Read-only access to read/check WDOG counter value Fully Functional in RUN, STOP, VLPR, VLPW, VLPS

Feature Overview - EWM 8bit ripple counter Redundant Watchdog, monitors external circuits EWM does not reset the MCU EWM_IN Pin: Allows an external circuit to control the EWM_OUT

EWM_OUT Pin: When asserted is used to reset or place the external circuit into safe modeFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

Part 7 of 7 - RTCReal Time ClockFeature Overview 32bit monotonic counter 32bit Alarm [ invalidated on DryIce tamper detect & alarm/interrupt at a predefined time ] 16bit prescaler with compensation [ can correct errors between 0.12 3906 ppm ] Independent Battery Power Supply [ VBAT, supply RTC & VBAT-Register ] Independent 32.768kHz OSC [EXTAL32] Automatic Gain Control [ optimize power consumption ] Alarm Pin [ optional, not on all devices ] Register write protection Fully functional in all modes EXTAL32 can be used as main oscillator source (cost reduction)

[ AWIC and LLWU Wake-up Source ]Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

Section 4 HMI Peripherals

sLCD

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

86

Part 1 of 2 - TSI

16

input capacitive touch sensing pins

Wide measuring capacitance range ( 1- 500pF ) Each with individual result registers 16 bit resolution Automatic detection of Electrode Capacitance Change with programmable upper and lower threshold (for each electrode) Capacitive

touch sensing detection across all power modes

Automatic periodic scan or software triggered single scan of selected pins Configurable resolution / scan speed

TSI

low power mode

Module can scan a single electrode in any VLLSx low power mode and wake-up MCU on touch detection Low power mode current adder can be Fewer pins required to drive LCD segments (up to 320 ) 48 pins required for 320 segments in 8x40 mode 32 pins required for 192 segments in 8x24 mode 28 pins required for 160 segments in 8x20 mode

Low power blinking mode Programmable blink modes and frequency in all low power modes Can alternate two patterns on LCD ( in 4x mode or less ) or blank entire LCD periodically

Internal charge pump provides all voltages required to power up LCD glass at 3 or 5 volts Internal software selectable regulated power supply that keeps constant voltage across LCD glass to avoid degradation kinetis sLCD offers 4 bits resolution trim to digitally adjust contrast controlFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.TM

91

Part 2 of 2 sLCD [2]

Segment fault detection capability Hardware support for segment LCD display errors

Front and back plane assignment FP and BP can be software selectable to be either FP or BP, making board layout an easier task and very flexible for changes

BackPlane re-assignment Assist in vertical scrolling on dot-matrix displays

LCD waveforms functional in all low-power modes Allow the LCD to work in any low power mode

LCD registers are only initialized after Power on Reset. For low power modes reduce the time to initialize the code.

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

92

Section 5: Security & Integrity

LPT CAU

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

94

Security & IntegrityRNGB, MMCAU & CRC Pseudo-Random Number Generator (RNGB) Memory-Mapped Cryptographic Acceleration Unit (CAU) Hardware Cycle Redundancy Check Generator support 16bit & 32bit (CRC)DEFAULT

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

95

AN3795

Document show CRC Module can be used to check in-application SOFTWARE for corruption and verify DATA integrity.

Part 1 of 3 - CRC

Cyclical Redundancy CheckFeature Overview

The 16/32-bit code is calculated for 32-bit of data at a time Programmable initial seed value and polynomial Optional 'Final XOR' with 0xFFFFFFFF or 0xFFFF Support transpose register[ required for certain CRC standards ]

Input data CRC result Transpose types are

No Transposition

Bits in bytes are transposed, bytes are not transposedBoth bits in bytes and bytes are transposed Only bytes are transposed, no bits in a byte are transposed

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

96

True Random Number Generator (TRNG) Pseudo-Random Number generator (PRNG)

Part 2 of 3 - RNG and CAURandom Number Generator Crypto Acceleration Unit

Feature Overview - RNGB Performs seed generation and random number generation Use TRNG and PRNG to achieve true randomness & cryptographic strength Self Test Mode

[ verify HW is functioning (~29,000 cycles) ] Feature Overview - MMCAU Coprocessor, connected to Private Peripheral Bus (PPB). Supports hardware implementation of a set of specialized operations to improve throughput of SW based security encryption or decryption operations and message digest functions. Acceleration of the DES, 3DES, AES, MD5, SHA-1 and SHA-256 algorithms.Freescale provides an optimized, callable C-function library that provides the appropriate software building blocks to implement higher-level security functions. Simple, flexible programming model and the ability to sent up to three commands in one data write operationFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

97

DRAM*

Section 6 - Memory Interfaces

*256 pin only

LPT CAU

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

TM

99

AN3854

NO inverter required [FB_A[0] to BHE/BLE] NO additional external address lacth required

Part 1 of 3 - FlexBusInterface to (a)synchronous devices [Flash, Smart LCDs, FPGAs, SRAM, PROM, EPROM, EEPROM]Package Signals Muxed mode Non-muxed mode LCD mode 144 104 100 81 80 64

Feature Overview Designed to connect up to 6 external devices [ 6 independent, user-programmable chip-selects ] 8-, 16-, and 32-bit port sizes with configuration for multiplexed or non-multiplexed address and data buses [ with optional burst support ] Auto-acknowledge feature Primary and optional secondary wait state counter Useful for interfacing to burst Data access time [if subsequent data's are faster]

FlexBus Modes of Operation [ LCD devices ]Package Signals Muxed mode Non-muxed mode LCD mode 144 104 100 81 80 64 48 32

Programmable Address-setup time with respect to theassertion of chip select

Address-hold time with respect to thenegation of chip select and transfer directionFreescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, mobileGT, PowerQUICC, StarCore, and Symphony are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient Solutions logo, Flexis, MXC, Platform in a Package, Processor Expert, QorIQ, QUICC Engine, SMARTMOS, TurboLink and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

FlexBus Modes of Operation [ non LCD devices ]

TM

100

Part 2 of 3 - eSDHCEnhanced Secur