Freescale Semiconductor TWR-K65F180M User Manual

© 2015 Freescale Semiconductor, Inc. All rights reserved.
Freescale Semiconductor, Inc.
Document Number: TWRK65F180MUG
User's Guide
Rev. 0
,
Contents
1 Introduction 1
1.1 Features ..................................................................... 2
1.2 Getting started ........................................................... 3
2 Contents 3 3 Hardware description 4
3.1 K65F180M microcontroller ........................................ 4
3.2 Clocking .................................................................... 5
3.3 System power ............................................................ 5
3.4 Tamper module (Dryice) and Real-Time Clock supply 6
3.5 Serial and Debug Adapter version 2 (OpenSDAv2) ..... 6
3.6 Cortex Debug connector ............................................. 7
3.7 External Bus Interface – FlexBus................................ 7
3.8 SDRAM .................................................................... 8
3.9 Accelerometer ........................................................... 8
3.10 Potentiometer, Pushbuttons, LEDs .............................. 8
3.11 General Purpose Tower Plug-in (TWRPI) socket ........ 9
3.12 Touch interface .......................................................... 9
3.13 USB interface .......................................................... 10
3.14 Secure digital card slot ............................................. 10
3.15 Ethernet and 1588 ................................ .................... 11
4 Jumper table 11 5 Input/output connectors and pin usage table 13 6 Elevator connections 14 7 References 16 8 Revision history 17
TWR-K65F180M User's Guide
1
The K65F180M Tower MCU Module (TWR-K65F180M) is a low-cost evaluation, demonstration, and development board, which features the Kinetis 180 MHz K65 low-power MCU. The TWR-K65F180M microcontroller module can operate in stand-alone mode or as part of the Freescale Tower System, a modular development platform that enables rapid prototyping and tool re-use through reconfigurable hardware. Take your design to the next level and begin constructing your Tower System today by visiting
freescale.com/tower for additional Tower System
microcontroller modules and compatible peripherals.
1.1 Features
OpenSDA USB
K20 JTAG
Reset
SW3
SW2
K65 JTAG
K65 USB
Touch Pad
SD card slot
SDRAM
K65FN2M0VMI18
The following list summarizes the features of the K65F180M Tower MCU boards:
Tower compatible processor board K20 based OPENSDA circuit Four user-controlled status LEDs Two Capacitive Touch Pads and two mechanical push buttons Socket for Tower Plug-in (TWRPI, for instance a sensor board) Standalone high speed USB host and device function Potentiometer SDRAM connection MMA8451Q three-axis accelerometer Battery holder for 20 mm lithium battery (battery diameter 20 mm, thickness 25 mm) Board power select with 3.3 V or 1.8 V MCU operation MicroSD card slot OpenSDA USB
Figure 1. Front side of the TWR-K65F180M module
2 Freescale Semiconductor, Inc.
TWR-K65F180M User's Guide, Rev. 0, 05/2015
Battery Receptacle VBAT
Figure 2. Back side of the TWR-K65F180M module
1.2 Getting started
You can find a printed version of the Quick Start Guide in the TWR-K65F180M box that contains the list of recommended steps for getting started.
Contents
2
The TWR-K65F180M includes:
TWR-K65F180M for board assembly Quick Start Guide USB A to mini-B cable for debug interface and power supply CR2032 coin cell battery for VBAT power supply USB A to micro-B cable for K65FN2M0VMI18 USB interface
Freescale Semiconductor, Inc. 3
TWR-K65F180M User's Guide, Rev. 0, 05/2015
Hardware description
MK20DX128VFM5
K20 MCU
Digital
Accelerometer
MMA8451Q
SDRAM
2M x 32-bit
RESET
Button
JTAG
9-PIN
JTAG
19-PIN
ENET 1588
Header
MMC-SD
Card Slot
General Purpose Tower Plug-in
Headers
INTERRUPT
Buttons
POTENTIOMETER
5K Ohm
XTAL
8 MHz
LPC
Logic
TOUCH
Pads
Tower Elevator Expansion Connectors
I2S, SPI, I2C, ADC, USB, DAC, PWM, TMR, CAN, IRQs, GPIOs, UARTs, Flexbus, Ethernet
5 V
3.3 V
USB
MINI-B
5 V
USB
Micro-AB
5 V
3.3 V LDO
1.8 V LDO
TAMPER
Header
Freescale Devices
External Connectors
Interface Circuits
Power Devices
XTAL
16 MHz
GPIO
UART
SWD
FS USB
FS USB
SDHC
I2C
VBAT
JTAG
GPIO
ADC
JTAG
50 MHz
1588 TMR
HS USB
SDRAM BUS
TAMPER
RESET
LED
Yellow/Orange
Green/Blue
I2C/SPI/ADC/GPIO
sheet 8
sheet 4
XTAL
32.768 KHz
TSI
sheet 4
sheet 7
sheet 4
sheet 4
sheet 5 sheet 5
sheet 5sheet 5
sheet 5
sheet 5 sheet 5
sheet 6
sheet 6
sheet 6
sheet 6
sheet 6
sheet 7
sheet 7
sheet 7
sheet 7
sheet 4
sheet 7
BATTERY
Holder
3 V
sheet 4
MK65FN2M0VMI18
K65 MCU
RTC
3
The TWR-K65F180M is a Tower MCU Module featuring the K65FN2M0VMI18 – an ARM® Cortex®-M4F based MCU with 2 MB on-chip flash, 256 KB on-chip SRAM, SDRAM controller and dual USB controllers in a 169 pin MAPBGA package. It has a maximum core operating frequency of 180 MHz. It is intended for use in the Freescale Tower System but can operate as a stand-alone module. An on-board debug circuit, OPENSDA, provides the SWD debug interface and power supply input through a single USB mini-AB connector. The following sections describe the hardware in more detail. This figure shows a block diagram for the TWR-K65F180M.
Figure 3. TWR-K65F180M Block Diagram
3.1 K65F180M microcontroller
The TWR-K65F180M module features the K65FN2M0VMI18. The K65 microcontroller family is part of the Kinetis portfolio of devices built around an ARM Cortex-M4F core. Refer to the K65 Family Reference Manual (document K65P169M180SF5RMV2) for comprehensive information on the K65FN2M0VMI18 device. The key features of K65FN2M0VMI18 are as follows.
4 Freescale Semiconductor, Inc.
TWR-K65F180M User's Guide, Rev. 0, 05/2015
Table 1. K65FN2M0VMI18 key features
Feature
Description
Performance
Up to 180 MHz ARM Cortex-M4 based core with DSP instructions and
Single Precision Floating Point unit
Memory and memory expansion
2 MB program flash memory and 256 KB RAM FlexBus external bus interface and SDRAM controller
Analog modules
Two 16-bit SAR ADCs and two 12-bit DACs Four analog comparators (CMP) containing a 6-bit DAC and
programmable reference input
Voltage reference 1.2 V
Communication interfaces
Ethernet controller with MII and RMII interface to external PHY and
hardware IEEE 1588 capability
USB high-, full-, and low-speed On-the-Go with on-chip high speed
transceiver
USB full-, low-speed OTG with on-chip transceiver Two CAN, three SPI and four I2C modules  One low power UART and five standard UARTs Secure Digital Host Controller (SDHC) I2S module
Security
Tamper detect and secure storage Hardware random-number generator Supports DES, AES, SHA accelerator (CAU) Multiple levels of embedded flash security
Timers
Four periodic interrupt timers 16-bit low-power timer Two 16-bit low-power timer PWM modules Two 8-channel motor control / general purpose / PWM timers Two 2-channel quad decoder / general purpose timers Real-time clock
Human machine interface
Low-power hardware touch sensor interface (TSI) General-purpose input / output
3.2 Clocking
The Kinetis microcontrollers start up from an internal digitally controlled oscillator (DCO). The software can enable one or two external oscillators if required. The external oscillator for the Multipurpose Clock Generator (MCG) module can range from 32.768 kHz up to a 32 MHz crystal or ceramic resonator. The external oscillator for the Real-Time Clock (RTC) module accepts a 32.768 kHz crystal.
Two crystals are provided on-board for clocking the K65F180M device: a 16 MHz crystal as the main oscillator to clock the MCG module and a 32.768 kHz crystal for clocking the RTC module.
The on-chip HS USB PHY requires a 12, 16, or 24 MHz crystal with the main oscillator on EXTAL0 and XTAL0 pins.
3.3 System power
In standalone operation, the main power source for the TWR-K65F180M is derived from the 5.0 V input
from either the USB mini-B connector, J7, or the debugger header, J18, when a shunt is placed on jumper J21. An on-board low-dropout regulator provides either 3.3 V or 1.8 V supply from the 5.0 V
Freescale Semiconductor, Inc. 5
TWR-K65F180M User's Guide, Rev. 0, 05/2015
NOTE
input voltage based on the configuration of jumper J9. See sheet 5 of the TWR-K65F180M Schematics
OpenSDAv2
OpenSDA MCU K20DX128Vxx5
MSD Bootloader
OpenSDAv2 Application
UART TX/RX
GPIO
Serial Terminal
File System
SWD/JTAG
LED
PWM
USB Host
IDE
GPIO/ADC
SPI, GPIO
USB
Target
Processor
nRESET
UART RX/TX
(document TWR-K65F180M-SCH) for further details. When installed into a Tower System, the TWR-K65F180M can be powered from either an on-board
power source or from another power source in the assembled Tower System. If both the on-board and off-board power sources are available, the TWR-K65F180M will default to the off-board power source.
The 3.3 V or 1.8 V power supplied to the MCU is routed through a jumper, J1. The jumper shunt can be removed to allow the following:
1) Alternate MCU supply voltages to be injected.
2) Measurement of power consumed by the MCU.
3.4 Tamper module (Dryice) and Real-Time Clock supply
The Dryice tamper detection module and the Real-Time Clock (RTC) module on the K65FN2M0VMI18 have two modes of operation: system power up and system power down. During system power down, the tamper detection module and the RTC are powered from the backup power supply (VBAT) and electrically isolated from the rest of the MCU. The TWR-K65F180M provides a battery receptacle for a coin cell battery that can be used as the VBAT supply. The receptacle uses standard 20 mm diameter 3 V lithium coin cell batteries.
3.5 Serial and Debug Adapter version 2 (OpenSDAv2)
OpenSDAv2 is a serial and debug adapter circuit which includes an open-source hardware design, an open-source bootloader, and debug interface software. It bridges serial and debug communications between a USB host and an embedded target processor as shown in figure 4. The hardware circuit is based on a Freescale Kinetis K20 family MCU with 128 KB of embedded flash and an integrated USB controller. OpenSDAv2 comes preloaded with the CMSIS-DAP bootloaderan open-source mass storage device (MSD) bootloaderand the CMSIS-DAP interface firmware (also known as the mbed interface), which provides an MSD flash programming interface, a virtual serial port interface, and a CMSIS-DAP debug protocol interface. For more information on the OpenSDAv2 software, see
mbed.org and https://github.com/mbedmicro/CMSIS-DAP.
6 Freescale Semiconductor, Inc.
Figure 4. OpenSDAv2 high-level block diagram
TWR-K65F180M User's Guide, Rev. 0, 05/2015
Loading...
+ 12 hidden pages