FREESCALE MK40DN512VYY10

32-bit MCUs
Kinetis K40 Family
Low-power MCUs with USB and LCD
Target Applications
Overview
• GPS receivers
The Kinetis MCU portfolio consists of multiple pin-, peripheral- and software-compatible MCU
families based on the ARM® Cortex™-M4 core. Families are built from innovative 90 nm thin-film
storage (TFS) flash technology with unique FlexMemory (EEPROM) capability, and offer industryleading low power and mixed signal analog integration.
• Blood glucose meters
• Bike computers
• Currency counters
The K40 MCU family adds Full-Speed USB 2.0 On-The-Go with device charger detect capability
and a flexible, low-power segment LCD controller with support for up to 320 segments. Devices
start from 64 KB of flash in 64 LQFN packages extending up to 512 KB in a 144 MAPBGA package
with a rich suite of analog, communication, timing and control peripherals.
Kinetis
K40
Family
Kinetis K40
Family
Core
System
ARM® Cortex™-M4
72/100 MHz
Internal and
External
Watchdogs
Debug
Interfaces
DSP
Interrupt
Controller
Memory
Protection Unit
(MPU)
DMA
Low-Leakage
Wake-Up Unit
Security
and Integrity
Cyclic
Redundancy
Check (CRC)
Clocks
SRAM
(16 to 128 KB)
Phase-Locked
Loop
FlexMemory
(32 to 256 KB)
(2 to 4 KB EE)
External
Bus Interface
(FlexBus)
FrequencyLocked Loop
Serial
Programming
Interface
(EzPort)
Low/HighFrequency
Oscillators
Internal
Reference
Clocks
Analog
Timers
16-bit
ADC
FlexTimer
I2C
I2S
GPIO
PGA
Carrier
Modulator
Transmitter
UART
(ISO 7816)
Secure
Digital Host
Controller
(SDHC)
Xtrinsic
Low-Power
Touch-Sensing
Interface
SPI
USB On-the-Go
(LS/FS)
Segment
LCD Controller
Analog
Comparator
6-bit
DAC
12-bit
DAC
Voltage
Reference
Standard
Memories
Program Flash
(64 to 512 KB)
Optional
Programmable
Delay Block
Periodic
Interrupt
Timers
Low-Power
Timer
Independent
Real-Time
Clock (RTC)
Communication Interfaces
CAN
USB Device
Charger Detect
(DCD)
USB Voltage
Regulator
HMI
One-Stop Enablement
Offering—MCU + IDE + RTOS
Features
Benefits
• ARM Cortex™-M4 core
with DSP instruction support
• Up to 16-channel DMA.
Crossbar switch
• Up to 100 MHz core supporting a broad range of processing bandwidth
needs
• Peripheral and memory servicing with reduced CPU loading. Concurrent
multi-master bus accesses for increased bus bandwidth
• USB On-The-Go (Full Speed)
with device charger detect
• Optimized charging current/time for portable USB devices, enabling
longer battery life. USB low-voltage regulator supplies up to 120 mA off
chip at 3.3 V to power external components from 5 V input
• Flexible, low-power LCD
controller with support for up
to 320 segments (40 x 8 or
44 x 4)
• LCD blink mode enables low average power while remaining in lowpower mode
• Segment fail detect guards against erroneous readouts and reduces
LCD test costs
• Frontplane/backplane reassignment provides pin-out flexibility, easing
PCB design and allows LCD configuration changes via firmware with no
hardware re-work
• Supports multiple 3 V and 5 V LCD panel sizes with fewer segments
(pins) than competitive controllers and no external components
• Unused LCD pins can be configured as other GPIO functions
• FlexBus external bus
interface Secure digital host
controller
• E
nables the connection of external memories and peripherals
(e.g., graphics displays)
• Connection to SD, SDIO, MMC or CE-ATA cards for in-application software upgrades, file systems or adding Wi-Fi® or Bluetooth® support
• Up to three FlexTimers with
up to 12 channels
• Carrier modulator transmitter • 4-channel, 32-bit interrupt
• General-purpose timers with hardware dead-time insertion and
quadrature decoding for motor control
• Infrared waveform generation for remote control applications
• Time base generation for RTOS task scheduler or trigger source for ADC
conversion and programmable delay block
• 64–512 KB flash.
Up to 128 KB of SRAM
• 32–256 KB FlexMemory
• High reliability, fast access program memory with 4-level security
protection. Independent flash banks allow concurrent code execution
and firmware updating
• FlexMemory provides 32 byte–4 KB of user-segmentable byte write/
erase EEPROM. In addition, Flex NVM 32–256 KB for extra program
code, data or EEPROM backup
®
Freescale Tower System hardware
development environment:
• Integrated development environments
Eclipse-based CodeWarrior V10.x IDE
and Processor Expert
IAR Embedded Workbench
Keil MDK
CodeSourcery Sourcery G++ (GNU)
• Runtime software and RTOS
Math, DSP and encryption libraries
Motor control libraries
Complimentary bootloaders (USB,
Ethernet, RF, serial)
Complimentary Freescale embedded
GUI
Complimentary Freescale MQX™
Cost-effective Nano™ SSL/Nano™
SSH for Freescale MQX RTOS
Micrium uC/OS-III
Express Logic ThreadX
SEGGER embOS
freeRTOS
Mocana (security)
• Full ARM ecosystem
K40 Family Options
Packages
512
√
√
√
USB OTG (FS), Segment LCD (up to 40 x 8/44 x 4)
√
√
72
64
32
16
√
√
√
√
USB OTG (FS), Segment LCD (up to 24 x 8/28 x 4)
√
√
MK40DX128Vyy7
72
128
32
32
√
√
√
√
USB OTG (FS), Segment LCD (up to 38 x 8/42 x 4)
√
√
√
√
√
√
√
√
Other
100
12-bit DAC
MK40DN512Vyy10
MK40DX64Vyy7
Part Number
144 BGA (13 x 13)
MD
144 LQFP (20 x 20)
LQ
121 BGA (8 x 8)
MC
100 LQFP (14 x 14)
LL
80 LQFP (12 x 12)
*
LK
64 LQFP (10 x 10)
√
5 V Tolerant I/O
External Bus Interface
√
Prog. Gain Amplifier
Secure Digital Host Controller
√
CAN
Memory Protection Unit
128
LH
Flash (KB)
SRAM (KB)
Feature Options
CPU (MHz)
Flex NVM (KB)
Memory
√
√
√
√
MK40DX256Vyy7
72
256
32
64
√
√
√
USB OTG (FS), Segment LCD (up to 38 x 8/42 x 4)
MK40DX128yy10
100
128
128
32
√
√
√
√
√
√
√
USB OTG (FS), Segment LCD (up to 40 x 8/44 x 4)
√
√
MK40DX256yy10
100
256
256
64
√
√
√
√
√
√
√
USB OTG (FS), Segment LCD (up to 40 x 8/44 x 4)
√
√
yy = Package designator
*144pin only
For current information about Kinetis products and documentation,
please visit freescale.com/Kinetis
Freescale, the Freescale logo, CodeWarrior, Kinetis, the Energy Efficient Solutions logo and Processor Expert are trademarks of
Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Xtrinsic is a trademark of Freescale Semiconductor, Inc. All other product
or service names are the property of their respective owners. ARM is the registered trademark of ARM Limited. ARM Cortex-M4 is
the trademark of ARM Limited. © 2011, 2012 Freescale Semiconductor, Inc.
Doc Number: KNTSK40FMLYFS REV 7