The TWR-KV31F120M microcontroller module is
designed to work in standalone mode or as part of
the Freescale Tower system, a modular development
platform that enables rapid prototyping and tool
reuse through reconfigurable hardware. Take your
design to the next level and begin constructing your
Tower system today by visiting
www.freescale.com/tower for additional Tower
System microcontroller modules and compatible
peripherals.
The documents listed below should be referenced for more information on the Kinetis K Series, Tower
System, and MCU modules. These can be found in the documentation section of
www.freescale.com/kinetis.
•TWR-KV31F120M-SCH (schematics)
•KV31P100M120SF7RM (reference manual)
•Tower configuration tool
•Tower mechanical drawing
6Hardware description
The TWR-KV31F120M is a Tower MCU Module featuring the KV31F512VLL12—a Kinetis V Series
microcontroller in a 100 LQFP package with high speed run mode. It is intended for use in the Freescale
Tower System but can also operate alone. An on-board OpenSDA debug circuit provides a Serial Wire
Debug (SWD) interface and a power supply input through a single micro-USB connector.
The block diagram of the TWR-KV31F120M board is presented in the following figure:
The TWR-KV31F120M features the KV31F512VLL12 MCU. This 120 MHz microcontroller is part of
the Kinetis KV3x family and is implemented in a 100 LQFP package. The following table notes some of
the features of the KV31F512VLL12 MCU.
Table 1. Features of KV31F512VLL12
FeatureDescription
• 11 low-power modes with power and clock gating for optimal peripheral activity and recovery
times.
• Full memory and analog operation down to 1.71 V for extended battery life
Ultra low-power
Flash and SRAM
• Low-leakage wake-up unit with up to three internal modules and 8 pins as wake-up sources
in low-leakage stop (LLS) and very low-leakage stop (VLLS) modes
• Low-power timer for continual system operation in reduced power states
• 512-KB flash featuring fast access times, high reliability, and four levels of security protection
• 96 KB of SRAM
• No user or system intervention to complete programming and erase functions, and full
operation down to 1.71 V
Mixed-signal capability
Performance
Timing and control
Connectivity and
communications
Reliability, safety, and
security
• High-speed 16-bit ADC with configurable resolution
• Single or differential output modes for improved noise rejection
• 500-ns conversion time achievable with programmable delay block triggering
• Two high-speed comparators providing fast and accurate motor over-current protection by
driving PWMs to a safe state
• Optional analog voltage reference provides an accurate reference to analog blocks and
replaces external voltage references to reduce system cost
• 120-MHz ARM Cortex-M4F core with DSP and FPU instruction set, single cycle MAC, and
single instruction multiple data (SIMD) extensions
• Up to 16 channel DMA for peripheral and memory servicing with reduced CPU loading and
faster system throughput
• Crossbar switch enables concurrent multi-master bus accesses, increasing bus bandwidth
• Up to four FlexTimers (FTM) with a total of 20 channels
• Hardware dead-time insertion and quadrature decoding for motor control
• Four-channel 32-bit periodic interrupt timer (PIT) provides time base for RTOS task
scheduler, or trigger source for ADC conversion and programmable delay block
• Four UARTs:
– one UART that supports RS232 with flow control, RS485, and ISO7816
– two UARTs that support RS232 with flow control and RS485
– one low power UART (LPUART)
• Two DSPI modules and two I
• Cyclic redundancy check (CRC) engine validates memory contents and communication
data, increasing system reliability
• Independently-clocked COP guards against clock skew or code runaway for fail-safe
applications such as the IEC 60730 safety standard for household appliances
• External watchdog monitor drives output pin to safe state for external components in the
event that a watchdog timeout occurs
• Included in Freescale’s product longevity program, with assured supply for a minimum of 10
years after launch
Kinetis V Series MCUs start up from an internal digitally controlled oscillator (DCO). Software can enable
the main external oscillator (EXTAL0/XTAL0) if desired. The external oscillator/resonator can range from
32.768 KHz up to 32 MHz. An 8-MHz crystal is the default external source for the MCG oscillator inputs
(XTAL/EXTAL).
By connecting J25 (2-3) jumper enables other external clock sources for the KV31F512VLL12 include the
CLKIN0 signal, which can be provided through the TWR-ELEV module or pin 20 of TWRPI connector
J6.
6.3System power
When installed into a Tower System, the TWR-KV31F120M can be powered from either an on-board
source or from another source in the assembled Tower System.
In stand-alone operation, the main power source (5.0 V) for the TWR-KV31F120M module is derived
from the OpenSDA USB micro-B connector (J21). Two low-dropout regulators provide 3.3 V and 1.8 V
supplies from the 5.0 V input voltage. All of the user-selectable options can be configured using two
headers, J1 and J5. Refer to sheet 4 of the TWR-KV31F120M schematics for more details.
6.4Debug interface
There are two debug interface options provided: the on-board OpenSDA circuit and an external ARM
Cortex JTAG connector. The ARM Cortex JTAG connector (J19) is a standard 2x10-pin connector that
provides an external debugger cable access to the JTAG interface of the KV31F512VLL12. Alternatively,
the on-board OpenSDA debug interface can be used to access the debug interface of the
KV31F512VLL12.
6.4.1OpenSDA
An on-board K20DX128VFM5-based OpenSDA circuit provides a SWD debug interface to the
KV31F512VLL12. A standard USB A male to micro-B male cable (provided) can be used for debugging
via the USB connector (J21).
The OpenSDA interface also provides a USB to serial bridge. Drivers for the OpenSDA interface are
provided in the P&E Micro OpenSDA Tower Toolkit. These drivers and more utilities can be found online
at http://www.pemicro.com/opensda.
The Cortex Debug connector is a 20-pin (0.05") connector providing access to the SWD, JTAG, cJTAG,
and EzPort signals available on the KV31 device. The pinout and KV31 pin connections to the debug
connector (J19) are shown in Table 2.
An FXOS8700CQ 6-Axis Digital Sensor Accelerometer + Magnetometer is connected to the
KV31F512VLL12 MCU through an I2C interface (I2C0) and GPIO/IRQ signals (PTD0 and PTE24).
•Four user-controllable LEDs connected to GPIO signals (optionally isolated using jumpers):
— Yellow LED (D3) to PTE1
— Red LED (D4) to PTE0
— Orange LED (D6) to PTB19
— Green LED (D7) to PTD7
•RGB LED
6.7General Purpose Tower Plug-in (TWRPI) socket
The TWR-KV31F120M features a socket (J6 and J7) that can accept a variety of different Tower Plug-in
modules featuring sensors, RF transceivers, and other peripherals. The General Purpose TWRPI socket
provides access to I2C, SPI, IRQs, GPIOs, timers, analog conversion signals, TWRPI ID signals, reset,
and voltage supplies. The pinout for the TWRPI Socket is defined in Tab l e 3.
The following is a list of all of the jumper options on the TWR-KV31F120M. The default installed jumper
settings are indicated by white text on a black background
Table 4. TWR-KV31F120M jumper options
OptionJumperSettingDescription
Clock Input Source SelectionJ25
Debug Target PowerJ20
Tower Voltage Regulator
Input Selector
Board Power Selector J5
MCU VDD current measurementJ13
J1
1-2Connect main EXTAL to on-board 8 MHz crystal
Connect EXTAL to CLKIN0 signal on Primary
2-3
Elevator (B24)
ONConnect P5V_SDA to target power
OFFDisconnect P5V_SDA from target power
[Default] Connect P5V_TRG_SDA (5V from OpenSDA) or
1-2
P5_Elev to VREG_IN
[EXT]Connect USB0_VBUS from Primary Elevator (A57) to
2-3
VREG_IN
Connect on-board 3.3V regulator output (P3V3_REG) to
1-3
main board power line (V_BRD)
Connect on-board 1.8V regulator output (P1V8) to main