Home
TWR-K21F120M Tower Module – User's Manual
Contents
1. J4 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 12C SPI IRQs GPIOs timers analog conversion signals TWRPI ID signals reset and voltage supplies The pinout for the TWRPI Socket is defined in Table 3 Table 3 General Purpose TWRPI socket pinout JA J3 Pin Description Pin Description 1 5 V VCC 1 GND 2 3 3 V VCC 2 GND 3 GND 3 12C SCL 4 3 3 V VDDA 4 12C SDA 5 VSS Analog GND 5 GND 6 VSS Analog GND 6 GND 7 VSS Analog GND 7 GND 8 ADC Analog 0 8 GND 9 ADC Analog 1 9 SPI MISO 10 VSS Analog GND 10 SPI MOSI 11 VSS Analog GND 11 SPI SS 12 ADC Analog 2 12 SPI CLK 13 VSS Analog GND 13 GND 14 VSS Analog GND 14 GND 15 GND 15 GPIO GPIOO IRQ 16 GND 16 GPIO GPIO1 IRQ 17 ADC TWRPI ID O 17 UART UART RX or GPIO GPIO2 18 ADC TWRPI ID 1 18 UART UART TX or GPIO GPIO3 19 GND 19 UART UART CTS or GPIO GPIO4 Timer 20 Reset 20 UART UART_RTS or GPIO GPIO5 Timer TWR K21F120M Tower Module User s Manual Page 13 of 18 z freescale 6 12 USB The MK21FN1MOVMC12 features a full speed low speed USB module with OTG Host Device capability and built in transceiver The TWR K21F120M routes the USB D and D signals from the MCU via J24 jum
2. TWR K21F120M Tower Module User s Manual Page 2 of 18 lt freescale semiconductor 1 TWR K21F120M The TWR K21F120M microcontroller module is designed to work either in standalone 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 www freescale com tower for additional Tower System microcontroller modules and compatible peripherals For TWR K21F120M specific information and updates visit www freescale com TWR K21F120M Figure 1 Freescale Tower System Overview TWR K21F120M Tower Module User s Manual Page 3 of 18 p T freescale semiconductor 2 Contents The TWR K21F120M contents include TWR K21F120M board assembly 3 ft Ato micro B USB cable for debug interface and power or MK21FN1MOVMC12 USB interface CR2025 coin cell battery for VBAT power supply Quick Start Guide TWR K21F120M Features Tower compatible microcontroller module MK21FN1MOVMC12 MCU 120 MHz 1 MB Flash 128 KB RAM low power 121 MAPBGA package Dual role USB interface with Micro AB USB connector General purpose Tower Plug in TWRPI socket On board debug circuit MC9S08JM60 open source JTAG OSJTAG with virtual serial port Three axis accelerometer MMA8451Q Four 4 user controllable LEDs Two 2 user pushbutton switches for GPIO inter
3. 120M Tower Module User s Manual Page 6 of 18 A a 29 Z freescale semiconductor 6 Hardware description The TWR K21F120M is a Tower MCU Module featuring the MK21FN1MOVMC12 a Kinetis microcontroller in a 121 MAPBGA package with USB 2 0 full speed on the go OTG controllers and system security and tamper detection with a secure real time clock with independent battery supply It is intended for use in the Freescale Tower System but can also operate stand alone An on board OSJTAG debug circuit provides a JTAG interface and a power supply input through a single micro USB connector The block diagram of the TWR K21F120M board is presented in the following figure 6 1 Block Diagram Tower Elevator Expansion Connectors SDHC CS SPI C ADC USB PWM UARTs FTM FlexBus 32 768 KHz XTAL V GPIO Interrupts LLWU 3 3V Reset Micro USB Battery VBAT RTC Drylce Holder Tamper Drylce Tamper i Pins SDHC SIDKOZ TCO ESO SPI C ADC GPIO 2 General Purpose Tower Plug in TWRPI B Freescale Device E External Connectors Interface Circuits E Power Figure 4 Block Diagram of TWR K21F120M e TWR K21F120M Tower Module User s Manual Page 7 of 18 T oe z freescale semiconductor 6 2 Microcontroller The TWR K21F120M features the MK21FN1M0VMC12 MCU This 120 MHz microcontroller is part of the Kinetis K2x famil
4. NIMOVMC12 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 K21F120M provides a battery receptacle for a coin cell battery that can be used as the VBAT supply The receptacle can accept common 20 mm diameter 3 V lithium coin cell batteries 6 6 Debug Interface There are two debug interface options provided the on board OSJTAG circuit and an external ARM JTAG connector The ARM JTAG connector J1 is a standard 2x10 pin connector providing an external debugger cable with access to the JTAG interface of the MK21FN1MOVMC12 Alternatively the on board OSJTAG debug interface can be used to access the debug interface of the MK21FN1M0VMC12 6 7 OSJTAG An on board MC9S08JM60 based Open Source JTAG OSJTAG circuit provides a JTAG debug interface to the MK21FN1MOVMC12 A standard USB A male to micro B male cable provided can be used for debugging via the USB connector J2 The OSJTAG interface also provides a USB to serial bridge Drivers for the OSJTAG interface are provided in the P amp E Micro OSBDM OSJTAG Tower Toolkit These drivers and more utilities can be found online at http www pemicro com osbdm TWR K21F120M Tower Module User s Manual Page 10 of 18 ef FF freescale semiconductor 6 8 Cortex Debug Connector The Cortex Debug c
5. RD to TWRPI 3 V power GPT_VBRD Accelerometer IRQ connection J18 Connect PTBO to INT1 pin of accelerometer Connect PTB1to INT2 pin of accelerometer OFF Disconnect PTBO and or PTB1 from INT1 and or INT2 of accelerometer Potentiometer connection J12 Connect potentiometer to ADCO SE12 OFF Disconnect potentiometer from ADCO SE12 GPIO RESET OUT B Connection J13 Connect PTA14 to RESET OUT B signal Connect PTA17 to RESET OUT B signal Leave RESET OUT B signal disconnected LED connections J15 Connect PTD4 to green LED D5 Connect PTD5 to yellow LED D6 Connect PTD6 to red LED D8 Connect PTD7 to blue LED D9 Disconnect PTD 4 7 from associated LED TWR K21F120M Tower Module User s Manual Page 16 of 18 Kc N lt freescale semiconductor 8 Useful links gt www freescale com e www freescale com Kinetis e www freescale com TWR K21F120M e www freescale com codewarrior gt www iar com freescale gt www pemicro com e http www pemicro com osbdm e OSBDM OSJTAG Virtual Serial Toolkit P www segger com e http www segger com jlink flash download html Revision History Revision Date Description 1 0 July 2013 Initial Release TWR K21F120M Tower Module User s Manual Page 17 of 18 freescale semiconductor How to Reach Us Home Page www freescale com E mail suppor
6. ard supply V BRD OSJTAG 5V output P5V TRG USB connected to on board regulator input VREG IN VBUS signal on micro USB connector J19 connects to K21 VREGIN to allow stand alone USB operation VBUS signal from Tower Elevator connector connects to K21 VREGIN to allow USB operation with complete Tower System OSJTAG bootloader selection J9 V BRD power source Board Power Selector s VREG IN selector J11 6 8 TWR K21F120M Tower Module User s Manual Page 15 of 18 Le eg freescale semiconductor SDHC card J16 10K pulldown resistor is disconnected from CD DATA3 line ON 10K pulldown resistor is connected to CD DATA3 line to allow card detection USB ID connection J21 ON Connect PTD7 to USB ID pin Disconnect PTD7 from USB ID pin USB power enable J22 Connect PTC9 to USB power enable on power switch MIC2026 Disconnect PTC9 from USB power enable on power switch MIC2026 USB over current flag J23 Connect PTC8 to over current flag on power switch MIC2026 Disconnect PTC8 from over current flag on power switch MIC2026 USB option selector J24 USB micro J19 USB mini J14 on TWR SER General Purpose TWRPI V BRD power enable J10 Connect on board 1 8 V or 3 3 V supply V BRD to TWRPI 3 V power GPT_VBRD OFF Disconnect from board 1 8 V or 3 3 V supply V_B
7. e is not used directly on the TWR K21F120M Instead a subset of the FlexBus is connected to the Primary Connector so that the external bus can access devices on Tower peripheral modules Refer to the sheet 8 of the TWR K21F120M schematic for more details TWR K21F120M Tower Module User s Manual Page 14 of 18 freescale semiconductor 7 TWR K21F120M Jumper Options and Headers The following is a list of all the jumper options on the TWR K21F120M The default installed jumper settings are indicated by white text on a black background Table 5 TWR K21F120M Jumper Options and Headers Jumper Setting Description Connect on board 3 3 V or 1 8 V supply V_BRD to MCU VDD Connect K21 USB regulator output to MCU VDD Connect VBAT to on board 3 3 V or 1 8 V supply VBAT power source J7 Connect VBAT to the higher voltage 2 3 between MCU supply MCU PWR or coin cell supply VBATD Connect OSJTAG 5V output P5V TRG USB to JTAG port supports powering board from JTAG pod supporting 5V supply output Disconnect OSJTAG 5V output P5V TRG USB from JTAG port 1 2 MCU power connection J8 JTAG board power selection J6 OSJTAG bootloader mode OSJTAG firmware reprogramming Debugger mode Connect K21 USB regulator output VOUT 3V3 to on board supply V BRD Connect 3 3 V on board regulator output P3V3 to on board supply V BRD Connect 1 8 V on board regulator output P1V8 to on bo
8. expenses and reasonable attorney fees arising out of directly or indirectly any claim of personal injury or death associated with such unintended or unauthorized use even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part lt freescale semiconductor Freescale the Freescale logo CodeWarrior and Kinetis are trademarks of Freescale Semiconductor Inc Reg U S Pat amp Tm Off Tower is are trademark s of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2013 All rights reserved TWR K21F120M UM Rev 1 0 07 2013 TWR K21F120M Tower Module User s Manual Page 18 of 18
9. instruction set single cycle MAC and single instruction multiple data SIMD extensions Upto four channel DMA for peripheral and memory servicing with reduced CPU loading and faster system throughput Cross bar switch enables concurrent multi master bus accesses increasing bus bandwidth Independent flash banks allowing concurrent code execution and firmware updating with no performance degradation or complex coding routines TWR K21F120M Tower Module User s Manual Page 8 of 18 Bi T e freescale semiconductor Timing and Control Three FlexTimers with a total of 12 channels Hardware dead time insertion and quadrature decoding for motor control Carrier modulator timer for infrared waveform generation in remote control applications Four channel 32 bit periodic interrupt timer provides time base for RTOS task scheduler or trigger source for ADC conversion and programmable delav block Connectivitv and Communications Full Speed USB Device Host On The Go with device charge detect capabilitv Optimized charging current time for portable USB devices enabling longer batterv life USB low voltage regulator supplies up to 120 mA off chip at 3 3 volts to power external components from 5 volt input Six UARTs o one UART supports RS232 with flow control RS485 1507816 IrDA and CEA709 1 B LON o five UARTs support RS232 with flow control and RS485 One Inter IC Sound 12S serial
10. interface for audio system interfacing Two DSPI modules and two I2C modules Secured digital host controller SDHC A multi function external bus interface called the FlexBus interface controller capable of interfacing to slave only devices Reliability Safety and Security Hardware Encryption co processor for secure data transfer and storage Faster than software implementations and with minimal CPU loading Supports a wide variety of algorithms DES 3DES AES MD5 SHA 1 SHA 256 System security and tamper detection with secure real time clock RTC and independent battery supply Secure key storage with internal external tamper detection for unsecured flash temperature clock and supply voltage variations and physical attack detection Memory protection unit provides memory protection for all masters on the cross bar switch increasing software reliability 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 TWR K21F120M Tower Module User s Manual Page 9 of 18
11. o any products herein Freescale Semiconductor makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and all liability including without limitation consequential or incidental damages Typical parameters that may be provided in Freescale Semiconductor data sheets and or specifications can and do vary in different applications and actual performance may vary over time All operating parameters including Typicals must be validated for each customer application by customer s technical experts Freescale Semiconductor does not convey any license under its patent rights nor the rights of others Freescale Semiconductor products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application Buyer shall indemnify and hold Freescale Semiconductor and its officers employees subsidiaries affiliates and distributors harmless against all claims costs damages and
12. of FF freescale semiconductor 6 3 Clocking The Kinetis MCUs start up from an internal digitallv controlled oscillator DCO Software can enable the main external oscillator EXTALO XTALO if desired The external oscillator resonator can range from 32 768 KHz up to a 32 MHz An 8 MHz crystal is the default external source for the MCG oscillator inputs XTAL EXTAL A 32 768 KHz crystal is connected to the RTC oscillator inputs by default By populating isolation resistors other external clock sources for the MK21FN1MOVMC12 include the CLKINO signal that can be provided through the TWR ELEV or pin 20 of TWRPI connector J3 6 4 System Power When installed into a Tower System the TWR K21F120M 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 K21F120M module is derived from either the OSJTAG USB mini B connector J2 or the MK21FN1M0VMC12 USB micro AB connector J19 Two low dropout regulators provide 3 3 V and 1 8 V supplies from the 5 0 V input voltage Additionally the 3 3 V regulator built into the MK21FN1M0VMC12 MCU can be selected to power the 3 3 V bus All the user selectable options can be configured using two headers J11 and J17 Refer to sheet 5 of the TWR K21F120M schematics for more details 6 5 DryIce and RTC VBAT The Drylce tamper detection module and the Real Time Clock RTC module on the MK21F
13. onnector is a 20 pin 0 05 connector providing access to the SWD JTAG cJTAG EzPort signals available on the K21 device The pinout and K21 pin connections to the debug connector J1 are shown in Table 2 Table 2 Cortex Debug connector Pin Function TWR K21F120M Connection GND 4 Te SWELK PTAUSCO CTS b FTMO CHS ITAG C amp L SWD ONE CK GND 6 TD07 SWO PTAZSCO TXFIMO CH7JTAG DO TRACE SWOJEZ DO IE Ez 8 tor PUASCO RA FTMO CHG JTAG DI EZP DI 9 GND Detect PTM FIMO CHA MS NMI b EZP C5 b 15 GND GND TWR K21F120M Tower Module User s Manual Page 11 of 18 T lt freescale semiconductor 6 9 Accelerometer An MMA84510 digital accelerometer is connected to the MK21FN1MOVMC12 MCU through an I2C interface I2C1 and GPIO IRQ signals PTBO and PTB1 6 10 Potentiometer Pushbuttons LEDs The TWR K21F120M also features apotentiometer connected to an ADC input signal ADCO SE12 two pushbutton switches SW2 and SW3 connected to PTC7 and PTC6 respectively four user controllable LEDs connected to GPIO signals optionally isolated using jumpers Green LED D5 to PTD4 Yellow LED D6 to PTD5 Orange LED D8 to PTD6 Blue LED D9 to PTD7 O O O 0 TWR K21F120M Tower Module User s Manual Page 12 of 18 T Po es z freescale semiconductor 6 11 General Purpose Tower Plug in TWRPI Socket The TWR K21F120M features a socket J3 and
14. per either to the on board micro AB USB connector J19 or to the mini AB USB connector J14 on the TWR SERIAL tower board A power supply switch with an enable input signal and over current flag output signal is used to supply power to the USB connector when the MK21FN1MOVMC12 is operating in host mode Port pin PTC8 is connected to the flag output signal and port pin PTC9 is used to drive the enable signal Both PTC8 and PTC9 port pins can be isolated with jumpers J23 and J22 respectively if needed 6 13 Secure Digital Card Slot A Secure Digital SD card slot is available on the TWR K21F120M connected to the SD Host Controller SDHC signals of the MCU This slot will accept SD memory cards Refer to the Table 4 SD Card Socket Connection Table for the SDHC signal connection details Table 4 SD Card Socket Connection Pin Function TWR K21F120M Connection 4 vo 33Vbewdsupy BRE S SDHCODc PTE2 LLWU P1 ADED DP2 ADCI SEGA SPIL SCKJUARTI CTS SDHCO DOAN TRACE D2 s v E SDHCO DO DEER PO ADCI SESA SPIL SOUT UARTI RX SDHCO DO TRACE D3 I2C1 SCL SPI1 SI 8 sbHco Di PTEWADCI us PCSIUARTI DES OR CLKOUT I2C1_SDA RTCCIKOUT S sbHco p PTES SPI1_PcS2 UARTS RXDHCO om 00000 6 14 External Bus Interface FlexBus The device features a multi function external bus interface called the FlexBus interface controller capable of interfacing to slave only devices The FlexBus interfac
15. rupts One 1 user pushbutton switch for MCU reset Potentiometer Independent battery operated power supply for Real Time Clock RTC and tamper detection modules SD Card slot TWR K21F120M Tower Module User s Manual Page 4 of 18 freescale semiconductor 4 Getto Know the TWR K21F120M JM60 Bootloader JTAG VBAT options JM60 BDM Enable General Purpose TWRPI Plug In P o i OSS DA onoma Power OSJTAG 086 TO dm tl TE Micro USB ime fe T Potentiometer Pose ere eee Regulator option selector VREF OUT a a RESET LEDs K21 Micro USB Accelerometer RE DEEM OC RECON DA d ZOE EE c ac tc Figure 2 Front side of TWR K21F120M module Board power selection SW3 TWRPI devices not shown SW2 Tamper pins USB option selector TWR K21F120M Tower Module User s Manual Page 5 of 18 T le Z freescale semiconductor Battery Receptacle SD Card Receptacle SECONDARY TTT Figure 3 Back side of TWR K21F120M 5 Reference Documents The documents listed below should be referenced for more information on the Kinetis family Tower System and MCU Modules These can be found in the documentation section of http www freescale com TWR K21F120M or http www freescale com kinetis e TWR K21F120M SCH Schematics e TWR K21F12OM PWA Design Package e K21P121M120SF5RM Reference Manual e Tower Configuration Tool e Tower Mechanical Drawing TWR K21F
16. t freescale com USA Europe or Locations Not Listed Freescale Semiconductor Technical Information Center CH370 1300 N Alma School Road Chandler Arizona 85224 1 800 521 6274 or 1 480 768 2130 support freescale com Europe Middle East and Africa Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen Germany 44 1296 380 456 English 46 8 52200080 English 49 89 92103 559 German 33 1 69 35 48 48 French support freescale com Japan Freescale Semiconductor Japan Ltd Headquarters ARCO Tower 15F 1 8 1 Shimo Meguro Meguro ku Tokyo 153 0064 Japan 0120 191014 or 81 3 5437 9125 support japan freescale com Asia Pacific Freescale Semiconductor China Ltd Exchange Building 23F No 118 Jianguo Road Chaoyang District Beijing 100022 China 86 10 5879 8000 support asia freescale com For Literature Requests Only Freescale Semiconductor Literature Distribution Center 1 800 441 2447 or 303 675 2140 Fax 303 675 2150 LDCForFreescaleSeminconductor hibbertgroup com Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document Freescale Semiconductor reserves the right to make changes without further notice t
17. vi freescale TWR K21F120M Tower Module User s Manual Rev 1 0 Freescale Semiconductor Inc Bi T Tp freescale semiconductor Table of Contents 1 41759 024 ET a Anaea nia 3 2 CONTENTS 4 3 TWR K 21F120M Features a ananman 4 4 Getto Know the TWRE K21IE120WL E 5 5 Reference Document anui rini itaq a A Sa ARRAES a iA aT aAa Ri a 6 6 Hardware descrIDUOR uns oen anis daa iA a da DURER AEN 7 6 T BIOCK KEE EE 7 6 2 MICFOCODELTOIIGE iate deditos cte tee es caede De ea e eet ie ve dese tee bd eee 8 6 3 Red B 10 0A SYSEM POWE EE 10 6 5 Drylc and RTG AN WEE 10 6 6 Debug Interface 11 insiru T 10 HF SA cit salt hc A cca DONAR OR GRON RUEDA ae ed DUANE RUND 10 6 8 Cortex Debug CODHeCEtOE ocm inte green 11 6 9 Acceleromete sie ii a tad entia e uL ecc uL UNE aM ue DoD LN DI IN ced 12 6 10 Potentiometer Pushbuttons LEDS eee ar arana nanna inta tn tn tata te tata ta teta rna span ata 12 6 11 General Purpose Tower Plug in TWRPI Socket esent ttnntnnnnn 13 6 12 U e GP 14 6 13 Secure Digital Card Slot sisien rg 14 6 14 External Bus Interface FlexBus esee tee aa i ia 14 7 TWR K21F120M Jumper Options and Headers eese etate nnne 15 8 Usef l NKS sistent a 17
18. y and is implemented in a 121 MAPBGA package The following table notes some of the features of the MK21FN1M0VMC12 MCU Table 1 Features of MK21FN1M0VMC12 Feature Description Ultra low power 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 Low leakage wake up unit with up to six internal modules and sixteen pins as wake up sources in low leakage stop LLS very low leakage stop VLLS modes Low power timer for continual system operation in reduced power states Flash and SRAM 1 MB flash featuring fast access times high reliability and four levels of security protection 128 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 Two high speed 16 bit SAR ADCs with configurable resolution Single or differential output modes for improved noise rejection 500 ns conversion time achievable with programmable delay block triggering Three 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 Two 12 bit DACs Performance 120 MHz ARM Cortex M4 core with DSP and FPU
Download Pdf Manuals
Related Search
Related Contents
Setup and Quick Reference Guide Beruf - Deutsches Institut für Erwachsenenbildung Sanyo MDF-U500VXC User's Manual Samsung DVD-HD593 User Manual Baumatic BRCIF5050 refrigerator Mode d`emploi GM NetScreen-ISG 2000 User's Guide 取扱説明書 - オーム電機 Price Book Professional Breath Alcohol Analyzer Copyright © All rights reserved.
Failed to retrieve file