External Use
TM
Kinetis MCUs for HMI : How Embedded Applications Get Recognized
FTF-INS-F1292
J U N E . 2 0 1 5
Donnie Garcia | Kinetis MCU Product Marketer
TM
External Use 1 #FTF2015
Kinetis MCU HMI SolutionsKINETIS MCUs: Designed for scalability, performance efficiency, integration, connectivity, communications, HMI and security.
HMI Capability Map
Input Capabilities
Output capabilities
FLEXIO Future Capabilities
Find your HMI solution: Kinetis MCU Selection Guide
TM
External Use 2 #FTF2015 Standard Feature Optional Feature
Learn More:Kinetis K2x MCU Family Fact SheetKinetis K Series Selector GuideKinetis K24 120MHz MCU Public Website
Links to:Key P
roduct Featu
res
Portfolio Scalability
CPU Performance
Static/Dynamic Low Power
Crystal-less USB
FlexIO
Tamper Detection
LP Trusted Crypto
Memory Interfaces
Extended SRAM
Asynchronous DMA
Smarter Peripherals
FlexMemory / EEPROM
Program Flash Security
Boot ROM
Quad SPI XIP
Separate Voltage Domain
Large I/D Cache
VBAT Voltage Range
Enablement Tools
Key P
roduct Featu
res
IO pins for
buttons
I2S for interface to
Audio Codec
Memory and memory
interfaces for displays
PWMs for interface to Piezo
Analog Inputs and
outputs
Kinetis K64F/K24F MCUs (up to 1 MB Flash)
TM
External Use 3 #FTF2015
Kinetis MCU Human Interface MappingI/O Peripherals Use Case Kinetis Key Features*
INP
UT
S
PORT PINSAll types of buttons and switches, Smart Sensors with digital outputs (Magnetometers)
Pin Interrupt, Pin Filtering, DMA, Low Power operations
COMPARATOR Analog Sensors (Light or IR) Low Power operations, DAC for reference voltages, DMA
ADCAnalog Sensors (Light or IR) , Dials (Potentiometers)
Low Power operations, Compare modes, DMA
TOUCH SENSE INTERFACE Capacitive touch detectionLow Power Operations, Softwarelibraries
USB/UART/COMMSHID devices (Mouse, Keyboard), Computer terminal
Software libraries, Reference Designs (Like Air Mouse)
I2S Microphone interfaces via Audio Codec Low Power operations, DMA and FIFO
OU
PU
TS
TFT INTERFACE (RGB)Displays, including displays with out frame buffer
LCD Interface for K70, PEG software libraries
SPI/I2C (Display) Displays with Frame buffers PEG Software Libraries
PORT PINS LEDs High Drive Capabilities
FTM/TPMVibration, LED brightness, Vapors Dispersion, Buzzers, Piezo
Operation in Low Power Modes
DAC Audio or LED brightness FIFO and DMA
SEGMENT LCD DRIVE Segment LCDLow Power operations, Blink, Configurable
* Not all features available on all Kinetis MCUs
TM
External Use 4 #FTF2015
Span of Human Machine Interface Development
• Customer needs Smart Sensors, and…
Analyze DataCollect and
StorePower
Efficiency
ADVANCEDSIMPLE
TM
External Use 5 #FTF2015
• Customer needs Smart Sensors, and…
Analyze DataCollect and
StorePower
Efficiency
Span of Human Machine Interface Development
ADVANCEDSIMPLE
TM
External Use 6 #FTF2015
Autonomous, Low -Power Peripherals
• Challenges− Numerous sensors
data gathering, data sharing through serial peripherals
• Solutions − Intelligent
peripherals, DMA operations in STOP modes
TM
External Use 7 #FTF2015
Energy-Saving Peripherals For Increased Battery Lif e (1)
• Intelligent peripherals maximizing time in deep sleep modes with no CPU intervention
Peripheral Low Power Functionality
DMA Allows energy-saving peripherals (ADC, UART and Timer/PWM) to trigger asynchronous DMA request in
STOP/VLPS modes to perform DMA transfer and return to current power mode with no CPU intervention
UARTSupports asynchronous transmit and receive operations to the bus clock supporting communication down to
STOP/VLPS modes. Configurable receiver baud rate oversampling ratio from 4x to 32x allowing higher baud
rates with lower clock sources
SPI Supports slave mode address match wake-up function and first message capture down to STOP/VLPS
modes
I2C Supports multiple address match wake-up function down to STOP/VLPS modes
USB Supports asynchronous wakeup on resume signaling down to STOP/VLPS
LPTPM (Timer/PWM) Supports 16-bit timer input capture, output compare and PWM functions down to STOP/VLPS modes
LPTMR (Timer/Pulse
Counter)Supports 16-bit timer and pulse counter functions in all power modes
RTC Supports 32-bit seconds counter with seconds interrupt and programmable alarm in all power modes with
include temperature and voltage compensation
Enhanced SPI, I2C and USB Low
Power FeaturesComing Soon!
TM
External Use 8 #FTF2015
Peripheral Low-Power Functionality
ADCSupports triggered single conversions in multiple result registers down to STOP/VLPS modes with
hardware averaging and automatic compare modes
CMP (Analog Comparator)
Supports threshold crossing detection in all power modes along with a triggered compare mode
for lower average power compares
DAC Supports static reference in all power modes
Segment LCD Supports alternate displays and blink capability in all power modes
TSI (Capacitive Touch Sense
Interface)Supports wake-on capacitive touch on single channel in all power modes
LLWU (Low-Leakage Wake-up
Unit)
Supports 8 wake-up pins, RESET and NMI wakeup pins, and some energy-saving peripherals in
LLS and VLLSx modes
Energy-Saving Peripherals For Increased Battery Lif e (2)
TM
External Use 9 #FTF2015
Autonomous Peripheral Current Consumption
TM
External Use 10 #FTF2015
Kinetis MCU Input Capabilities
I/O Peripherals Use Case Kinetis Key Features*
INP
UT
S
PORT PINS All types of buttons and switches, Smart Sensors with digital outputs (Magnetometers)
Pin Interrupt, Pin Filtering, DMA, Low Power operations
COMPARATOR Analog Sensors (Light or IR) Low Power operations, DAC for reference voltages, DMA
ADC Analog Sensors (Light or IR), dials (Potentiometers)
Low Power operations, Compare modes, DMA
TOUCH SENSE INTERFACE Capacitive touch detection Low Power Operations, Software libraries
USB/UART/COMMS HID devices (Mouse, Keyboard), computer terminal
Software libraries, Reference Designs (Like Air Mouse)
I2S Microphone interfaces via Audio Codec Low Power operations, DMA and FIFO
* Not all features available on all Kinetis MCUs
MG1
Slide 11
MG1 I am not sure if this image is a printer - please replace with a clear image.Maynard Gail-B55387, 5/18/2015
TM
External Use 11 #FTF2015
Kinetis MCU Advanced Port Pin Features – Simple GPIO
• Digital input filter on selected pins
• Digital input filter for each pin, usable by any digital peripheral mixed onto the pin
• Individual enable or bypass control field per pin
• Selectable clock source for digital input filter with a five bit resolution on filter size
• Functional in all digital pin multiplexing modes
• In stop mode, the digital input filters are bypassed unless they are configured to run from the LPO clock source
TM
External Use 12 #FTF2015
Advanced Freescale Sensor Fusion Library
Full featured sensor fusion library, including the award winning e-compass software
Fully open source, eliminating proprietary constraints, increasing flexibility, and decreasing time-to-market
$
Learn more at: www.freescale.com/sensorfusion
Sof
twar
e an
d H
ardw
are
Eva
luat
ion
& D
ev T
ools
Sta
cks
(TC
P/IP
, US
B)
Mid
dlew
are
Operating System
Bootloader
App
licat
ion
Spe
cific
BSP, Drivers & HAL
Libraries(DSP, Math, Encryption)
MCU Hardware
Customer Application
Product Features• Functionality
− 3-axis, 2-axis heading, 6-axis eCompass,6-axis indirect Kalmanfilter, 3-axis relative rotation, and 9-axis indirect Kalman filter
− Programmable sampling, fusion rates, and frame of reference,
• Included projects− Kinetis K20, KL25Z, KL26Z, KL46Z,
and K64F Freedom boards− Use of Freescale multi sensor boards− CodeWarrior and Kinetis Design
Studio IDE• Additional commercial support and
services available
TM
External Use 13 #FTF2015
Features vs. Sensor Set
Feature Accel only Accel + gyro Accel + mag Accel + mag + gy ro
Filter Type Low Pass Indirect Kalman Low Pass Indirect Kalman
Roll / Pitch / Tilt in degrees Yes Yes Yes Yes
Yaw in degrees No No Yes Yes
Angular Rate1 in degrees/second virtual 2 axis2 Yes virtual 3 axis Yes
Compass heading (magnetic north) in degrees No No Yes Yes
Quaternion and rotation vector Yes Yes Yes Yes
Rotation matrix Yes Yes Yes Yes
Linear acceleration separate from gravity No Yes No Yes
NED (North-East-Down Frame of Reference Yes3 Yes3 Yes Yes
ENU (Windows 8 variant) Frame of Reference Yes3 Yes3 Yes Yes
ENU (Android variant) Frame of Reference Yes3 Yes3 Yes Yes
Magnetic calibration included No No Yes Yes
Gyro offset calibration included N/A Yes N/A Yes
FRDM-KL25Z board support Yes Yes Yes Yes
FRDM-KL26Z board support Yes Yes Yes Yes
FRDM-KL46Z board support Yes Yes Yes Yes
FRDM-K20D50M board support Yes Yes Yes Yes
FRDM-K64F board support Yes Yes Yes Yes
1. Angular rate for configurations with a gyro include corrections for gyro offset2. Subject to well-known limitation of being blind to rotation about axes aligned with gravity3. These solutions do not include a magnetometer, therefore there is no sense of compass heading
TM
External Use 14 #FTF2015
Freescale Sensor Expansion Boards
• Kinetis KL25Z and K20D50M MCUs Compatible w/ Freescale Sensor Expansion Boards
Part Number Description Pricing AvailabilityFRDM-FXS-MULTI* Freescale Sensor Expansion
boardMPL3115A2MMA8652 FXAS21000FXOS8700FXLS8471MMA955xMAG3110
$50 Now
FRDM-FXS-MULTI-B* Freescale Sensor Expansion board with Bluetooth and BatteryMPL3115A2MMA8652 FXAS21000FXOS8700FXLS8471MMA955xMAG3110
$125 Now
FRDM-FXS-9AXIS* Freescale Sensor Expansion board with only 2 sensors FXAS21000FXOS8700
$30 Now
KL25Z orKL26Z orKL46Z orK20D50M orK64F
FRDM-FXS-
TM
External Use 15 #FTF2015
Sensor Fusion Development Kit
• Development kit− Enables quick development and prototype of sensor fusion
applications and includes:� FRDM-K64F Freescale Freedom board
� Freedom Development Platform for Freescale Sensors with Bluetooth®
− Part numbers� FRDM-SFUSION with community support ($170)
� FRDM-SFUSION-S with 50 hours commercial support ($10K)
• Commercial support− Reduces project risk, accelerates time to market− Prioritized and dedicated access− Guaranteed response time− Senior level developer access− Private portal with customer reporting and dedicated escalation path− Annual Subscription
TM
External Use 16 #FTF2015
How to Engage with Sensor Fusion
• http://www.freescale.com/sensorfusion− Contains the latest sensor fusion information
− Downloadable SW and demos
− Blogs and app notes
• Sensor fusion development kits− Available November 2014
− Combination of FRDM-MULTI-B and FRDM-K64F boards
− Part numbers� FRDM-SFUSION-S with 50 hours of commercial support
� FRDM-SFUSION with community support
• Factory contact− [email protected]
− Email alias includes sensor and MCU teams
TM
External Use 17 #FTF2015
Simplifying Sensor Software Development using ISF 2.1
TM
External Use 18 #FTF2015
ISF 2.1 for Kinetis MCUs
ISF 2.1 for Kinetis MCUs allows you to write an embedded sensor application in less than 30 minutes without writing a single line of code using Processor Expert technology.
Differentiating Points• Sensor application code auto-generation using
Processor Expert technology
• Deployable across entire line of Kinetis MCUs
• Sensor Fusion library has been integrated as an “Orientation” sensor
• Register Level Interface allows low-level access to sensor registers
Product Features• Projects available for FRDM-KL25Z, FRDM-K22F and
FRDM-K64F
• Supports a broad set of Freescale sensors including MMA8652/8653, MAG3110, FXOS8700, FXAS21002, FXLS8471, MPL3115 and others
• Example projects available for both CodeWarrior 10.6 and Kinetis Design Studio 2.0 Integrated Development Environments
Applications• Sensor Data Analytics• Internet of Things• Consumer Electronics• Wearable Electronics • Medical Devices
TM
External Use 19 #FTF2015
ISF 2.1 Features and Benefits
• Our customers can focus on what adds value to their sensor based embedded application and leave the arduous tasks of extracting raw data from sensors to ISF
Features Benefits
Fully Integrated with Processor Expert• Allows customers to make changes and see the results in the
shortest time possible
Sensor Fusion Library integrated as an “Orientation Sensor”
• Orientation sensor provides high-level configuration sensor fusion options based on Processor Expert property settings
• Example projects for K22F and K64F run out of the box
Generic Sensor Data Types• Allows the user to ignore scaling and formatting particular
sensor data• Provides both integer and floating point engineering units
Expandable Embedded Application auto-generation
• Basic embedded application supplies raw sensor data at the desired rates to a host application for any number of supported sensors
• Application can be expanded to include customer specific sensor data processing and host command with minimal effort
Deployable Across entire line of Freedom development platforms
• Example projects for KL25Z, K22F, and K64F• Processor Expert supplies target definitions for other
Freedom boards
TM
External Use 20 #FTF2015
ISF 2.1 Enablement
• ISF 2.1 Website
− Installer download of documentation and example projects
− ISF 2.1 Processor Expert components available as installable library (ISF2P1_PEx.PEupd)
− Training Videos
• Integrated with Sensor Fusion library as a stand-alone sensor
• Integrated with Sensor Toolbox
TM
External Use 21 #FTF2015
Intelligent Sensing Framework
TM
External Use 22 #FTF2015
ISF 2.1 Software Architecture “Layer Cake”
Applications
MXQLiteRTOS
PowerManager
BusManager
UART ProtocolAdapter
Device Messaging
HDLC Protocol
HostCommunications
SPI Protocol Adapter
I2C Protocol Adapter
SPI SensorAdapter
I2C Sensor Adapter
Sensor Manager
I2CSDK
PExI2CLDDShim
PExI2CLDD
SPISDK
PExSPILDDShim
PExSPILDD
UARTSDK
PExUARTLDDShim
PExUARTLDD
PITSDK
PexPITLDDShim
PExPITLDD
SMCSDK
PExLDDSet
OperationFunctions
System TickLDD
Kinetis Microcontroller and Remote Intelligent Sensors
Application
ISF CoreServices
Drivers
Hardware
Compute Useful Outputs (Application Code)Compute Useful Outputs (Application Code)
Register Map for Each Sensor and Convert Data Units
Register Map for Each Sensor and Convert Data Units
Send/Receive Messages via I2C or SPI
Send/Receive Messages via I2C or SPI
EstablishInterface and Protocols to
Host
EstablishInterface and Protocols to
Host
Schedule Periodic
Processing
Schedule Periodic
Processing
Control Power Modes
Control Power Modes
Boot, Interrupt Vectors,
Task Schedule,
Synch, and Msg
Boot, Interrupt Vectors,
Task Schedule,
Synch, and Msg
Application Code ISF Code Non-ISF HW & SW
TM
External Use 23 #FTF2015
Freescale Touch Sensing Software Roadmap
Freescale Touch beta release
13 Jan 2015
Freescale Touch v1.0 release
March 2015
Includes: • New Kinetis MCU NPI support• Kinetis SDK based drivers• New modular architecture• Released as full source code
TM
External Use 24 #FTF2015
Touch Sense Interface: Key Value-Add Components
• No external components needed, pin can be connected directly to electrode, single pin-per-electrode architecture
• Auxiliary flags and interrupts: pad short, scan period overrun• External and reference oscillator subject to the same temperature
variation• Configurability for faster response or for higher resolution
MCU
Vcc
ElectrodeMCU
Vcc
Electrode
Finger
System’sbase
capacitance
TM
External Use 25 #FTF2015
Touch Sensing Ecosystem
• MCUs our customers can focus on what adds value to their sensor based embedded application and leave the arduous tasks of extracting raw data from sensors to ISF
• Different electrode flexibility• Touch sensing development Kits:
Freedom Boards, Towers, TWIRPI Plug ins
• TSS Library to enhance touch sensing capabilities.
• FreeMASTER GUI for calibration and development
• Processor Expert
TM
External Use 26 #FTF2015
Freescale Touch Software
Innovative features such as noise filtering, advanced detection algorithms, and water tolerance
Integrated touch solution, allowing reduced system complexity
Sof
twar
e an
d H
ardw
are
Eva
luat
ion
& D
ev T
ools
Sta
cks
(TC
P/IP
, US
B)
Mid
dlew
are
Operating System
Bootloader
App
licat
ion
Spe
cific
BSP, Drivers & HAL
Libraries(DSP, Math, Encryption)
MCU Hardware
Customer Application
Coming soon: www.freescale.com/TouchSW
Product Features• New modular architecture optimized for 32-
bit Kinetis Microcontrollers
• Support for Kinetis MCUs with Touch Sensing Interface (TSI) capabilities and GPIO
• Easy integration with:− MQX RTOS− Kinetis SDK− Processor Expert
• Advanced Filtering and Integrating Detection (AFID)
• Signal Adaptive Filtering Algorithm (SAFA) for improved noise EMC immunity and responsiveness
• TSI Noise mode• Water tolerant• Proximity and shielding electrode(s)• Analog decoder algorithms
TM
External Use 27 #FTF2015
Freescale Touch Software Library
TM
External Use 28 #FTF2015
Architecture
Applications Mouse Medical USB Serial Storage Audio
Class Driver PHDCHID CDC MSC AUDIO
Peripheral Driver Common Peripheral Layer
Controller driver Full speed Controller driver High speed controller driver
HW Full speed Controller driver High speed controller driver
HAL Full speed Controller driver High speed controller driver
OSA
TM
External Use 29 #FTF2015
Freescale USB Stack
Sof
twar
e an
d H
ardw
are
Eva
luat
ion
& D
ev T
ools
Sta
cks
(TC
P/IP
, US
B)
Mid
dlew
are
Operating System
Bootloader
App
licat
ion
Spe
cific
BSP, Drivers & HAL
Libraries(DSP, Math, Encryption)
MCU Hardware
Customer Application
Different USB host and device classes, both bare metal, RTOS and integrated with Kinetis SDK.
Enable USB applications with Freescale Devices.
Learn more at: www.freescale.com/usb
Product Features• USB stack with all sources provided• Low footprint: down to 7 KBytes Flash and
2.5 KBytes RAM• Integrated with Kinetis SDK and MQX 4.2• Device classes
− HID, CDC, PHDC, MSC, AUDIO• Host classes
− HID, CDC, PHDC, MSC, AUDIO• USB OTG
− HNP, SRP• New 'unified' stack combines MQX and Bare
Metal stack• Support for IAR, Keil, Kinetis Design Studio
IDE, Atollic and GNU/GCC tool chains.
TM
External Use 30 #FTF2015
Kinetis MCU Output Capabilities
* Not all features available on all Kinetis MCUs
I/O Peripherals Use Case Kinetis Key Features*O
UP
UT
S
TFT INTERFACE (RGB)
Displays, including displays with out frame buffer
LCD Interface for K70, PEG software libraries
SPI/I2C (Display) Displays with Frame buffers PEG Software Libraries
PORT PINS LEDs High Drive Capabilities
FTM/TPM Vibration, LED brightness, Vapors Dispersion, Buzzers, Piezo
Operation in Low Power Modes
DAC Audio or LED brightness FIFO and DMA
SEGMENT LCD DRIVE Segment LCD Low Power operations, Blink, Configurable
SIMPLE------------------------------------ADVANCEDMonochrome Segment Displays ----------------------High Color TFT
TM
External Use 31 #FTF2015
SWD Interface MTB
InterruptController
ARM Cortex-M0+48MHz
DMA 4CH
BME
Low-Leakage Wakeup
Program Flash 32-64KB
SRAM4-8KB
Low & High FrequencyOscillators
High AccuracyInternal
Reference Clocks
48M/8MHz
Unique ID16-bit SAR
ADC
HSCMP
6ch Timer/PWM
Low Power Timer
PIT
RTC
Low Power UART x2
SPI x2
Securityand Integrity
Analog Timers Communication Interfaces HMI
x2 2ch Timer/PWM
ROM8KB
Internal Watchdog
32-Byte Register File
1KHz LPO
FlexIO
I2C x2
12-bit DAC
Internal Voltage Reference
Up to 70 GPIOsAll IO w/ Interrupts
Segment LCD8x40/6x42/4x44
CRC UART x1ISO7816
Core System Memories Clocks
KL33: Block Diagram
TM
External Use 32 #FTF2015
KL33: Block Diagram
• Packages
− 80LQFP 12x12x1mm/0.5mm − 64LQFP 10x10x1mm/0.5mm
• Features − ROM boot loader for easy flash upgrade
− Embedded 1.2V selectable voltage reference for ADC, DAC and CMP
− LCD support 6COM− IrDA supported by FlexIO
TM
External Use 33 #FTF2015
KL33/13 Features Overview
Common Features Optional Features
• Cortex-M0+, 48MHz
• 1.71-3.6 V
• –40 °C to 105 °C
• 4 channel DMA
• Single Wire Debug
• Micro Trace Buffer
• Bit Manipulation Engine
• High Accuracy 48MHz
Internal Clock
• Ultra Low Power 8/2MHz
Internal Clock
• 16-bit ADC
• 12-bit DAC
• High-Speed Comparator
• High Accuracy Internal
Voltage Reference
• Low Power UART, SPI, IIC
• UART with ISO7816
• FlexIO
• Boot ROM
• Real Time Clock
• 16-bit Low Power Timer
PWM Module
• Low Power Timer
• 32-bit Periodic Interrupt
Timer
Family
FLA
SH
SR
AM
Se
gm
en
tLC
D
I2S
Ha
rdw
are
32
-
bit
CR
C
80
LQF
P
64
LQ
FP
64
MA
PB
GA
48
QF
N
MKL33Z256Vxx4 256KB 32KB8x28
4x32Y - - Y Y -
MKL33Z128Vxx4 128KB 16KB8x28
4x32Y - - Y Y -
MKL33Z64Vxx4 64KB 8KB
Up to
8x40
6x42
4x44
- Y Y Y PYW PYW
MKL33Z32Vxx4 32KB 4KB
Up to
8x40
6x42
4x44
- Y Y Y PYW PYW
TM
External Use 34 #FTF2015
Kinetis MCU LCD Features
• Support 3V LCD panels• Segment LCD controller supports
− Up to 320 segments (40 frontplanes and 8 backplanes)
− Up to 204 segments (44 frontplanes and 4 blackplanes)
• Front plane/back plane selection and enabling• Blink modes, Alternate display in x4 or less mode.• Operation in low-power modes. LCD waveforms functional in all
low-power modes.
• 1/3 bias optimized (VLL3, VLL2, VLL1)• Internal Contrast control (charge pump + rvtrim)• Fault detection
TM
External Use 35 #FTF2015
Kinetis MCU LCD
• Internal charge pump provides all voltages required to power up LCD glass− Internal software selectable regulated power supply that keeps constant voltage
across LCD
− Glass to avoid degradation
− Kinetius L offers 4 bits resolution trim to adjust contrast control
• Fewer pins required to drive LCD segments− 44 pins required for 288 segments in 8x36 mode
− 44 pins required for 160 segments in 4x40 mode
− 32 pins required for 192 segments in 8x24 mode
• Front and back plane re-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
TM
External Use 36 #FTF2015
Kinetis MCU LCD Driver: Blink Mode
Blinking to a blank screen turns all segments off, leading to lower standby current for the time that the screen is blank
Using the Alternate blink mode allows the application to remain in Stop mode for longer periods of time. Example: Using alternate display to show time across 4 Minutes
78°C 78°CStop Mode
7:01 7:02 Stop Mode
7:03 7:04
LCD Glass LCD Glass
7:01 7:02 Stop Mode
LCD Glass LCD Glass
7:03 7:04
78°C
TM
External Use 37 #FTF2015
Kinetis K Series MCUs | Summary
TM
External Use 38 #FTF2015
GLCD Features (Graphics LCD – K70 Family)
• Support for single (non-split) screen monochrome or color LCD panels and self-refresh type LCD panels
• Max Resolution: 800x600 (SVGA)• Hardware-generated cursor with blink, color, and size
programmability• Logical operation between color hardware cursor and background• Hardware panning (soft horizontal scrolling)• 8-bit pulse-width modulator for software contrast control• Graphic window support for viewfinder function in color display• Graphic window color keying for graphical hardware cursor• 256 transparency levels for alpha blending between graphic
window and background plane
TM
External Use 39 #FTF2015
Kinetis K70 MCU | HMI Configurations
• Lowest BOM cost and power, smallest form factor, GUI solution
Touch Sense
Interface
8-bit QVGA
Display
Single Voltage Power Supply
24-bit SVGA
Display
DRAM
Single Chip MCU MCU with DRAM
• Program code in internal Flash (up to 1 MB)• Data in internal SRAM (~ 52 KB)• Display buffer in internal SRAM (~76 KB)• No External Memory Costs
• Program code in internal Flash (up to 1 MB)• Data in internal SRAM (up to 128 KB)• Display buffer in external SRAM DRAM
(DDR2 or LPDDR)• Limited External Memory Costs• Avoid Power Hungry MPU• MCU ease of use
Kinetis K70 Kinetis K70
Single Voltage Power Supply
Touch Sense
Interface
TM
External Use 40 #FTF2015
GLCD Controller Block Diagram
LCDArbiter
BackgroundPlane
GraphicWindow
Gray ScaleInterface & Buffer
ColorInterface & Buffer
AlphaBlending
InterfaceLogic
LCD Panel
TM
External Use 41 #FTF2015
LCD System Considerations
• There are two main system considerations when designing with an LCD
− Memory usage� The panel size and bits per pixel determine the amount of memory needed to hold the graphic buffer.
� In some cases twice as much memory (or more might be needed). It is typical to use one graphic buffer to store the current image while a second buffer containing the next image is prepared.
− Bus bandwidth usage� While enabled the LCD will continuously fetch data from the graphic buffer.
� The bandwidth required by the LCD is based on the pixel clock rate (LSCLK) and the number of bits per pixel
TM
External Use 42 #FTF2015
PEG Graphic Suite. Any LCD. Anywhere.
• Any RTOS and tool− MQX RTOS, FreeRTOS, CMX, eCOS, Express Logic – ThreadX,
GNU, GHS - INTEGRITY, Keil RTX, Mentor Graphics – Nucleus, Micro Digital SMX, Micrium uC/OS, Quadros RTXC,
− Kinetis Design Studio IDE, IAR Embedded Workbench, Freescale CodeWarrior
• Any hardware− Freescale Kinetis MCUs, i.MX processors, and PowerPC
− NXP, Renesas, Samsung, Marvell, Altera, Analog Devices, ST Micro, Texas Instruments, …
• Each product line has two components− WindowBuilder – tool to build the UI and auto-
generate the application source files
− PEG Runtime Library – code that executes the UI on embedded devices
User GUI Application(s)
PEG Core Source Files
RTOS Driver
Underlying OS
Screen Driver
Display Panel
Input Driver
Touch Overlay /
Input Device
TM
External Use 43 #FTF2015
PEG Graphics Suite Comparison
Free on Freescale Silicon, Basic UI Widgets, Minimal Set of Predefined Elements
Customizable UI Widgets, Full Set of Predefined Elements
Higher Color Depth, Effects, Customizable UI Widgets, Full Set of Predefined Elements
Color DepthMonochrome to 65K High
ColorMonochrome to 16.7M
True Color65K High Color to 16.7M
True Color with Alpha
Custom Bitmap Elements Buttons and Images …adds Widgets and Animation
Predefined WidgetsText Button, Checkbox,
Radio, Progress Bar, Slider, Dial, Scroll, Combo Box, …
…plus, Windows, Charts, Spreadsheet, Tables, Tabs, Menu and Status Bars, …
…adds gradients and transparency effects
Multilingual Support Dual Language Full Multi-lingual
Anti-Aliasing Simple Anti-Aliasing True Anti-Aliasing
Window Builder Full WYSIWYG editor with integrated Font Capture and Image Converter
Additional FeaturesRuntime themes/skins,
Runtime image decoding…adds Swipe detection,
Alpha blending
Starting Development Cost
$0 $700 $800
Production Licensing(based on 10K units)
$0 $2,800 $3,200
TM
External Use 44 #FTF2015
PEG Graphics Software Window Builder for Rapid Development
• Full WYSIWYG development• GUI Code Generation• Desktop simulation environment• Runs on PC / Linux
to allow proof of concept development• Enables hardware / software
development to happen in parallel• Free evaluation includes full Window
Builder application for all PEG versions.
TM
External Use 45 #FTF2015
PEG Graphics Software - Runtime for Flexible GUI Framework
• Portable GUI application layer• Full access to PEG source code• RTOS Integration Driver
− Bare metal− MQX or other RTOS− Linux
• Configurable Screen Driver− Integrated LCD Controllers and
Smart Display Panels− Range of color depth options
• Flexible Input Driver− Analog and Digital interfaces
to input devices− Polling or message driven communication
User GUI Application(s)
PEG Core Source Files
RTOS Driver
Underlying OS
Screen Driver
Display Panel
Input Driver
Touch Overlay /
Input Device
TM
External Use 46 #FTF2015
PEG Key Takeaways
PEG Lite is available for free when used on Freescale silicon.
� All users of PEG will have access to Freescale Community for common inquiries that are supported by the community.
� Driver development packages and support services are available to reduce engineering costs and time to market.
� Driver development packages can be purchased. This package provides a basic driver developed specifically for the target hardware.
� Premium Support provides dedicated engineering resources in hourly blocks.
� Professional Engineering Services can provide advanced driver development and PEG code optimizations.
Learn more at: www.freescale.com/PEGor contact [email protected]
TM
External Use 47 #FTF2015
PEG Key Takeaways
• PEG Lite is available for free when used on Freescale silicon
• All users of PEG will have access to Freescale Community for common inquiries that are supported by the community
• Driver development packages and support services are available to reduce engineering costs and time to market.
• Premium Support provides dedicated engineering resources in hourly blocks
• Professional Engineering Services can provide advanced driver development and PEG code optimizations.
TM
External Use 48 #FTF2015
Kinetis MCU Future HMI CapabilitiesMicrophones, cameras, custom displays
TM
External Use 49 #FTF2015
FlexIO
• Configurable peripheral supporting many protocols including, but not limited to:− UART, I2C, SPI, I2S, and PWM / Waveform generation
− Camera interface, custom display interface, digital microphone interface
• Requires low software/CPU overhead compared to software bit-banging
• Single peripheral can support multiple protocols on different pins
• Highlighted features:− Array of 32-bit shift registers with transmit/receive/data match modes
− Double buffered shifter operation for continuous data transfer
− Programmable baud rates independent of bus clock frequency with asynchronous operation during stop modes
− Highly flexible 16-bit timers with support for a variety of internal or external trigger, reset, enable and disable conditions
TM
External Use 50 #FTF2015
TWR-K80 Camera Demo
• Camera Demo− Utilizing Kinetis K80 MCU− Tower Boards� TWR-Proto with Connection to Camera� OV7670 camera module� TWR-LCD
• Camera Demo− Built from Kinetis SDK software− FlexIO utilized to interface to camera� 30fps, RGB565 (16b color), 320x240� DMA transfers to receive camera data� DMA transfers to send camera data to
TWR-LCD
TM
External Use 51 #FTF2015
K80 Camera Demo Block Diagram
OV7670camera(TWR-
PROTO)
LCD(TWR-LCD)
3V3
GND
I2C
PCLK
XCLK
D0-7
VSYNC
HREF
FlexIO
K80 MCU
FlexBus
DMA1
EBI 16bit
SRAM
DMA2
PCLK = 12MHz
I2C
GPIO
TM
External Use 52 #FTF2015
FlexIO Shifter and Buffer
FXIO_D[31:24]
Cameramodule :
::
24
318bit shift in
31 0Shift register 7
Shift register 6 031
:::
Shift register 031 0
Shift register 1
Decrement timer counter
Buffer full Status-Flag
Timer counter reach 0Store data in each SHIFTBUFx
SHIFTBUFx
DMA trigger
Demo PCLK=12MHz
TM
External Use 53 #FTF2015
FlexIO Buffering
• FlexIO− FlexIO shift register can be used as buffering as well as shifting data
in the registers.� 8 shift buffers available.
• 8 x 4byte(32bit shift register) = 32bytes
� Image data can be buffered in FlexIO, and DMA transfers them to camera buffer stored in embedded SRAM.
− Every 16 pixels(16bit color RGB image) can be transferred by DMA
TM
External Use 54 #FTF2015
Picture Data Flow 1
Camera FlexIO
Shift_Buf
DMA2
Camera Buffer
FlexBusCPU
DMA1
Frame Buf
LCD
DMA req on every 32Byte(16pixels RGB, 32 pixels Raw) for both DMA.
VSYNC interrupts CPU
Set first address of
LCD FrameBuf
32Byte burst transfer
16bits x 16 loop transfer
2
3
5
4
7
6
1
K80 MCU
TM
External Use 55 #FTF2015
Picture Data Flow 2
…
DMA reqEvery 32Byte
…
…
…
…
…
…
…
…
…
… …
…
…
VSYNC
1
2CPU
HREF
FlexIO
DMA1
DMA2
FlexBus
3
4
5
6
7
TM
External Use 56 #FTF2015
FlexIO: Shifter O peration
• Transmit mode− The shifter will load data from the buffer and shift data out when a load event is signaled by the
assigned Timer
• Receive Mode− The shifter will shift data in and store data into the SHIFTBUF register when a store event is signaled
by the assigned Timer
• Match Store Mode− Data is shifted in, check for a match result and store matched data into the buffer register when a
store event is signaled by the assigned Timer
− Up to 16 bits of data can be compared. When match occurs a flag will set and any enabled interrupts or DMA requests
− Flag will be cleared when reading buffer
• Match Continuous− Data is shifted and continuously check for a match result whenever a shift event is signaled by the
assigned Timer
TM
External Use 57 #FTF2015
FlexIO: Shifter O perations
• State Mode− Implement any state machine with up to 8 states, 8 outputs and 3
selectable inputs per state− Basic control functions to be offloaded from the CPU using FlexIO
hardware
• Logic Mode− Implement a small amount of programmable digital logic within a
FlexIO Shifter.
TM
External Use 58 #FTF2015
Kinetis K Series MCUs | Summary
TM
External Use 59 #FTF2015
Kinetis K Series MCUs | Summary
TM
External Use 60 #FTF2015
Advanced MCU Graphics Capabilities
• Optimize memory footprint − Provide an integrated graphics solution reducing cost, size and complexity
• Utilize 2D ACE layer and plane features − Deliver best in class 2D graphics accelerations reducing power and freeing up CPU for other functions
• Image Composition− Support for image composition from various memory resources� SRAM, QSPI Flash, QSPI RAM, External RAM…etc
− Full use of 2D-ACE Layer features � Support for different image color depth (4bpp, 8bpp, etc)� Tile features supported� Support for eDMA image pre-building in SRAM (internal or external)� GUI builder considers layering features
• Graphics Acceleration− Dynamic changing of Size (pop up dialog boxes)− Fly in/Fly out controlled by layer position− Alpha blending− Color changing using CLUT− Animations using CLUT− Animations using layers− Scrolling using layer position
TM
External Use 61 #FTF2015
How Does the 2D -ACE Render a Frame?
2D-ACE
24bpp
max120km/h
Total RAM used: 0 bytes
Total Flash used: 122400 bytes
Object Size
Speedometer 200x200 8bpp
Needle 120x20 8bpp
ascii font set 400x400 4bpp
text box max speed 60x40 4bpp
SPI NOR FLASH
SPI NOR FLASH
abcdefghijklmnopqrstuvwxyz0123456789/.,
2
Embedded RAMEmbedded RAM
Max120km/h
eDMA
1200 bytes480x272 24bit screen
(would require ~400,000B buffer)
TM
External Use 62 #FTF2015
2D-ACE HW animations
• Size: e.g. Pop up • Position : e.g. Fly in/out• Alpha : e.g. Fade in/out • Color : e.g. Text/icon state • CLUT: e.g. Segment pixel group color, hide, reveal • Image : e.g. Image sequence animation • Scroll : e.g. List scroll
TM
External Use 63 #FTF2015
This text:Can be scrolled By moving the address the layer is pointing
2D-ACE HW animations
• Size: e.g. Pop up • Position : e.g. Fly in/out• Alpha : e.g. Fade in/out • Color : e.g. Text/icon state • CLUT: e.g. Segment pixel group color, hide, reveal • Image : e.g. Image sequence animation • Scroll : e.g. List scroll
Dialog Box!Fade in Layer
Text can change color easily
TM
External Use 64 #FTF2015
For More Information
• Kinetis MCU portfolio:− www.Freescale.com/kinetis
Communityhttps://community.freescale.com/community/kinetis
Webwww.freescale.com/kboot
TM
© 2015 Freescale Semiconductor, Inc. | External Use
www.Freescale.com
Top Related