Post on 06-Apr-2023
TM
Kinetis Connects with MQX: Software and Tools Enablement for Kinetis
November 10th, 2010François Anderson
Future Advanced Engineer (Quebec City)
AMF-ENT-T1130
222
Agenda
► Kinetis – About these new parts► Some of the advanced features
►Kinetis Connects with MQX RTOS► What is it?► USB► RTCS - Ethernet
►MQX Connects – Add ons, Libraries and Middleware► Nano SSL/SSH► Math and DSP► Motor► Graphics Library -eGUI► Graphics Library –PEG► TSS
►MQX Connects -- Touch Library►MQX Connects -- USB (OTG)►MQX Connects -- Wireless (WiFi, Bluetooth, Zigbee)►MQX Connects -- Industrial Networks►MQX Connects -- Ethernet►Opportunity for In depth training and FREE Tower board
New 90nm Kinetis MicrocontrollersThe most scalable portfolio of mixed-signal MCUs based on ARM Cortex-M4 architecture in the industry
33
New Kinetis MCUsScalable Mixed-Signal Consumer and Industrial Microcontroller
Families
The most scalable portfolio of low-power ARM Cortex-M4 MCUs available today
Innovative Low Power 90nm Thin-Film Storage Flash withFlexMemory
Exceptional mixed-signal integration
One of the most comprehensive ARM®
enablement portfolios
Over 200 hardware and software compatible ARM Cortex-M4 devices with high performance
signal processing capabilityand run currents of
<200uA/MHz.
Offers EEPROM capability with unprecedented programming speed and endurance, capable of
over 10 Million cycles
Flexible, High-speed, high-precision
16-bit ADCs, 12-bit DACs, Programmable Gain Amplifiers,
Voltage References, and Hardware Touch Sensing lower system
costs.
Complimentary Freescale MQX
RTOS and Eclipse-based CodeWarrior 10.0 IDE, as well as
IAR, KEIL and other ARM ecosystem providers help speed time to market
Scalable FlexMemory
MixedSignal
Enablement
More than 200 New Parts7 scalable families
First available broad-market MCU samples based on ARM Cortex-M4!
4
ARM Cortex-M4 Processor Micro Architecture
• Backwards compatible with ARM Cortex-M3
• New features• Single cycle MAC (Up to 32 x 32, with 32-bit result)• DSP extensions (p.36)• Single Precision Floating Point Unit (IEEE 754)
• Freescale IP and Innovation• On-chip cache for instructions and data• Cross-Bar Switch for concurrent multi-master/slave
accessing • On-chip DMA for CPU off-load • Low-leakage Wake-up Unit adds flexibility for low power
operation
• Architected 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
M4: 50-150MHz CPU, up to 180MHz
F1
Cortex-M3 vs. Cortex-M4 Examples
Example Cortex-M4 speed vs. M3
Audio – Window Overlap and Add
1.8x – 2.6x faster
FIR Filter 2x faster
MP3 Decoder 2x faster
WMA Decoder 1.6x faster
Motor Control –Clarke Transform
5x faster
Motor Control –Park’s Transform
7x faster
Audio module improvements using Cortex-M4
►Core loop cycle advantage of 4x to 8x
►Mixed bit width arithmetic (DSP instruction)
►Packed processing with SIMD
►Registers usage is comparatively less
►Overall cycle advantage of approximately 2x
►Lesser code size further improves performance
Motor Control using Cortex-M4
►New DSP oriented instructions enable new level in sensorless control
►Faster control loops – more responsive to speed commands and changing loads
►More sophisticated estimators for sensorlesscontrol
Cortex-M4 energy efficiency
►Chip can be clocked at half (or less) MHz of C-M3 to accomplish same workload
►Leads to longer battery life and higher energy efficiency
66
Kinetis Product Family Features
DevelopmentTools
Bundled IDE
w/ Processor Expert
Bundled OS
USB, TCP/IP, Security
Modular Tower Hardware
Development System
Application Software Stacks,
Peripheral Drivers & App.
Libraries
(Motor Control, HMI, USB)
Broad 3rd party ecosystem
CommonDigital IP
CRC
I2C
I2S
UART/SPI
ProgrammableDelay Block
External Bus Interface
Motor ControlTimers
SDHC
RTC
CommonAnalog IP
16-bit ADC
ProgrammableGain Amplifiers
12-bit DAC
High-speedComparators
Low-powerTouch Sensing
CommonSystem IP
32-bit ARM
Cortex-M4 Core
w/ DSP Instructions
Next Generation
Flash Memory
High Reliability,
Fast Access
FlexMemory w/ EEPROM capability
SRAM
MemoryProtection Unit
Low Voltage,
Low Power Multiple Operating Modes,
Clock Gating
(1.71V-3.6V with 5V tolerant I/O)
DMA
K70 Family 512KB-1MB, 196-256pin
K60 Family 256KB-1MB, 100-256pin
K50 Family 128-512KB, 64-144pin
K40 Family 64-512KB, 64-144pin
K30 Family 64-512KB, 64-144pin
K20 Family 32KB-1MB, 32-144pin
K10 Family 32KB-1MB, 32-144pin
DR
AM
Contr
oller
(256
pin
MAPB
GA o
nly)
Har
dwar
e Tam
per D
etec
t
Float
ing P
oint U
nit
(120
MH
z, 1
50M
hz only
)
NA
ND
Fla
sh C
ontrole
r
(120
MH
z, 1
50M
Hz
only)
LCD
(Seg
men
t/Gra
phics)
Encryp
tion (C
AU
+RN
G)
Ether
net (I
EEE 158
8)
Dual
CA
N
USB
OTG
(FS &
HS)
-144 pin MAPBGA Available Nov, 2010
-144pin & 256pin MAPBGA Available Q4-11
7
What is FlexMemory?
7
Main Program Memory
FlexMemory
EEPROM:
► Eliminates external component
• Lower system cost
► No system resources required• Easier implementation over
emulation
► High endurance
• Up to 10 Million cycles
► High performance
• Fast write time = ~100 uSec
• Erase+write = 1.5mSec
User Configurable As…
EEPROMProgram/Data
Flash
Additional Program or Data Flash:
► Flexibility
• Space for future expansion needs
► Efficient• Read-while-write with the main
program Flash
► High endurance data memory
Or Combination of Both
88
Freescale FlexMemory vs. Traditional EEPROM
Attribute Traditional Embedded EEPROM FlexMemory
Read-while-write with
program memoryYes Yes
Granularity Byte write/erase Byte write/erase
Write time~1-5msec
(byte write only)
~100usec
(word or byte program, brown-outs w/o loss or corruption of data)
Erase + write time ~5-10 msec ~750 usec + ~750 usec (1.5 msec)
Endurance 50-300K cycles (fixed)SoC implementation and user configurable, can
exceed 10M cycles
Minimum write voltage ≥ 2.0V 1.71V
Flexibility Fixed by part numberProgrammable trade-off - quantity vs.
endurance
TM
99
USB Controllers
High/Full/Low-speed• Complies with USB 2.0, supports host, device and OTG
• Supports High-speed (480 Mbps), Full-speed (12 Mbps) and low-speed host (1.5 Mbps)
• On-chip transceiver supports full/low-speed modes
• External transceiver via ULPI interface needed for high-speed modes
• Allows direct connection of full-speed (FS) or low-speed (LS) devices without an OHCI/UHCI companion controller
• Defined as any USB class or device for targeted peripheral list, incl. hubs
• Suspend/low power mode
• Can suspend individual devices or the entire USB subsystem
• Remote wake-up integrated with processor’s low power modes
10
• 5V regulator input (VREGIN) typically provided by USB Vbus or Rechargeable Battery power. Can be used without USB
• 3.3V regulated output powers on-chip USB transceiver and device charger detect
• Output pin (VOUT33) from regulator can be used to power external board components and source up to 120mA
• Eliminates cost of external LDO
• 3.3V regulated output can power MCU main power supply
• Note: GPIO are 5V tolerant!
USB Regulator
MCU
USB Regulator
5V
3.3V
D+
D-
3.3V
VREGIN
VOUT33
Vbus
D+
D-
VDD
USBConnector
To board component
USB Transceiver
USB0_DP
USB0_DM
USB Device Charger Detect
D+ D-
11
• Compliant with the latest industry standard specification: USB Battery Charging Specification, Revision 1.1
• Compatible with systems powered from:
• Rechargeable battery
• Non-rechargeable battery
• External 3.3v LDO regulator powered from USB
• Directly from USB using internal regulator
USB Device Charger Detect
12
• Implements the full 802.3 specification• Dynamically configurable to support 10/100 Mbps operation• Supports full duplex (w/flow control) and configurable half duplex operation• Support for VLAN-tagged frames according to IEEE 802.1Q
• Supports AMD magic packet detection with interrupt for node remote power management.• Wake up from low power
• Seamless interface to commercial Fast Ethernet PHYs• Supports MII (4-bit 25MHz) and RMII (2-bit 50MHz) interfaces • MDIO master interface for PHY device configuration and management
• Programmable MAC address: • Discards frames with mismatching destination address on receive (except
broadcast and pause frames)
• Hardware time stamping support for IEEE 1588 provides precision clock synchronization for real-time control (PTP)
IEEE 1588 Ethernet Controller
1313
Kinetis Mixed Signal (Analog)• 16-bit SAR ADC
• 1.15V minimum reference
• Differential or Single Ended
• Plus Differential capable PGA front end.
• Averaging by 1, 4, 8, 16, or 32
• Automatic compare and windowing Function
• Triggering synchronization w/ DAC
• Configurable sample time, speed/power
• Up to 20 input channels per converter
• Multiple converters per part
• 12-bit DAC
• 16 word DAC FIFO
• Hardware or software trigger
• Precision Voltage Reference (VREF)
• Internal Trimmable 1.15V Output, high power output mode.
• High Speed Comparators
• Programmable hysteresis control, and interrupt trigger
• Integrated 6-bit DAC for reference
1414
• Segment fault detection capability• Via Hardware support
• Up to by 8 multiplexing • Fewer pins required
• Low power blinking mode• Blink capability in low power modes• Alternate display feature(i.e. blink temperature and time)
• Front and back plane re-assignment • Any LCD pin can be a frontplane or backplane pin
• Internal charge pump provides voltage required to power LCD glass• Internally regulated voltage for constant contrast across MCU VDD• Trim register for software contrast control
Segment LCD Controller (K30,K40)
15
Low Power CapabilitiesIndustry leading 90nm process node
• 1/3 dynamic power reduction vs. existing technologies
• Intelligent power management controller reduces dynamic and leakage currents
Low power design architecture techniques
• Clock gating - only leakage currents are incurred
• Power gating: shuts down un-used modules reducing leakage
• Back biasing: mitigates leakage currents in low power run and sleep states
Flexible power modes• TEN Run, Wait & STOP modes. Cover all wakeup needs.
Ultra fast wake up times
• 4us wake up from LOW LEAKAGE STOP mode
1616
Run
Wait
Stop
Typical Power Modes in an embedded system
Run
Sleep
DeepSleep
Extended Power Modes
Cortex M4Power Modes
Run
VLPR
Wait
VLPW
Stop
VLPS
LLS
VLLS3
VLLS2
VLLS1
Kinetis Available Power Modes
RecoveryTimer
ES
TIM
ATE
S –
Subje
ct to C
han
ge
ES
TIM
ATE
S –
Subje
ct to C
han
ge
“Typical” IddRange
-
-
-
Starting @<200uA/MHz
4us
4us
4us
4us
35us
35us
100us+EE restore
1.2uA - 7uA
1uA - 5uA
750nA - 2uA
500nA – 1.5uA
Freescale Adds Low Leakage Wake-up Unit► Standard on all 90nm TFS products, including ColdFire+
► Enables complete shut-down of core logic, including WIC, further reducing leakage currents in all low power modes
► Supports 16 external input pins and 8 internal modules as wakeup sources
► Wakeup inputs are activated in LLS or VLLS modes
Starting @<200uA/MHz
1717
An Unmatched Range of ARM Cortex-M4 Microcontrollers
32-pin 256-pin48-pin 64-pin 80/81-pin 100/104-pin 196-pin144-pin32KB
1MB
64KB
128KB
256KB
512KB
>200 individual Kinetis devices!
Multiple compatible families with scalable performance, memory and peripherals
Common Perip
herals
1818
Freescale’s Kinetis Enablement Bundle
Freescale MQX + MCU + Tower System + CodeWarrior IDE
Comprehensive solution for embedded control and connectivity
Open source hardware platform for prototyping application development
Visual and automated framework to accelerate development time
►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
Complimentary MQX RTOS
MQX CorePSP & BSP
+
►Full-featured, scalable, proven RTOS
►Simplifies HW management, streamlines SW development
►Reduces development costs while speeding time to market
Save time, cost, and effort.
www.freescale.com/mqx
TrendsPeripherals are more complex. e.g. RS232 ���� Ethernet or USBWe need an easier way to manage stacks and software and activity.
Solution: Real-time operating system manages the time of a MCU/MPU
Features of an RTOS:
• RTOS provides integrated Ethernet and USB stacks, BSPs, Drivers and Framework
• Allows multi-tasking, scheduling of the tasks with priorities
• Synchronization of the resource access
• Inter-task communication
• Time predictable
• Interrupt handling
www.freescale.com/mqx
TrendsDesigners need higher quality of code
• Solution: Enjoy software and drivers backed by Freescale Global FAE, TIC, AE and software developers
Today 60% or more of a team’s resources are spent on software
• Solution: An RTOS allows developers to focus on “Special Sauce” instead of stacks, drivers etc.
•32-bit devices require a higher need for re-use
• 89% of developers reuse code from a previous project
• An RTOS can also allow reuse of application on different processors and boards.
www.freescale.com/mqx
Trends
Designers must reduce costs
and
accelerate time to market!
• Solution: Freescale provides complimentary MQX RTOS with USB, TCP/IP, Filesystem, libraries and 3rd party support.
• Coding time is reduced while enabling software reuse.
• Can be appropriate even for small projects.
• A $95K Plus Value and growing!
2323
Freescale MQX Software Solution
Designed for Embedded Applications ► (limited memory and real-time response)
Field proven in mission-critical areas such as ► Avionics, Aerospace, Medical, and Datacom.
Small, configurable footprint. (Small simple app: 12K Flash, 2.5KRAM)
Integrated stacks (TCP/IP, USB, etc.)
Powerful and easy-to-use. ► Full Documentation in source tree.► Drivers Included!
No cost!!!► Commercial Software
What is Freescale MQX?Souce code OS, complied for your application providing
any or all of :
► RTOS (Full priority-based, pre-emptive scheduler)
► Real-time TCP/IP Communication Suite (RTCS)
� TCP/IP, FTP, Telnet, DHCP, SNMP etc..
►HTTP Web server
► USB Host - HID, MASS, HUB
► USB Device - HID, MASS, CDC
► MS-DOS File System (MFS )
► BSP I/O Driver: CAN, UART etc…
► Other Libraries: DSP, Security, Motor Control
Integrated tested and working together!
2424
Freescale MQX Software Solutions
Problem
Solution
25
1 Year Later – The MQX Effect
•Downloaded over 8,000 times • Top 3rd software download • 16% growth QTR over QTR
► Driving Designs for 32-bit roadmap• Many high profile Customer Wins
• Ported to more than ten Freescale product lines (MCF51/52/54xxxx, i.MX, MPCXXX)
► Adopted by Valued OEM Customers
Tools
GUI
Medical
Security
WiFi
Bluetooth
Significant Partner Participation
What is Free?
Meets significant majority of customer requirements.
► RTOS (Full priority-based, pre-emptive scheduler)
► Real-time TCP/IP Communication Suite (RTCS) - TCP/IP, FTP, Telnet, DHCP, SNMP etc..
► USB Host – PHDC (medical) ,HID, MASS, HUB, CDC,
► USB Device - HID, MASS, CDC, PHDC
► MS-DOS File System (MFS )
► BSP I/O Driver: CAN, UART etc…
► Basic HTTP Web server
► Benchmarking Tool
► Base Support: Freescale TIC, FAE, AE
► Compatible Freescale embedded GUI Library
Add-on Software & Services
► IAR & CW: MQX Task Aware Debugging with tools
► Freescale - Level 2 Support
► Bluetooth
► Embedded Access: WebserverBasic/Standard/Pro, SNTP, XML, SMTP, POP3, SNMP (V3), SFFS Flash File System, On-Site Training
► PEG Graphic Builder
► RTA & IXXAT: Industrial Protocols - 1588, CANopen etc..
► Freescale Low Cost NanoSSL™/ NanoSSH™
► Segger: Graphic Libraries
What’s Free and Add-on?
2727
Freescale MQX RTOS
•Designed to be customized by• Feature, Size, Speed
► Lightweight services
• Smaller and faster vs. regular MQX
• Allows control of RAM/ROM utilization.
► Scalable Code Density
► Ideal for MCU & MPU• ROM size ranges from: 12K to 150K
• RAM size starting at 2.5K
• (2 task application with 1 lightweight semaphore and minimum interrupt stack )
► Standard for new and custom components to be added
► i.e. Encryption
Simple and Scalable: Straight- forward API and modular architecture can be fine-tuned to fit application requirements
MQX 3.7 for Kinetis – New additions
28
K40 LCD Segment Driver
Additional All Device Driver - HAL Support
GPIO - To work with TSS 2.5
TSI - To work with TSS 2.5
Timer PDB (Programmable Delay Block)
Timer Low Power Mode 16bit
FlexTimer
SSI ( Synchronous Serial Interface)
SPI (DSPI)
SDHC (SD card Mass storage)
IRDA ( UART) (Integrated Kinetis Hardware)
ISO-7816 Smart Card (UART)
UART - RS485 MQX3.6 plus hardware flow control.
UART - from MQX 3.6
RTC (Real Time Clock) HW Tamper
Internal Flash Memory Controller
I2C (Slave/Both) - K10,K20 (Process Expert)
I2C (Master)
GPIO
Flexbus - Ported from previous Tower etc..
DMA - Match MCD API wherever possible/relevant
CAN
DAC
PGA - 1 channel
ADC & PDB
Complimentary Freescale USB Stack (Baremetal)/No-OS or MQX RTOS)
Medical Connectivity LibraryIEEE-11073, provide the standard communication interface that next-generation medical devices require • Comply with medical industry standards such as the Continua Health Alliance
USB stack with PHDC SupportClasses: (Device and Host)• HID• PHDC -"Continua Ready" personal health care – Device Only • CDC• MSD• and more… (Audio Device Class coming!)
Options:1) Built-into MQX RTOS 2) Or Bare-Metal (No - RTOS) wit MQX Compatible API
Agents (Devices)
Continua Devices
WAN Device
Bluetooth
USB
Disease Management
Service
Home-based Remote Patient
Monitoring System
Personal Health
Records
AHDs (Managers) Health Repository
http://www.freescale.com/usb
323232
RTCS
• TCP/IP Stack• Designed for embedded processors
• Uses standard socket interface • Berkeley Socket (BSD socket API)
• Extensive Application Layer Protocols• Scalable at compile time and/or run-time:
• Only used protocols are included• Data requirements are tunable• Protocol behavior is controllable
• TCP/IP-aware debugging (CW)• Standard release across all processors• Integrated many 3rd party optional
packages
Simple and Scalable
►Small, configurable size conserves memory space for application
►Allows developers to add web servers, e-mail, network management, security, and routing to their designs
Full- Featured and Powerful
►Developed to be tightly integrated with MQX RTOS
►Includes FTP, Telnet, DHCP, DNS servers and clients, and SNMP client
►Ethernet – Serial to Gateway applications
333333
RTCS ProtocolsRPCRPC
XDRXDR TelnetTelnet HTTPHTTPFTPFTP
POP3*POP3*SMTP*SMTP*
DNSDNS
SNMPSNMP
SNTPSNTP
SSL*SSL*
IP-EIP-E IPCPIPCP PAPPAP CHAPCHAP CCPCCP
PPPPPPARPARP
EthernetEthernet SerialSerial PPPoE**PPPoE**
TFTPTFTP
SSH*SSH* XML*XML*
BootPBootP DHCPDHCP RIPRIPSocketsSockets
ICMPICMP TCPTCP UDPUDP IGMPIGMP
NAT**NAT** IPIP
HDLCHDLC
LCPLCP
* – Optional third party package** – On request
343434
RTCS Application Layer Protocols
RTCSRTCS
MQXMQX
TCP/IP TaskTCP/IP Task
RTCS APIRTCS API
FTP Server
FTP Server
HTTP Server
HTTP Server
Telnet Client
Telnet Client
FTP Client
FTP Client
Telnet Server
Telnet Server
SNMP Agent
SNMP Agent
DHCP Server
DHCP Server
SNTP Client
SNTP Client
TFTP Server
TFTP Server
TFTP Client
TFTP Client
DHCPClient
DHCPClient
DNSResolver
DNSResolver
IPCFGIPCFG
3636
NanoSSL™/ NanoSSH™ Client for Freescale MQX Security options with significant cost savings
Addition Upgrades: http://mocana.com/mqx/
• One-time “unlocking” fee of $199 to access source code with unlimited binary distribution
Uses Crypto Hardware Acceleration (K60)
Freescale Cortex-M4 Math and DSP LibraryFree Math and DSP Library including – Q4 2010•Available from ARM, Tools Partners, and Freescale•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:
Vector Math Absolute valueAdd (element by element)Vector dot productMultiply elementsInvert sign (negate)Add constant offsetScale by constantShift left/rightSubtract (element by element)
Fast MathSine, Cosine, Square root
Interpolation (linear and bilinear)Complex Math
Complex conjugateComplex magnitudeComplex magnitude squaredComplex by complex multiplicationComplex by real multiplicationComplex dot product
Statistics Maximum / minimum valueMeanPowerRoot mean square (RMS)Standard DeviationVariance
FilteringBiquad cascade direct form 1 (IIR)ConvolutionPartial convolutionFIR (transversal) filterPolyphase FIR decimatorPolyphase FIR interpolatorLMS adaptive filterNormalized LMS adaptive filterSparse FIR filterCorrelation64-bit high precision biquad filtersFIR lattice filtersDirect form 2 transposed IIR filterIIR lattice filters
TransformsComplex forward FFTReal FFT Inverse real FFTDiscrete cosine transformInverse discrete cosine transform
Matrix addition, subtraction, transpose, scaling, inversionController
PID controllerField oriented control (clarke and park transforms)
Motor Control Enablement
38
Demos, Reference Designs and Kits
2011Vector control -sensorless, Tower enabled
PMSM
2011Vector control using sensor feedback, Tower enabled
PMSM
Q1 2011MQX and Tower enabledStepper
10Q4 - 11Q1MQX and Tower enabledBLDC
TimelineFeatureMotor Type
This is a small sampling of projects that are in the works!
Motor Control Enablement
39
Application Notes – Coming soon!
2011Speed Measurement
2011ADC - PWM sync
2011DSP libraries for Motor Control
Q4, 2010Motor Control Drivers under MQX
App Note Title
Embedded Graphic Library (eGUI)
FREE•Embedded Graphic Library (eGUI)
• Very lightweight software component allowing graphics LCD panels to be driven from small microcontrollers
• Structure of driver brings complete software solution for applications needing a color LCD screen
• Touch screen capability
• Organization done by screen with high level objects
• Very light RAM and FLASH footprint
• eGUI version 1.0 + MQX RTOS Support
• Both Types of LCD Driving Methods
• Traditional LCD System (Dedicated LCD MPU)
• SPI/Parallel driven LCD (Can be driven from any MCU)
Supported products
HCS08 (version 0.9)
ColdFire V1 MCUs (version 0.9)
ColdFire V2 MCUs (version 0.9)
MQX interoperability (version 1.0)
HCS12 (version 1.0)
ColdFire LCD MPU MCF5227x (1.11)
MobileGT LCD MPU MPC5125(1.20)
Kinetis - Nov 2010
www.freescale.com/egui
• Multiple window updates• Alpha-blended images• Run-time image decoders &
language resources• Custom widget integration• Dynamic themes• Written in C++
PEG® Product Family
► Designed for:• Small LCDs (QVGA)
• Low color-depth
► Very small footprint
► Single window update
► Multi-language capable
► Written in ANSI C
► Screen transitions
► Multiple alpha-blended windows
► True anti-aliasing
► Gradient manager
► Open GL support
► Written in C++
Professional Services team provides custom consulting & software development.
Driver Development •••• UI Development •••• Graphic Design
One of the smallest footprints and most efficient code bases available
Pricing starts as low as $4995 for a developer project license with 3 seats.
Starting at 64 KBTypical 90-110 KB
Starting at 128 KBTypical 160-175 KB
Starting 225 KBTypical 225-250 KB
Freescale acquired key assets of Swell Software on August 18, 2010, an industry leader in graphical user interface (GUI) software tools.
Freescale acquired key assets of Swell Software on August 18, 2010, an industry leader in graphical user interface (GUI) software tools.
PEG – MQX Integration
45
MQXMQXSerialSerialADCADCEnetEnet
PEG MainTask
PEG MainTask
PEG
PEG TimerTask
PEG TimerTask
LCDLCD TouchTouch MouseMouse
ApplicationTask
ApplicationTask
ApplicationTask
ApplicationTask
Free Touch Sensing Software Suite – TSS 2.5
•New and exciting in TSS 2.5:
• Touch Sensing Input (TSI) hardware in new Kinetis and Coldfire+ devices.
• Improved touch detection algorithm for reduced false touches under electrical noise.
• Simpler interface
• No external components per electrode
•Features:
• Full API set support
• Support up to 64 electrodes
• No need of extra IC
• Configurable rotary, slider and keypad decoders with optimized buffer structure enabling any arrangement of electrodes.
• Smart auto-calibration mechanisms to prevent environmental hassles
• Noise rejection algorithms, new IIR filtering
• New KBI and IC functions for TSS ATL method
• Ability to enable and disable keys on runtime
• Auto repeat, stuck-up key, gorilla hand and other typical HMI function capabilities
• Ability to co-exist with other application code
• PC GUI application for electrode characterization
Freescale Touch Sensing Software enables any 8-Bit S08 MCU, 32-bit ColdFire V1 MCU , Kinetis as a touch sensor, providing cost effective and flexible solutions for Human Machine Interfaces.
Reliability & Cost
► No moving or deflective mechanism
► Long life
► Intrinsically safe
► RoHS compliant
► Can be designed to be vandal proof
► Effective alternative to membrane and mechanical
► Uses Freescale multifunction chip at no extra cost
► No secondary brackets and/or supports required
► Low non recurring engineering cost
► Reduces PCB requirements
NRT
RT
IRT
Deterministic1 to 100 ms Cycle Time
Deterministic< 1 ms Cycle Time
Industrial Network Protocol Usage
Non-deterministic> 100 ms Cycle Time
► Sensors► Data scanner► Inventory
Management
► Motor Drives► Motion Control► Synchronized Servos
► Conveyor belts► Picker arms► PLCs, I/O Control► Valves
Target Applications Protocols
NRT
RT
IRT
DeterministicJitter matters for Sync1 to 100 ms Cycle Time
Deterministic< 1 us Jitter
< 1 ms Cycle Time
Non-deterministicJitter doesn’t matter> 100 ms Cycle Time
Number of Applications
RT
IRT
IEEE® 1588 Precision Time ProtocolVERY Jitter sensitive; Cycle Time does not matter
57
IXXAT Automation GmbH
IXXAT is a German-based leading supplier for embedded communication systems for industrial and automotive applications
• Established 1987 with 20+ profitable growth years• 2009 sales of $16.9M worldwide• 80 employees (most are developers)
• Weingarten, Germany; New Hampshire, USA
• Represented globally in >15 countries
• Freescale products supported• Kinetis ™• QorIQ™ and PowerQUICC® processors• ColdFire® MCUs and MPUs• i.MX applications processors
• Contact Bill Seitz• seitz@ixxat.com , 603-471-0800 X102• 120 Bedford Center Rd., Bedford, NH 03110
• Download free evaluations from www.ixxat.com
Protocols supported:
– IEEE® 1588
– PROFINET
– EtherNet/IP™
– EtherCAT®
– Modbus
– POWERLINK
– CAN® – CANOpen®, J1939, DeviceNet™
CP
U
I/O
Application
Protocol Stack
CAN or Ethernet Interface
Bluetopia®
� What is Bluetopia?
� Upper layer Bluetooth protocol stack
� Mature Bluetooth protocol stack– First BQB Qualified version 1.1 (12/2000)
– BQB Qualified version 2.0+EDR (QDID B014058)
– BQB Qualified version 2.1+EDR (QDID B015085)
� Upper-layer implementation (HCI and above)
� Interoperability tested at numerous UPFs and Interoperable Prototype Verification Test events
58
� Demo Today:
� Bluetopia Running on Freescale MCF5225 with MQX OS
� Bluetooth Tower board provided by Roving Networks
� Bluetooth SPP Connection to serial port on Nonin Pulse Oximeter and send readings over Bluetooth Serial Port Profile (SPP) to PC
•Bluetooth Low Energy
6060
CodeWarrior Development Studio for Microcontrollers v10.1•Integrated development tool suite for ColdFire, Kinetis
and S08 architectures based on the Eclipse open development platform
• Project Wizard creates a new project in as few as 9 clicks
• MCU Change Wizard retargets a project to a new processor in as few as 6 clicks
• CodeWarrior optimizing C/C ++ compilers for ColdFireand Kinetis Microcontrollers included
• Extensions to Eclipse CDT to provide sophisticated features to troubleshoot and repair embedded applications
• Processor Expert combines easy-to-use component-based application creation with an expert knowledge system
• Trace and profile support for on-chip trace buffers to provide emulator-like debug capability without additional hardware
• Kernel-aware debug for MQX, Linux and OSEK• CodeWarrior Special Edition is a complimentary version
up to 128KB code size•Availability: Beta – September 2010, Final – January 2011
Accelerate the development of the most complex embedded applications
FreeCompiler
up to 128KB!
www.freescale.com/codewarrior to download
6161
CodeSourcery - GNU Sourcery G++ Differentiation• Open IDE based GNU toolchain and Eclipse
• Fully supported, regular updates, no vendor lock-in
• CodeSourcery is a recognized leader in GNU toolchainenhancement and support, unlike other tool companies that merely bundle GNU
• Integrated JTAG/BDM debugger support
• Flash programming, semi-hosting, peripheral register browsing
• Freescale CPU and Eval Kit support
• Kinetis, i.MX, ColdFire and Power
• Support for Freescale eval kits
• Easily add IDE support for custom boards using Board Builder
• MQX and middleware
• Support for MQX on ColdFire and Kinetis, large selection of GNU supported commercial and open-source middleware and RTOS
• Pricing - Single user pricing from $199 to $4199
Availability:•April 2010 - Kinetis compiler support for early adopters and enterprises; IDE support via Board Builder
•Nov 2010 - Sourcery G++ IDE support for K40/K60 boards (example projects and JTAG support)
Accelerate the development of the most complex embedded applications
Free 30Day Evals
of fullproduct
www.codesourcery.com to download
FreeLite Edition,unrestricted
Open tools,expert
support
Kinetis,i.MX,
ColdFire,Power
6262
IAR Embedded Workbench - IDE
•Reliable, Powerful and Easy to Use
•The most widely used C/C++ tool chain for ARM MCUs
•Support for Kinetis 10/20/30/40/60, ColdFire+ and ColdFire
•Advanced trace debug functionality• Power debugging - optimize for power consumption with power
profiling
• Timeline shows graphical representations of power consumption, call stack, variable values and interrupt activity over time
• Function profiling and code coverage
• ETM and SWO trace support
•Freescale MQX™ RTOS integration
•Ready-made project templates
•Project examples for the Freescale Tower system
•Professional technical support organization•Availability:
► IAR Kinetis KickStart Kit
► Now! Contact an IAR Systems sales office.
► Also Freescale Version available via Freescale Buy Direct – Q4 2011
Tag line?
Evaluationversions on
www.iar.com
www.iar.com/ewarm to download
6363
Choose Your Partner: The Freescale Ecosystem
Run-Time Software: RTOS, Stacks, File System
HW BDM Debugger/Emulators IDE: Tools Compliers, Debuggers
MQX Support / Design Services
Audio/Video Codecs
GUI Graphical
Security / Medical
EVBs & System Design
Ind. ProtocolStacks
GNU Tools
ARM® Cortex™ Microcontroller Software Interface Standard - hardware abstraction layer
6464
The Freescale Tower System
•A modular development platform for 8/16/32-bit MCUs & MPUs
• 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.org
Primary Elevator
Board Connectors
MCU/MPU Module:
• Tower controller board
• Standalone or in Tower System
Secondary ElevatorPeripheral Module:
• Up to 3 per system: Serial, Memory, LCD,..
• Mix & match with different MCU modules
Support for all ColdFire+
and Kinetis MCUs!
TWR-SENSOR-PAKTWR-LCDTWR-MEM
Rapidly build a prototype of your end application
6565
Available Tower System Moduleswww.freescale.com/tower
TWR-SER TWR-ELEVTWR-PROTO
PeripheralModules
($15 – $149)
ProcessorModules($39-$119)
Coming Soon
TWR-MEM TWR-LCD
TWR-K60N512TWR-K40X256
TWR-MCF5441XTWR-MCF51AGTWR-56F8257
TWR-S08LL64TWR-MCF5225XTWR-MCF51CN
TWR-SENSOR-PAK
TWR-MPC5125
…
…
TWR-WIFI-RS2101Sept 20
Wi-Fi802.11b
Analog Digital
Converter
MED-EKG
TWR-ADCDAC-LTCJan 2011
Industrial Ethernet ModulePISMO Memory Expansion
Home Plug Powerline CommMotor Control
Audio
Dual Ethernet &High-speed
USB
TWR-SER2Sept 27
TWR-AUDIOQ4 2010
Coming Soon
Under Development
TWR-MCF51MMTWR-S08MM128
TWR-MCF51JE-KIT
New
New New
New
New
TWR-WIFI-G1011MIOct 21
Wi-Fi802.11n
6666
Tower Processor ModuleTWR-K60N512 & TWR-K40X256 ($59)
Features: ►K40X256 and K60N512 in 144 MAPBGA►Capacitive Touch Pads► Integrated, Open-Source JTAG► SD Card Slot► MMA7660 3-axis accelerometer► Segment LCD (28 segments, TWR-K40X256 only)
I2C
ADC
► Tower Plug-In (TWRPI) Socket for expansion (sensors, etc.)► Touch TWRPI Socket adds support for various capacitive
touch boards (e.g. keypads, rotary dials, sliders, etc.)► Tower connectivity for access to USB, Ethernet,
RS232/RS485, CAN, SPI, I2C, Flexbus, etc.► Plus: Potentiometer, 4 LEDs, 2 pushbuttons, infrared port
PEMICRO new MULTILINK UNIVERSAL
• Hardware Features•Fast, hassle-free USB 2.0 communications interface
•Draws power directly from the USB port – no external power supply needed
•Multi-voltage support for targets ranging from 1.6 to 5.25 Volts
• Includes ribbon cables for supported architectures
•Compact size
•Software Compatibility•Freescale CodeWarrior•P&E Software•Third-party software
•Freescale offers ���� www.freescale.com/mqx• MQX Hands On Labs/App Notes/Documentations• Videos• Global Support from FAE Community• Public Community: forums.freescale.com/
• Future and Embedded Access (EAI) offers customizable training designed for individuals or companies
• 2 Day - MQX RTOS Course (Covers the API of the RTOS
with hands-on labs)• 1 Day - RTCS TCP/IP Stack (Overview of protocols, Initializing
RTCS, Socket API• ½ Day – USB (Overview of USB, USB Host Stack, USB Device
Stack)• ½ - 2 Day - Application Development
• Contact Future for pricing:
MQX Training
69
Freescale MQX Support and Design Services
•Why need Level 2 support?• More hand holding, complex application code development, board support package development• Most RTOS companies offer these services• Freescale will continue to provide standard free support • Freescale Level 2 support is very competitive in price
►*
* Will be available on buy direct and disty
Base Level 2 Standard Level 2 Premium Design Services
Plan Overview
Freescale SW and HW
Forums, TIC, FAE, AE
and software teams help
customers bring up the
provided software on
Freescale boards
Customer's Code:
Simple application
code, prototyping
phase, reproducible
problems on
Freescale boards.
Customer's Code:
Remote debugging,
faster response,
complex applications &
stacks
On Line Support Page Access Yes Yes Yes
Maintenance Releases Quarterly Immediate Immediate
Training Discount Regular Price 10 % Discount 20 % Discount
Response Time - 48 Hours 24 Hours
Email - Standarized response on getting started and software labs Yes Yes Yes
Boards - Yes Yes
Email - Detailed support on customer's hardware, intergration and
optimization of application code. - - Yes
Remote Debug Sessions - - 10 hours
Phone Support - - Yes
Support Plan Term Unlimited 6 Months 12 Months
Price Free $3,000 $12,000
Part Number N/A Coming Soon Coming Soon
Freescale Professional
Services & Embedded
Access:
Cost based on project definition.
Outsource developing
of application software
•February 01/2011 - Montreal•February 02/2011 - Baltimore•February 02/2011 - Irvine•February 03/2011 - Philadelphia•February 03/2011 - San Diego•February 03/2011 - Toronto•February 08/2011 - Fairfield•February 08/2011 - Ottawa•February 10/2011 - Long Island•February 15/2011 - Chicago•February 15/2011 - Dallas•February 16/2011 - Austin•February 16/2011 - Milwaukee•February 17/2011 - New Orleans•February 18/2011 - Minneapolis•February 22/2011 - Denver•February 24/2011 - Los Angeles
•March 01/2011 - San Jose•March 01/2011 - St. Louis•March 03/2011 - Dayton•March 08/2011 - Cleveland•March 10/2011 - Raleigh•March 15/2011 - Salt Lake City•March 2011 - Campinas Brazil•March 2011 - Quebec City
•November 18/2010 – Detroit•January 07/2011 - Orlando•January 11/2011 - Ft. Lauderdale•January 13/2011 - Clearwater•January 19/2011 - Pittsburgh•January 21/2011 - Syracuse•January 25/2011 - Cheshire•January 27/2011 - Bolton
Future Full Day “Kinetis Connects with MQX SEMINAR”with FREE tower board, Lab example centric.
Special Landing page to Register:•http://www1.futureelectronics.com/Kinetis/Kinetis.aspx
MQX Training
72
16-bit ADC & PGA: ► Measures 3 phase bridge current and voltage
FlexMemory:► Saving motor calibration data• Remote update bootloader
Analog Comparator: ► Detects back EMF►Monitors over current
Programmable delay block: ► Schedules delayed ADC conversions relative to Timer triggers
Timers:► Drives various motor types including stepper, BLDC, and PMAC motors with sensor or sensorlessalgorithms► Built-in quadraturedecoder detects motor speed
DSP hardware: ► Accelerates motor control calculations
DMA: ► Off loads CPU from repetitive data transfers
K10 Family
Motor Control Use Case
I2C, UART, SPI, CAN: • Communicates with HMI processor
73
FlexTimer (FTM) Features
►16-bit counter with prescaler divide-by 1,2,4,8,16,32,64, or 128
►Each channel can be configured for input capture, output compare, edge-aligned PWM mode, or center-aligned PWM mode
►Each pair of channels can be combined to generate a PWM signal with independent control of both edges of PWM signal
►Each pair can operate as complementary outputs with deadtimeinsertion
►Dual edge capture for pulse and period width measurement
►Quadrature decoder with input filters for relative position counting
►Global Time Base mode shares single time base across multiple FTM instances
74
ACIM/PMSM motor control
2ch FTM
2ch. FTM1
8ch. FTM0
Speed measurement
Fault input
ADC
Current & Voltage
measurement
Op amp
HSCMP0/1
Quadrature
Encoder
1) 6 Channels FTM control a 3 phase bridge.2) Quadrature Decoder output, which is mounted on
motor shaft, is two 90o out of phase pulse string.3) FTM1 is used as quadrature decoder to measure
the motor shaft speed.
FTM0_CH0/1
FTM0_CH2/3
FTM0_CH4/5
FTM1_CH0/1
2
SCI
SPI
PHA
PHB
75
Programmable Delay Block (PDB)►Features
• Provides controllable delays from either internal or external triggers • Up to 15 trigger input sources and software trigger source• Up to 8 configurable PDB channels for ADC hardware trigger• Up to 8 DAC interval triggers• Supports pulse outputs use as the sample window in CMP
External Bus:• SmartDisplay
16-bit ADC: • Touch screen• USB Vbusmonitoring for smart charger
FlexMemory:• Saving user defined settings• Remote update bootloader• Stores display menus and graphics
Low-Leakage Wakeup:• Deep sleep wakeup controller
RTC: • Clock source with optional independent battery supply
CMT: • Carrier wave for Infrared
Capacitive touch sense:
• Keypad buttons
• Wake up source
I2C:• Controls smart charger IC
NAND flash controller:• External storage for additional graphics
USB Subsystem: • Configuration & charging port to host PC• Detects type of charger and controls battery charger IC• Firmware updates• Regulates 3.3V from USB Vbus
K20 FamilyRemote Control Use Case
77
Carrier Modulator Timer (CMT)► FeaturesFour modes of operation
— Time with independent control of high and low times — Baseband— Frequency shift key (FSK)— Direct software control of IRO pin
Extended space operation in time, baseband, and FSK modesSelectable input clock divide: 1-16 with additional 1,2,4, or 8 prescalerInterrupt on end of cycle
— Ability to disable IRO pin and use as timer interrupt
CMT drives IRO pin
IRO drive strength is configurable up to double drive strength
CARRIERGENERATOR
MODULATOR
TRANSMITTEROUTPUT
IRO PIN
fCG
MCU
RECEIVER’SMCU
IRO Pin
7878
• TSI interrupts• End of Scan, Out of Range, pad short or
conversion overrun
Touch Sensor Interface Features
MCUMCU1 2 34 5 67 8 9
* 0 #
►Capacitive touch sensing detection across all low power modes
• Automatic periodic scan with configurable duty cycle
• Low power mode current adder can be <1uA
►16 input capacitive touch sensing pins
• Each with individual result registers
• Automatic detection of Electrode Capacitance Change with programmable upper and lower threshold
UART
79
• Full-duplex operation
• Standard mark/space non-return-to-zero (NRZ) format
• Selectable IrDA 1.4 return-to-zero-inverted (RZI) format with programmable pulse widths
• 13-bit baud rate selection with /32 fractional divide, based on module clock frequency
• Programmable 8-bit or 9-bit data format
• Separately enabled transmitter and receiver with programmable input/output polarity
80
SCI Instantiation on Kinetis
SCI Instance FeaturesMaximum Baud
Rate
SCI0
Higher Baud Rates (CPUCLK @ 100 MHz)
ISO-7816 Smart Card
8 TX and 8 RX FIFOs
6.25 Mbits/sec
SCI1Higher Baud Rates
(CPUCLK @ 100 MHz)
8 TX and 8 RX FIFOs
6.25 Mbits/sec
SCI2-SCI5
Normal Baud Rates (BUSCLK @ 50 MHz)
1 TX and RX FIFO3.13 Mbits/sec
81
16-bit ADC & PGA: ► Samples temperature sensor
FlexMemory:►Saves user defined schedule►Remote update bootloader►Stores display menus and graphics►Logs usage
Low-Leakage Wakeup:► Deep sleep wakeup controller
RTC: ► Clock source with optional independent battery supply
Capacitive touch sense:► Keypad buttons►Wake up source
I2S:► Audio interface
for voice
USB Subsystem: ► Firmware updates
Periodic interrupt timers: • Periodically triggers ADC conversion on sensor
Voltage reference: ► Accurate voltage reference for sensor
Segment LCD:► Drives up to 320 segments of 3V or 5V custom LCD glass►Conducts segment failure self-test
K40 Family
Thermostat Use Case
Font Capture Utility
•Includes a complete character editor to customize individual characters of the generated font as well as tailor metrics and layout for the complete font.
82
•Converts TrueType and BDF font files into the native font format
•Output of FontCapture is a PegFont in either a 'C' source or binary
•Unicode character mapping and multi-page fonts containing thousands of characters are supported.
Image Convert Utility
•Converts BMP, GIF, JPEG, and PNG to the compressed image format
•Outputs either a 'C' source file or a binary format bitmap data file
•Automatically performs color-reduction, grayscaling, and dithering of high-color depth input images to match the color capabilities embedded system.
•Creates optimized palettes for applications in 4 or 8 bpp color modes.
•Advanced quantization and color-reduction producing an optimal palette or palettes corresponding to the input images.
•Output images automatically re-encoded using the newly generated palette information.
•Supports dithering of pixel color data when running reducing the color depth
83
Window Builder
•Quickly visualize, create and use custom windows, dialogs, or other graphical components.
•Generates source code and resource files ready for project
•Generated code includes the prototype message handling code required to process signals received from the objects child controls.
•WYSIWYG prototyping on your PC
•Supports importing of custom fonts
•Supports graphics files in any combination of BMP, PNG, GIF, OR, or JPG. WindowBuilder re-encodes these files, performing dithering and color reduction if required. Imported graphics are written out to 'C'styledata arrays, ready to be compiled and linked into the target system software.
•Imported graphics can be applied to any object which supports bitmap decorations.
84