Home

TWR-K21D50M Tower Module User`s Manual

image

Contents

1. Adds features and functionality to your designs e Interchangeable with other peripheral modules and compatible with other controller processor modules e Examples include serial interface e Approximately 3 5 H x 3 5 W x 3 5 D when fully assembled Board Connectors memory Wi Fi graphical LCD motor control audio Xtrinsic e Four card edge connectors sensing and high precision e Uses PCI Express connectors analog modules x16 90 mm 3 5 long 164 pin Figure 1 Freescale Tower System Overview TWR K21D50M Tower Module User s Manual Page 3 of 16 e 2 Sa 7 freescale 2 Contents The TWR K21D50M contents include e TWR K21D50M board assembly e 3ftAto micro B USB cable for debug interface and power or MK21DN512VMBS5 USB interface e CR2025 coin cell battery for VBAT power supply e Quick Start Guide 3 TWR K21D50M Features e Tower compatible microcontroller module e MK21DN512VMB5 MCU 50 MHz 512 KB Flash 64 KB RAM low power 121 MAPBGA package e Dual role USB interface with Micro AB USB connector e General purpose Tower Plug in TWRPI socket e On board debug circuit MC9SO8JM60 open source JTAG OSJTAG with virtual serial port e Three axis accelerometer MMA8451Q e Four 4 user controllable LEDs e Two 2 user pushbutton switches for GPIO interrupts e One 1 user pushbutton switch for MCU reset e Potentiometer e Independent battery operated power supply for Real Time Clock RT
2. Rev 1 0 08 2012 All rights reserved TWR K21D50M Tower Module User s Manual Page 16 of 16
3. external oscillator EXTALO XTALO 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 A 32 768 kHz crystal is connected to the RTC oscillator inputs by default By populating isolation resistors other external clock sources for the K21DN512VMBS5 include the CLKINO signal which can be provided through the TWR ELEV module or pin 20 of TWRPI connector J3 6 4 System Power When installed into a Tower System the TWR K21D50M 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 K21D50M module is derived from either the OSJTAG USB micro B connector J2 or the K21DN512VMB5 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 K21DN512VMB5 MCU can be selected to power the 3 3 V bus All of the user selectable options can be configured using two headers J11 and J17 Refer to sheet 5 of the TWR K21D50M schematics for more details DryIce and RTC VBAT The Drylce tamper detection module and the Real Time Clock RTC module on the K21DN512VMB5 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 powe
4. 50 MHz ARM Cortex M4 core with DSP 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 Crossbar switch enables concurrent multi master bus accesses increasing bus bandwidth Independent flash banks allow concurrent code execution and firmware updating with no performance degradation or complex coding routines TWR K21D50M Tower Module User s Manual Page 8 of 16 P cA a 2 freescale 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 delay block Connectivity and Communications Full Speed USB Device Host On The Go with device charge detect capability Optimized charging current time for portable USB devices enabling longer battery life USB low voltage regulator that supplies up to 120 mA off chip at 3 3 volts to power external components from 5 volt input Four UARTs o one UART that supports RS232 with flow control RS485 ISO7816 IrDA and CEA709 1 B LON o three UARTs that support RS232 with flow control and RS485 One Inter IC Sou
5. 50M PWA Design Package e K21P81M50SF4RM Reference Manual e Tower Configuration Tool e Tower Mechanical Drawing TWR K21D50M Tower Module User s Manual Page 6 of 16 Pap Psd 7 freescale 6 Hardware description The TWR K21D50M is a Tower MCU Module featuring the K21DN512VMB5 a Kinetis K Series microcontroller in a 121 MAPBGA package with a USB 2 0 full speed on the go OTG controller system security and tamper detection and a secure real time clock with an 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 K21D50M board is presented in the following figure 6 1 Block Diagram Tower Elevator Expansion Connectors 2S SPI IC ADC USB PWM UARTs FTM 33V 1 8 V 8 MHz XTAL 32 768 kHz XTAL MENE regulator q N i n GPIO Interrupts LLWU uo VDD Battery VBAT RTC Drylce Tamper Drylce Tamper Receptacle Pins SPI IC ADC GPIO O ADC OOo General Purpose Tower Plug in Potentiometer TWRPI CJ Freescale Device ial External Connectors Interface Circuits CJ Power Figure 4 Block Diagram of TWR K21D50M TWR K21D50M Tower Module User s Manual Page 7 of 16 e o freescale 6 2 Microcontroller The TWR K21D50M features the K21D
6. C and tamper detection modules NOTE The TWR K21D50M contains some components that are reserved for future revisions of this board and are not functional with the MK21DN512VMB5 MCU TWR K21D50M Tower Module User s Manual Page 4 of 16 Po 2 7 freescale 4 Get to Know the TWR K21D50M JTAG Power OSJTAG Micro USB Regulator option selector RESET K21 Micro USB 001111777 Board power selection Pd PSV_USB VBAT options JM60 BDM JM60 Bootloader Enable General Purpose TWRPI Plug In PRIMARY p44 J sd Te3 NT Potentiometer rd e AARAR AMARA A A A J do d Accelerometer KAPPA SPIOTWR K21D50M E Kei USB PWR 2012 FREESGALE Tamper pins Bee SW3 SW2 Figure 2 Front side of TWR K21D50M module TWRPI devices not shown TWR K21D50M Tower Module User s Manual Page 5 of 16 N freescale Battery Receptacle eal oS N i o Gi S o lt n o R230 0 0 R231 0 0 R233 0 6 ng Ra OF O00 6 u6 JPi TPL 009 00n T3 R2367 P ia PSG hp 70 27405 REV XI E i Bc REY A a mi Qi elo SECONDARY c222 Figure 3 Back side of TWR K21D50M 5 Reference Documents 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 http www freescale com TWR K21D50M r http www freescale com kinetis e TWR K21D50M SCH Schematics e TWR K21D
7. N512VMB5 MCU This 50 MHz microcontroller is part of the Kinetis K2x family and is implemented in a 121 MAPBGA package The following table notes some of the features of the K21DN512VMB5 MCU Table 1 Features of MK21DN512VMB5 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 and very low leakage stop VLLS modes Low power timer for continual system operation in reduced power states Flash and SRAM 512 KB flash featuring fast access times high reliability and four levels of security protection 64KB of SRAM No user or system intervention to complete programming and erase functions and full operation down to 1 71 V Mixed signal capability 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 Performance
8. anual Page 12 of 16 e t2 7 freescale 7 TWR K21D50M Jumper Options and Headers The following is a list of all of the jumper options on the TWR K21D50M The default installed jumper settings are indicated by giitee ty ame au m DE Tol O oF Tol 20 Ul ATO Table 4 TWR K21D50M Jumper Options 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 Vor 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 ON to JTAG port supports powering board from JTAG board power selection J6 JTAG pod supporting 5V supply output Disconnect OSJTAG 5V output P5V_TRG_USB from JTAG port ON OSJTAG bootloader mode OSJTAG firmware OSJTAG bootloader selection J9 reprogramming Debugger mode 1 2 MCU power connection J8 2 3 1 2 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 board 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 t
9. e t2 freescale TWR K21D50M Tower Module User s Manual Rev 1 0 TWR K21D50M Tower Module User s Manual Page 1 of 16 e t2 eo 7 freescale Table of Contents 1 TWR K21D50M sini cecutnesancantasntwenifasasiannedadminnaaiaeontededminieeasiiineduindnruthansnhedateiniashlbennedatedunesastanbtandeinsisaguinnnse 3 2 CONN GNG NAKABAKBAKAN aaa reaa aaan aa Ab ea nannan Piane sadaa sn iarann 4 3 TWR K21D50M Features KK IDAAN KANA 4 4 Getto Know the TWR K21D50M sssssssssssssusussnnunuununnnnunnnnnnnnnnnnnnunnnnnnnnnnnnnnunannnnnnnannnannunnnnnnnnnnnnnn an nnnnna 5 5 Reference DOCU MGI Laan NEK AINA IRAAKA INN NAKAKA DAARNAAANASAA 6 6 Hardware d8 IP HON ANAKAN 7 6A Block Diagram nana AGANG ANG GANG NAKAGAT a ee 7 6 2 Microcontroll ET a panakaw aA AN AN ANAKAN DY AKA A NRAN N 8 6 3 Clockingapanaaa NANANA aaah ae en ae NANG BANG BARAN elec eee ee 10 O ACSVSUCI POW CF aaa A aaa Damang nasaan adrat Naa na absentia E A gng naa 10 6 5 Debug Intended NAN ANAND GANAN AN KNANG aA ARENA NAA 10 ALO AA 10 6 7 Accelerometer XKaaaaaaaa aaa ada aakala ha an aaa aaa taeda 11 6 8 Potentiometer Pushbuttons LEDS 1 1 110111 1 maaaaaaaamannaammnannnnaanannanaa nnmn 11 6 9 General Purpose Tower Plug in TWRPI SOCKet ceseessesssessesssesseseestecseesseestesseeeneesteeateateeateateeneesteeaneeaeensees 12 6 10 UNS ince tas cts eset dun cena a dap taba tng ae nnaadno nd aaa dan a A 12 7 TWR K21D50M Jumper Options and HeaderS sss ssss
10. elerometer IRQ connection J18 Potentiometer connection J12 LED connections J15 GPIO RESET OUT B Connection TWR K21D50M Tower Module User s Manual Page 14 of 16 e 2 So 7 freescale 8 Useful links gt www freescale com e freescale com Kinetis e freescale com TWR K21D50M e freescale com codewarrior CodeWarrior v10 2 or later gt www iar com freescale gt www pemicro com e http www pemicro com osbdm e OSBDM OSJTAG Virtual Serial Toolkit gt www segger com e http www segger com jlink flash download html Revision History Revision Date Description 1 0 July 2012 Initial release TWR K21D50M Tower Module User s Manual Page 15 of 16 freescale How to Reach Us Home Page freescale com Web Support freescale com support Information in this document is provide software implementers to use Freescal d solely to enable system and e products There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits document Freescale reserves the right to make cl based on the information in this hanges without further notice to any products herein Freescale makes no warranty representation or guarantee regarding the suitability of its products or any particular purpose nor does Freescale assume any liability arising out of the application or
11. nd I S serial interface for audio system interfacing Two DSPI modules and two I C modules Reliability Safety and Security Hardware encryption co processor for secure data transfer and storage Faster than software implementations 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 crossbar 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 K21D50M Tower Module User s Manual Page 9 of 16 A 2 Go freescale 6 3 Clocking Kinetis K Series MCUs start up from an internal digitally controlled oscillator DCO Software can enable the main
12. o K21_VREGIN to allow USB operation with complete Tower System Connect PTD7 to USB ID pin Disconnect PTD7 from USB ID pin V_BRD power source J17 Board Power Selector VREG IN Selector J11 USB ID connection J21 TWR K21D50M Tower Module User s Manual Page 13 of 16 freescale Jumper Setting Description Connect PTC9 to USB power enable on USB Powerenable 122 ON power switch MIC2026 OFF Disconnect PTC9 from USB power enable on power switch MIC2026 Connect PTC8 to over current flag on power ON f USB over current flag J23 SWEN AOS Disconnect PTC8 from over current flag on power switch MIC2026 Connect on board 1 8 V or 3 3 V supply V_BRD to TWRPI 3 V power GPT VBRD Disconnect on board 1 8 V or 3 3 V supply V_BRD from TWRPI 3 V power GPT VBRD Connect PTBO to INT1 pin of accelerometer General Purpose TWRPI V_BRD power enable J10 Connect PTB1 to INT2 pin of accelerometer Disconnect PTBO and or PTB1 from INT1 and or INT2 of accelerometer Connect potentiometer to ADCO SE12 Disconnect potentiometer from ADCO SE12 Connect PTD4 to green LED D5 Connect PTDS to yellow LED D6 Connect PTD6 to red LED D8 Connect PTD7 to blue LED D9 Disconnect PTD 4 7 from associated LED Connect PTA14 to RESET_OUT_B signal J13 2 3 Connect PTA17 to RESET_OUT_B signal OFF Leave RESET_OUT_B signal disconnected Acc
13. own in Table 2 Table 2 Cortex Debug connector Pin Function TWR K21D50M Connection a TCK SWELK PTAO UARTO_CTS_b FTMO_CHS ITAG_CLK SWD_CLK EZP_CIK GND 16 100 7SWO PTAZ UARTO_TX FTMO_CH7 ITAG_TDO TRACE_SWO EZPDO SS lie eo O o s mo PTA UARTO RX ETMO cHe TAG Toez BI o GNDDetect PTAA FTMO_CH1 MS NMI_b EZPCSb O OOOO GND GND 6 7 Accelerometer An MMA8451Q digital accelerometer is connected to the K21DN512VMB5 MCU through an I C interface 12C1 and GPIO IRQ signals PTBO and PTB1 6 8 Potentiometer Pushbuttons LEDs The TWR K21D50M also features a potentiometer 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 o Green LED D5 to PTD4 o Yellow LED D6 to PTD5 o Red LED D8 to PTD6 o Blue LED D9 to PTD7 TWR K21D50M Tower Module User s Manual Page 11 of 16 e t2 7 freescale 6 9 General Purpose Tower Plug in TWRPI Socket The TWR K21D50M features a socket J3 and 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 pe 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 socke
14. r supply VBAT and electrically isolated from the rest of the MCU The TWR K21D50M provides a battery receptacle for a coin cell battery that can be used as the VBAT supply This receptacle can accept common 3 V lithium coin cell batteries that are 20 mm in diameter 6 5 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 that provides an external debugger cable access to the JTAG interface of the K21DN512VMBS5 Alternatively the on board OSJTAG debug interface can be used to access the debug interface of the K21DN512VMB5 6 6 OSJTAG An on board MC9508JM60 based Open Source JTAG OSJTAG circuit provides a JTAG debug interface to the K21DN512VMBS5 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 PRE Micro OSBDM OSJTAG Tower Toolkit These drivers and more utilities can be found online at http www pemicro com osbdm TWR K21D50M Tower Module User s Manual Page 10 of 16 e 2 oe freescale Cortex Debug Connector The Cortex Debug connector is a 20 pin 0 05 connector providing access to the SWD JTAG cJTAG and EzPort signals available on the K21 device The pinout and K21 pin connections to the debug connector J1 are sh
15. sssssusussnnunuununnnnunnnnunnnnannnnunnnnnnnnnnnnnnnnnnnnnnnna 13 8 Useful AA neni a 15 TWR K21D50M Tower Module User s Manual Page 2 of 16 Po ps gt freescale 1 TWR K21D50M The TWR K21D50M 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 K21D50M specific information and updates visit www freescale com TWR K21D50M Tower Plug In TWRPI Socket e Adds features and functionality e Can accept TWRPIs such as sensors and radios Controller Module e Tower MC board Secondary Elevator e Works stand alone or in Tower System e Features integrated debugging interface for easy programming and run control via standard USB cable e Additional and secondary serial and expansion bus signals e Standardized serial assignments e Mounting holes and expansion connectors for side mounting peripheral boards Primary Elevator e Common serial and expansion bus signals e Two 2x80 connectors for easy signal access and side mounting board e Power regulation circuitry e Standardized signal assignments e Mounting holes Peripheral Module e
16. t pinout J4 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 6 10 USB The K21DN512VMB5 features a full speed low speed USB module with OTG Host Device capability and built in transceiver The TWR K21D50M routes the USB D and D signals from the K21DN512VMB5 MCU directly to the on board micro USB connector J19 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 K21DN512VMBS5 is operating in host mode PTC8 is connected to the flag output signal and 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 TWR K21D50M Tower Module User s M
17. 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 data sheets and or specifications can and do vary in different applications and ac All operating parameters including Tyl ual performance may vary over time picals must be validated for each customer application by customer s technical experts Freescale does not convey any license under its patent rights nor the rights of others Freescale sells products pursuant to standard terms and conditions of sale which can be found at the following address http www reg net v2 webservices Freescale Docs TermsandConditions htm Freescale the Freescale logo Altivec ColdFire C_Ware Energy Efficient Sol C 5 CodeTest CodeWarrior utions logo Kinetis mobileGT PowerQUICC Processor Expert QorlQ Qorriva StarCore Symphony and VortiQa are trademarks of Freescale S emiconductor Inc Reg U S Pat amp Tm Off Airfast BeeKit BeeStack ColdFire CoreNet Flexis MadniV MXC Platform in a Package QorlQ Qonverge QUICC Engine Ready Play SafeAssure SMARTMOS TurboLink Vybrid and Xtrinsic are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners e ao lt freescale Freescale Semiconductor Inc 2012 TWR K21D50M UM

Download Pdf Manuals

image

Related Search

Related Contents

User`s Manual      MODE D`EMPLOI  Am186™CC/CH/CU Microcontrollers User`s Manual  354 100-22 - heidenhain  EK Water Blocks EK-UNI  as a PDF - concurrency and mobility group  Concordia University  

Copyright © All rights reserved.
Failed to retrieve file