Home

TWR-K40X256 User`s Manual

image

Contents

1. Pin Description Pin Description 1 5V VCC 1 GND 2 3 3 V VCC 2 GND 3 GND 3 I2C SCL 4 3 3V VDDA 4 I2C 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 GPIO GPIO2 18 ADC TWRPI ID 1 18 GPIO GPIO3 19 GND 19 GPIO GPIO4 Timer 20 Reset 20 GPIO GPIO5 Timer 2 9 Touch Interface The touch sensing input TSI module of the Kinetis MCUs provides capacitive touch sensing detection with high sensitivity and enhanced robustness Each TSI pin implements the capacitive measurement of an electrode The TWR K40X256 provides two methods for evaluating the TSI module There are four individual electrodes on board the TWR K40X256 that simulate pushbuttons Additionally twelve TSI signals are connected to a Touch Tower Plug in TWRPI socket that can accept Touch TWRPI daughter cards that may feature keypads rotary dials sliders etc The pinout for the Touch TWRPI socket is defined in Table 4 Refer to Table 6 I O Connectors and Pin Usage Table for the specific K40 pin connections to the Touch TWRPI socket Table 4 Touch TWRPI socket pinout
2. semiconductor 5 Tower Elevator Connections TWRPI ID1 J7 Pin 18 ADC1_DMO0 ADCO_DM3 The TWR K40X256 features two expansion card edge connectors that interface to the Primary and Secondary Elevator boards in a Tower system The Primary Connector comprised of sides A and B and Secondary Connector comprised of sides C and D are both utilized by the TWR K40X256 Table 7 provides the pinout for the Primary Connector Table 8 provides the pinout for the Secondary Connector Table 7 TWR K40X256 Primary Connector Pinout Pin Side B Pin Side A Name Usage Name Usage Bi 5V 5 0V Power A1 5V 5 0V Power B2 GND Ground A2 GND Ground B3 3 3V 3 3V Power A3 3 3V 3 3V Power B4 ELE PS SENSE Elevator Power Sense A4 3 3V 3 3V Power B5 GND Ground A5 GND Ground B6 GND Ground A6 GND Ground B7 SDHC CLK SPI1 CLK PTE2 A7 SCLO PTC10 B8 SDHC D3 SPI1 CS1 b A8 SDAO PTC11 B9 SDHC D3 SPI1 CSO b PTE4 A9 GPIO9 CTS1 PTC19 B10 SDHC CMD SPI1 MOSI PTE1 A10 GPIO8 SDHC D2 PTE5 B11 SDHC DO SPI1 MISO PTE3 A11 GPIO7 SD WP DET PTE27 B12 ETH COL A12 ETH CRS B13 ETH_RXER A13 ETH_MDC B14 ETH_TXCLK A14 ETH_MDIO B15 ETH TXEN A15 ETH RXCLK B16 ETH TXER A16 ETH RXDV B17 ETH TXD3 A17 ETH RXD3 B18 ETH TXD2 A18 ETH RXD2 B19 ETH TXD1 A19 ETH RXD1 B20 ETH TXDO A20 ETH RXDO B21 GPIO1 RTS1 PTC18 A21 SSI MCLK PTA17 B22 GPIO2
3. Pin Description 5V VCC 3 3 V VCC Electrode 0 3 3V VDDA Electrode 1 VSS Analog GND NIAJ BY WW NM re Electrode 2 TWR K40X256 Tower Module User s Manual Page 13 of 21 Pp 2 freescale semiconductor Pin Description 8 Electrode 3 9 Electrode 4 10 Electrode 5 11 Electrode 6 12 Electrode 7 13 Electrode 8 14 Electrode 9 15 Electrode 10 16 Electrode 11 17 ADC TWRPI ID O 18 ADC TWRPI ID 1 19 GND 20 Reset 2 10 Segment LCD The segment LCD signals on the K40 devices are multiplexed with many other interface signals including several TSI signals that are accessible on the Touch TWRPI socket Therefore the Touch TWRPI socket on the TWR K40X256 may also be used to evaluate the segment LCD controller of the K40 device The TWRPI SLCD daughter card included with the TWR K40X256 plugs into the Touch TWRPI socket and provides a 28 segment LCD that can be driven directly by the K40 MCU Refer to Table 6 1 0 Connectors and Pin Usage Table for the segment LCD signals connection details Additionally many more segment LCD signals are routed to the Secondary Connector on the TWR K40X256 and can be accessed from another Tower module or on the expansion connectors of the Secondary Elevator Refer to Table 8 TWR K40X256 Secondary Connector Pinout for connection details 2 11 USB The K40X256 features a USB
4. d 2 freescale TWR K40X256 Tower Module User s Manual Rev 1 0 Freescale Semiconductor Inc Pp be ZC freescale semiconductor Table of Contents 1 TWR K40X256 and TWR K40X256 KIT Overview eren nnne ne e 4 UN ERO EDITT IE 5 e RL ecu a aay stn vata sa atu tnt EN E a EI CIS 5 1 35 Getting Started e 7 1 4 Reference Documents sise ditior eco ac dac Cu Gi cdd or n indienne SEA 7 2 Hardware Pest iaa aanas 7 2 1 K40X256 Microcontroller NEE 8 2 2 Clockin E 9 223 SYSUCM POW PRA 10 Zed RRL VBA Woe 10 ER lun ET 10 ZA TOSIA Gees oc eect ee AE aloe aie iens 10 2 4 2 Cortex D bug ETM Connector ate iiit tette tere anime deste aegre Ee 11 25 nia ed PO EE 11 Ee 12 2 7 Potentiometer Pushbuttons LEDS nn 12 2 8 General Purpose Tower Plug in TWRPI Socket 12 2 9 Touch Interface Ee 13 AMO SC nde 14 PABULI AMEN 14 2 12 Secure Digital Card Slot ire 14 2 13 External Bus Interface FlexB s 52i tasted isse deae cp pe teta vasa Der dada se Er eR RU RR 15 3 mper Tables cor FU noirs bid eit cci OG eL Ob D c Qe D a ere 15 4 Input Output Connectors and Pin Usage Table 16 5 Tower Elevator Connections rennen nnn ren rer i n o nananman nanana 18 TWR K40X256 Tower Module User s Manual Page 2 o
5. SDHC D1 PTEO A22 SSI BCLK PTA14 B23 GPIO3 PTE28 A23 SSI FS PTA13 B24 CLKINO PTA18 A24 SSI RXD PTA15 B25 CLKOUT1 PTE26 A25 SSI TXD PTA12 B26 GND Ground A26 GND Ground B27 AN7 PTBO A27 AN3 PGAO DP ADCO DPO ADCi DP3 B28 AN6 PTB1 A28 AN2 PGAO_DM ADCO_DM0 ADC1_DM3 B29 AN5 PTB2 A29 AN1 PGA1 DP ADC1 DPO ADCO DP3 B30 AN4 PTB3 A30 ANO PGA1_DM ADC1_DM0 ADCO_DM3 B31 GND Ground A31 GND Ground B32 DAC1 DAC1_OUT A32 DACO DACO_OUT B33 TMR3 PTC5 A33 TMR1 PTA9 B34 TMR2 PTD6 A34 TMRO PTA8 B35 GPIO4 PTB9 A35 GPIO6 PTB10 B36 3 3V 3 3V Power A36 3 3V 3 3V Power B37 PWM7 PTA2 A37 PWM3 PTC4 B38 PWM6 PTA1 A38 PWM2 PTC3 B39 PWM5 PTD5 A39 PWM1 PTC2 B40 PWM4 PTD4 A40 PWMO PTC1 B41 CANRXO PTE25 A41 RXDO PTC14 B42 CANTXO PTE24 A42 TXDO PTC15 B43 1WIRE A43 RXD1 PTC16 TWR K40X256 Tower Module User s Manual Page 18 of 21 e Te LZ 2 freescale semiconductor Pin Side B Pin Side A Name Usage 5 Name Usage B44 SPIO MISO PTD3 A44 TXD1 PTC17 B45 SPIO_MOSI PTD2 A45 VSS VSSA B46 SPIO_CSO_b PTDO A46 VDDA VDDA B47 SPIO_CS1_b PTC3 A47 VREFA1 VREFH B48 SPIO CLK PTD1 A48 VREFA2 VREFL B49 GND Ground A49 GND Ground B50 SCL1 PTB2 A50 GPIO14 B51 SDA1 PTB3 A51 GPIO15 B52 GPIO5 SD CARD DET PTA16 A52 GPIO16 B53 USBO DP PDOWN A53 GPIO17 B54 USBO DM PDOWN A54 USBO DM USBO DM B55
6. TSI6 D48 LCD D3 LCD P3 PTC19 C48 CTS3 TSI7 D49 GND Ground C49 GND Ground D50 GPIO23 C50 LCD D4 LCD P4 PTDO D51 GPIO24 C51 LCD D5 LCD P5 PTD1 D52 LCD D12 LCD P12 PTC7 C52 LCD_D6 LCD_P6 PTD2 D53 LCD_D13 LCD_P13 PTC8 C53 LCD_D7 LCD P7 PTD3 D54 LCD_D14 LCD P14 PTC9 C54 LCD D8 LCD P8 PTD4 D55 IRQ P SPI2 CS2 b C55 LCD D9 LCD P9 PTD5 D56 IRQ O SPI2 CS3 b C56 LCD D10 LCD P10 PTC4 D57 IRQ N C57 LCD D11 LCD P11 PTC5 D58 IRQ M C58 TMR16 D59 IRQ L C59 TMR15 D60 IRQ K C60 TMR14 D61 IRQ J C61 TMR13 D62 IRQ I C62 LCD D15 LCD P15 PTC12 D63 LCD D18 LCD P18 PTC15 C63 LCD D16 LCD P16 PTC13 D64 LCD D19 LCD P19 PTB5 C64 LCD D17 LCD P17 PTC14 D65 GND Ground C65 GND Ground D66 EBI AD20 LCD P42 C66 EBI BE 32 24 b LCD P28 PTB21 D67 EBI AD21 LCD P43 C67 EBI BE 23 16 b LCD P29 PTB22 D68 EBI AD22 LCD P44 C68 EBI BE 15 8 b LCD P30 PTB23 D69 EBI AD23 LCD P45 C69 EBI BE 7 0 b LCD P31 PTC3 D70 EBI AD24 LCD P46 C70 EBI TSIZEO LCD P32 PTC10 D71 EBI AD25 LCD P47 C71 EBI_TSIZE1 LCD_P33 PTC11 TWR K40X256 Tower Module User s Manual Page 20 of 21 e Te e ZC freescale semiconductor Pin Side D Pin Side C Name Usage 5 Name Usage D72 EBI AD26 LCD P48 C72 EBI TS b LCD P34 D73 EBI AD27 LCD P49 C73 EBI TBST b LCD P35 D74 EBI AD28 LCD P50 C74 EBI TA b LCD P36 D75 EBI AD29 LCD P51 C75 EBI CS4 b LCD P37 D76 EBI AD30 LCD P52 C76 EBI CS3 b LCD P38 D77 EBI AD31 LCD P53 C
7. K40X256 Tower Module User s Manual Page 6 of 21 2 freescale semiconductor Potentiometer di SD Card Socket VBAT RTC Battery Holder Figure 4 Callouts on back side of the TWR K40X256 1 3 Getting Started Follow the Quick Start Guide found printed in the TWR K40X256 box or the interactive DVD for the list of recommended steps for getting started There are also lab walk through guides available on the tool support page for the TWR K40X256 http www freescale com TWR K40X256 1 4 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 freescale com TWR K40X256 or freescale com kinetis e IWR K40X256 QSG Quick Start Guide TWR K40X256 SCH Schematics TWR K40X256 PWA Design Package TWRPI SLCD SCH Schematics TWRPI SLCD PWA Design Package K40 Family Product Brief K40 Family Reference Manual Kinetis Quick Reference User Guide QRUG Tower Configuration Tool 2 Hardware Description The TWR K40X256 is a Tower Controller Module featuring the MK40X256VMD100 an ARM Cortex M4 based microcontroller with segment LCD and USB 2 0 full speed OTG controllers in a 144 MAPBGA package with a maximum core operating frequency of 100MHz It is intended for use in the Freescale Tower System but can operate stand alone An on board debug circuit OSJTAG provides a JTAG debug interface and
8. 13 ETH_MDC TWR K40X256 Tower Module User s Manual Page 19 of 21 Pp e freescale semiconductor Pin Side D Pin Side C Name Usage Name Usage D14 ETH_TXCLK C14 ETH_MDIO D15 ETH TXEN C15 ETH_RXCLK D16 GPIO18 C16 ETH_RXDV D17 GPIO19 SDHC D4 C17 GPIO27 SDHC D D18 GPIO20 SDHC D5 C18 GPIO28 SDHC D7 D19 ETH TXD1 C19 ETH RXD1 D20 ETH TXDO C20 ETH_RXDO D21 ULPI_NEXT USB1_DM C21 ULPI DATAO USB3_DM D22 ULPI DIR USB1_DP C22 ULPI DATA1 USB3 DP D23 UPLI DATAS USB2 DM C23 ULPI DATA2 USB4_ DM D24 ULPI DATA6 USB2 DP C24 ULPI DATA3 USB4_DP D25 ULPI DATA7 C25 ULPI DATA4 D26 GND Ground C26 GND Ground D27 LCD HSYNC LCD P24 PTB9 C27 AN11 D28 LCD VSYNC LCD P25 PTB10 C28 AN10 D29 AN13 C29 AN9 D30 AN12 C30 AN8 D31 GND Ground C31 GND Ground D32 LCD CLK LCD P26 PTB11 C32 GPIO29 D33 TMR11 C33 TMR9 D34 TMR10 C34 TMR8 D35 GPIO21 C35 GPIO30 D36 3 3V 3 3V Power C36 3 3V 3 3V Power D37 PWM15 C37 PWM11 D38 PWM14 C38 PWM10 D39 PWM13 C39 PWM9 D40 PWM12 C40 PWM8 D41 CANRX1 C41 RXD2 TSIO D42 CANTX1 C42 TXD2 TSI1 D43 GPIO22 C43 RTS2 TSI2 D44 LCD_OE LCD_P27 PTB20 C44 CTS2 TSI3 D45 LCD_DO LCD P PTC16 C45 RXD3 TSI4 D46 LCD Di LCD P1 PTC17 C46 TXD3 TSI5 D47 LCD D2 LCD P2 PTC18 C47 RTS3
9. 77 EBI CS2 b LCD P39 D78 LCD D20 LCD P20 PTB6 C78 EBI CS1 b LCD P40 D79 LCD D21 LCD P21 PTB7 C79 GPIO31 LCD P41 D80 LCD D22 LCD P22 PTB8 C80 LCD D23 LCD P23 D81 GND Ground C81 GND Ground D82 3 3V 3 3V Power C82 3 3V 3 3V Power TWR K40X256 Tower Module User s Manual Page 21 of 21
10. D Tower Plug in Socket Segment LCD Tower Plug in module TWRPI SLCD General purpose Tower Plug in TWRPI socket On board JTAG debug circuit OSJTAG with virtual serial port Three axis accelerometer MMA7660 Four 4 user controllable LEDs Four 4 capacitive touch pads Two 2 user pushbutton switches Potentiometer Battery Holder for 20mm lithium battery e g 2032 2025 SD Card slot TWR K40X256 Tower Module User s Manual Page 5 of 21 freescale semiconductor ciii LLL LL OI em Connector Stee MERBIMARY a 7 AM 9500 Pre HER AC PR FX WD Dr E Sieg Keis SW4 CAM Y VERMES Infra red RE D y Rand a deg H T NR KANX258 Touch SLCD TWRPI Socket Buttons General Purpose Tower Plug In TWRPI Socket E1 E4 aiiis a 7 1 9o ow o wow o9 p s I SEHR J v a NJ rel Wu D D o E m 4 Uv ag D j a E Een ytr s Power OSJTAG I noi B Se 4 6 Mini B USB T E Edi h a We Connector mi D UM TER 2 e Microcontroller i jf TE E 2 Secondary E hs SZ Connector A0 pmi mee Figure 2 Callouts on front side of the TWR K40X256 LUN LULU LL LUI il 24 di ein PU K VA z c a Py Fy Py Dy ME K TWRPI SECP LJ ex 12 Ds 1 H Tl m M 5 M mt 0 228 freescale semiconductor y L j TT Jl Figure 3 Front side of TWR K40X256 with TWRPI SLCD attached TWR
11. IRQ H PTB5 A55 USBO DP USBO DP B56 IRQ G PTB5 A56 USBO ID B57 IRQ F PTB6 A57 USBO VBUS VREGIN B58 IRQ E PTB6 A58 TMR7 B59 IRQ D PTB7 A59 TMR6 B60 IRQ C PTB7 A60 TMR5 B61 IRQ B PTB8 A61 TMR4 B62 IRQ A PTB8 A62 RSTIN_b RESET_b B63 EBI ALE EBI CS1 b PTE6 A63 RSTOUT b RESET b B64 EBI CS0 b PTE7 A64 CLKOUTO PTA6 B65 GND Ground A65 GND Ground B66 EBI AD15 PTA10 A66 EBI AD14 PTA24 B67 EBI AD16 PTA9 A67 EBI AD13 PTA25 B68 EBI AD17 PTA8 A68 EBI AD12 PTA26 B69 EBI AD18 PTA7 A69 EBI_AD11 PTA27 B70 EBI_AD19 PTA29 A70 EBI_AD10 PTA28 B71 EBI_R W_b PTD15 A71 EBI_AD9 PTA29 B72 EBI_OE_b PTA11 A72 EBI AD8 PTD11 B73 EBI D7 PTD12 A73 EBI AD7 LATCH FBA7 B74 EBI D6 PTD13 A74 EBI AD6 LATCH FBA6 B75 EBI D5 PTD14 A75 EBI AD5 LATCH FBA5 B76 EBI D4 PTE8 A76 EBI_AD4 LATCH_FBA4 B77 EBI_D3 PTE9 A77 EBI AD3 LATCH FBA3 B78 EBI D2 PTE10 A78 EBI AD2 LATCH FBA2 B79 EBI D1 PTE11 A79 EBI AD1 LATCH FBA1 B80 EBI DO PTE12 A80 EBI ADO LATCH FBAO B81 GND Ground A81 GND Ground B82 3 3V 3 3V Power A82 3 3V 3 3V Power Table 8 TWR K40X256 Secondary Connector Pinout Pin Side D Pin Side C Name Usage Name Usage Di 5V 5 0V Power Ci 5V 5 0V Power D2 GND Ground C2 GND Ground D3 3 3V 3 3V Power C3 3 3V 3 3V Power D4 ELE_PS_SENSE Elevator Power Sense C4 3 3V 3 3V Power D5 GND Ground C5 GND Ground D6 GND Ground C6 GND Ground D7 SPI2_CLK C7 SCL2 D8 SPI2 CS1 b C8 SDA2 D9 SPI2 CS0 b C9 GPIO25 D10 SPI2 MOSI C10 ULPI STOP Dil SPI2_MISO CL ULPI CLK D12 ETH COL C12 GPIO26 D13 ETH_RXER C
12. TWRPI I2C SDA J9 Pin 4 TWRPI SPI MISO J9 Pin 9 TWRPI SPI MOSI J9 Pin 10 TWRPI SPI SS J9 Pin 11 TWRPI SPI CLK J9 Pin 12 TWRPI GPIOO J9 Pin 15 TWRPI GPIO1 J9 Pin 16 TWRPI GPIO2 J9 Pin 17 TWRPI GPIO3 J9 Pin 18 TWRPI GPIO4 J9 Pin 19 Electrode O J7 Pin 3 Electrode 1 J7 Pin 5 Electrode 2 J7 Pin 7 Electrode 3 J7 Pin 8 Electrode 4 J7 Pin 9 Electrode 5 J7 Pin 10 Electrode 6 J7 Pin 11 Electrode 7 J7 Pin 12 Electrode 8 J7 Pin 13 Electrode 9 J7 Pin 14 Electrode 10 J7 Pin 15 Electrode 11 J7 Pin 16 TWRPI IDO J7 Pin 17 PTC9 PTB11 PTA16 PTA13 PTA12 PTA15 PTA5 PTA14 PTA17 PTC11 PTC10 PTC12 PTC10 PTC11 PTB23 PTB22 PTB20 PTB21 PTC12 PTB9 PTB10 PTC5 PTA5 PTBO PTB1 PTB2 PTB3 PTCO PTC1 PTC2 PTA4 PTB16 PTB17 PTB18 PTB19 PTC9 PTB11 ADC1_DM1 SSIO_RX_FS SSIO TX FS SSIO TXD SSIO RXD SS BN BCLK SSIO TX BCLK SSIO_MCLK SSIO_CLKIN DCL SDA DCL SCL PTC12 ADCO DPO ADC1 DP3 ADCO DMO ADC1 DM3 ADC1 DPO ADCO DP3 ADCO DP1 ADCO DM1 I2C1_SCL I2C1_SDA SPI2 SIN SPI2_SOUT SPI2_PCSO SPI2_SCK PTC12 PTB9 PTB10 PTC5 PTA5 TSIO_CHO LCD_PO TSIO CH6 LCD P1 TSIO_CH7 LCD P2 TSIO CH8 LCD P3 TSIO CH13 LCD P20 TSIO_CH14 LCD P21 TSIO_CH15 LCD P22 TSIO CH5 TSIO_CH9 LCD P12 TSIO_CH10 LCD P13 TSIO_CH11 LCD P14 TSIO_CH12 LCD P15 ADC1_DP1 TWR K40X256 Tower Module User s Manual Page 17 of 21 e Te oe lt freescale
13. Table 5 TWR K40X256 Jumper Table for more information 2 6 Accelerometer An MMA7660 digital accelerometer is connected to the K40 MCU through an I2C interface and a GPIO IRQ signal Refer to Table 6 I O Connectors and Pin Usage Table for connection details 2 7 Potentiometer Pushbuttons LEDs The TWR K40X256 features two pushbutton switches connected to GPIO interrupt signals one pushbutton connected to the master reset signal four capacitive touch pad electrodes four user controllable LEDs and a potentiometer connected to an ADC input signal Refer to Table 6 I O Connectors and Pin Usage Table for information about which port pins are connected to these features 2 8 General Purpose Tower Plug in TWRPI Socket The TWR K40X256 features a socket that can accept a variety of different Tower Plug in modules featuring sensors RF transceivers and more The General Purpose TWRPI socket provides access to DC 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 Refer to Table 6 I O Connectors and Pin Usage Table for the specific K40 pin connections to the General Purpose TWRPI socket TWR K40X256 Tower Module User s Manual Page 12 of 21 2 freescale semiconductor Table 3 General Purpose TWRPI socket pinout Left side 2x10 Connector Right side 2x10 Connector
14. ZP DI PTAA FTMO CH1 MS NMI b EZP CS b RESET b 5V supply via J15 PTAG FTMO CH3 FB CLKOUT TRACE CLKOUT 5V supply via J15 PTA10 FTM2 CHO FB AD15 FTM2 QD PHA TRACE DO GND PTA9 FTM1 CH1 FB AD16 FTM1 QD PHB TRACE D1 GND PTAS FTM1 CHO FB AD17 FTM1 QD PHA TRACE D2 GND PTA7 FTMO CHA FB AD18 TRACE D3 Note Many of the trace signals connected to the debug connector are also connected elsewhere on the TWR K40X256 Refer to Table 6 I O Connectors and Pin Usage Table and Table 7 TWR K40X256 Primary Connector Pinout for more information 2 5 Infrared Port An infrared transmit and receive interface is implemented as shown in Figure 7 below The CMT IRO pin directly drives an infrared diode The receiver uses an infrared phototransistor connected to an on chip analog comparator through a low pass filter Internal to the K40 device the output of the analog comparator can be routed to a UART module for easier processing of the incoming data stream TWR K40X256 Tower Module User s Manual Page 11 of 21 33 E Ss oe ZC freescale semiconductor CMPO INO PTC6 l C5 T 0 1UF D3 R23 PTD7 CMT IRO IRDAJ 2 AA 1 IRDAR e n QTLP610CIR dh 6 HDR 1X2 TH Default no shunt Disable IRDA Figure 7 Infrared Port Implementation Note The port pins connected to the infrared interface PTD6 and PTD7 are also connected to the OSJTAG USB to serial bridge Refer to Table 6 1 0 Connectors and Pin Usage Table and
15. a power supply input through a single USB mini AB connector Figure 5 shows a block diagram of the TWR K40X256 The following sections describe the hardware in more detail TWR K40X256 Tower Module User s Manual Page 7 of 21 2 freescale semiconductor Tower Elevator Expansion Connectors SDHC Ce SPI C ADC USB DAC PWM UARTSs Flexbus Segment LCD 8 MHz XTAL 32 768 KHz XTAL wo IR Output Comparator GPIO Interrupts Reset Battery VBAT RTC Holder SPI C ADC GPIO TSI GPIO oO General Purpose SD Card Slot Tower Plug in TWRPI Touch amp Segment LCD Tower Plug in TWRPI ka Freescale Device E External Connectors ESI Interface Circuits mj Power Figure 5 TWR K40X256 Block Diagram 2 1 K40X256 Microcontroller The TWR K40X256 module features the MK40X256VMD100 The K40 microcontroller family is part of the Kinetis portfolio of devices built around an ARM Cortex M4 core Refer to the K40 Family Product Brief and the K40 Family Reference Manual for comprehensive information on the MK40X256VMD100 device The key features are listed here e 32 bit ARM Cortex M4 core with DSP instructions 100MHz maximum core operating frequency 144 MAPBGA 13mm x 13mm 1 0mm pitch package 1 71V 3 6V operating voltage input range 256 Kbytes of program flash 64 Kbytes of static RAM FlexMemory consisting of 256 Kbytes of FlexNVM non volatile flash memory that can be used as program f
16. access devices on Tower peripheral modules The Primary Connector supports up to 20 address lines 8 data lines 2 chip selects read write and output enable signals The SDHC signals of the K40 are multiplexed over the upper FlexBus address signals FB AD 27 23 so a multiplexed mode of operation is used on the TWR K40X256 An address latch is provided to de multiplex the address and data signals prior to connecting them to the Primary Connector Refer to sheet 8 of the TWR K40X256 schematics for more details Note The K40 Flexbus implementation provides an option for byte lane alignment On the TWR K40X256 ER AD 7 0 are used for the data byte Therefore for proper operation software must set the CSCRx BLS bit to shift the data bus to the right byte lane Refer to the FlexBus chapter in the K40 Family Reference Manual for more information Byte Select F5_BE 3122 FB BE 23 16 FB BE 15 8 TB BET 0 External 7 Data Bus 32 Bit Port Memory 16 Bit Port SE waer address values 8 Bit Port Memory Driven with address values Figure 8 Flexbus Connections for External Memory Port Sizes CSCRn BLS 1 3 Jumper Table There are several jumpers on the TWR K40X256 that provide configuration selection and signal isolation Refer to the following table for details The default installed jumper settings are shown in bold with asterisks Table 5 TWR K40X256 Jumper Table Setting Description E USB VREGIN Power ON Connec
17. e of mutually exclusive features Table 6 1 0 Connectors and Pin Usage Table Pin Function Feature OSJTAG USB to Serial Bridge SD Card Slot Infrared Port Pushbuttons Touch Pads LEDs Connection OSJTAG Bridge RX Data OSJTAG Bridge TX Data SD Clock SD Command SD Data SD Data1 SD Data2 SD Data3 SD Card Detect SD Write Protect IR Transmit IR Receive SW3 IRQO SWA IRQ1 SW5 RESET E1 Touch E2 Touch E3 Touch E4 Touch E1 Orange LED E2 Yellow LED Port Pin PTD6 PTD7 PTE2 PTE3 PTE1 PTEO PTE5 PTE4 PTA16 PTE27 PTD7 PTC6 PTC5 PTC13 RESET b PTB17 PTB18 PTB19 PTB16 PTC7 PTC8 UARTO_RX UARTO_TX SDHCO_DCLK SDHCO_CMD SDHCO DO SDHCO D1 SDHCO D2 SDHCO D3 PTA16 PTE27 CMT IRO CMPO INO PTC5 PTC13 RESET b TSIO CH10 TSIO_CH11 TSIO_CH12 TSIO_CH9 PTC7 PTC8 TWR K40X256 Tower Module User s Manual Page 16 of 21 2 freescale semiconductor Potentiometer SSIO Access Header Accelerometer General Purpose TWRPI Socket Touch Pad Segment LCD TWRPI Socket E3 Green LED E4 Blue LED Potentiometer R71 SSI Header J4 Pin 1 SSI Header J4 Pin 2 SSI Header J4 Pin 3 SSI Header J4 Pin 4 SSI Header J4 Pin 5 SSI Header J4 Pin 6 SSI Header J4 Pin 7 I2C SDA 12C SCL IRQ TWRPI ANO J8 Pin 8 TWRPI AN1 US Pin 9 TWRPI AN2 J8 Pin 12 TWRPI IDO J8 Pin 17 TWRPI ID1 US Pin 18 TWRPI I2C SCL J9 Pin 3
18. erview The TWR K40X256 is a Tower Controller Module compatible with the Freescale Tower System It can function as a stand alone low cost platform for the evaluation of the Kinetis K30 and K40 family of microcontroller MCU devices The TWRPI SLCD segment LCD daughter card is included as part of the TWR K40X256 The TWR K40X256 features the Kinetis K40 low power microcontroller based on the ARM Cortex M4 architecture with USB 2 0 full speed OTG and segment LCD display controllers The K40X256 includes 256Kbytes of program flash storage and an additional 256Kbytes of FlexMemory non volatile storage that can be used as additional program flash memory data flash or variable size endurance EEPROM The TWR K40X256 is available as a stand alone product or as a kit TWR K40X256 KIT with the Tower Elevator Modules TWR ELEV and the Tower Serial Module TWR SER The TWR K40X256 can also be combined with other Freescale Tower peripheral modules to create development platforms for a wide variety of applications Figure 1 provides an overview of the Freescale Tower System Controller Module Primary Elevator Tower MCU MPU i tai TE i d e Common serial board and expansion bus signals Works stand alone or in Tower System Two 2x80 connectors on backside for easy signal access and side mounting board LCD module Features integrated debugging interface for easy programming and run control via standard USB cable L Powe
19. f 21 e SS 2 freescale List of Figures Figure 1 Freescale Tower System Overview EEN 4 Figure 2 Callouts on front side of the WR KAON IER 6 Figure 3 Front side of TWR K40X256 with TWRPI SLCD attached 6 Figure 4 Callouts on back side of the TWR K40X256 ner 7 Figure 5 TWR K40X256 Block Diagram eg eeu e terrre natat ntn oe uaa aed ch aera md sab ke sa dude epa EE E EE Pado piR Ma CES 8 Figure 6 External clock source er EE 9 Figure 7 Infrared Port Implementation iue eher te npe GES E RU eU Dut hes pacab uk S DU Lo URL E RUE 12 Figure 8 Flexbus Connections for External Memory Port Sizes CSCRn BLS 1 15 List of Tables Table 1 MCG oscillator input selection resistor settings 4 10 Table 2 Cortex Debug ETM Connector Pinout eese eene nene nnne enne 11 Table 3 General Purpose TWRPI socket pinout EE 13 Table 4 Touch TWRPI socket piliDlt iuco ocio eus Rv Ch Hav EN IRI ee 13 Table 5 TWR K40X256 Jumper Table eeseeesers e arare eta puente iEn ne Rak Nee eheu ea nus ne ipo ks ueeg 15 Table 6 1 0 Connectors and Pin Usage Table 16 Table 7 TWR K40X256 Primary Connector Pinout issues 18 Table 8 TWR K40X256 Secondary Connector Pinout sus 19 Revision History Revision Date Changes 1 0 Nov 9 2010 Initial Release for PWA 700 26547 Rev A TWR K40X256 Tower Module User s Manual Page 3 of 21 e Te 2 freescale semiconductor 1 TWR K40X256 and TWR K40X256 KIT Ov
20. full speed low speed OTG Host Device controller with built in transceiver The TWR K40X256 routes the USB D and D signals from the K40 MCU to the Primary Connector allowing the connection to USB connectors or additional circuitry on a Tower peripheral module The TWR SER module included as part of the TWR K40X256 KIT provides a USB OTG Host Device interface with a mini AB USB connector There are many configuration options that can be selected to evaluate different USB modes of operation By default the TWR SER is configured for USB Device operation Please refer to the documentation included with the TWR SER for more information on the configuration options 2 12 Secure Digital Card Slot A Secure Digital SD card slot is available on the TWR K40X256 connected to the SD Host Controller SDHC signals of the K40 MCU This slot will accept SD memory cards as well as Secure Digital Input Output SDIO cards Refer to Table 6 I O Connectors and Pin Usage Table for the SDHC signal connection details TWR K40X256 Tower Module User s Manual Page 14 of 21 2 freescale semiconductor 2 13 External Bus Interface FlexBus The K40 device features a multi function external bus interface called the FlexBus interface controller capable of interfacing to slave only devices The FlexBus interface is not used directly on the TWR K40X256 Instead a subset of the FlexBus is connected to the Primary Connector so that the external bus can
21. l XTAL32_RTC Y3 Em Dx R91 4 A A0 DNP DNP w C37 t8PF 32KHz EXTL EXTAL32_RTC R87 8MHz xm H 8MHz XIL R R86 XTAL MAIN 8 00MHZ v Re5 1 0M 8MHz EXIL R83 EXTAL MAIN 8 CLKINO y R K X x 0 DNP Figure 6 External clock source circuitry The clocking circuitry on the TWR K40X256 is shown on sheet 4 of the schematics and in Figure 6 An 8 0 MHz ceramic resonator with built in load capacitors is the default external source for the MCG oscillator inputs XTAL EXTAL MAIN A 32 768 KHz crystal is connected to the RTC oscillator inputs by default There are optional resistors not populated by default to allow for the MCG oscillator inputs to be routed from any one of the 8 0 MHz resonator the 32 678 KHz crystal or the clock input pin CLKINO from the Primary Connector pin B24 Table 1 shows the resistor settings for each of the MCG oscillator input options TWR K40X256 Tower Module User s Manual Page 9 of 21 2 freescale semiconductor Table 1 MCG oscillator input selection resistor settings MCG Oscillator Input R93 R91 R95 R97 R81 R88 R87 R86 R83 R84 8 0 MHz Resonator 32 768 KHz RTC Crystal Clock Input from CLKINO X indicates that the resistor is installed indicates that the resistor is not populated All resistor values are 0 ohm 2 3 System Power In stand alone operation the power source for the TWR K40X256 module is derived from the 5 0V input from eithe
22. lash data flash backup EEPROM of variable endurance and size and 4 Kbytes of FlexRAM RAM memory that can be used as traditional RAM as high endurance EEPROM storage or flash programming acceleration RAM External bus interface Power management controller with 10 different power modes Multi purpose clock generator with PLL and FLL operation modes 16 bit SAR ADC 12 bit DAC High speed analog comparator with 6 bit DAC Programmable voltage reference TWR K40X256 Tower Module User s Manual Page 8 of 21 Pp 2 freescale semiconductor USB full speed low speed OTG Host Device controller with device charge detect SPI I C w SMBUS support UART w 1507816 and IrDA CAN IS SD Host Controller SDHC GPIO with pin interrupt support DMA request capability digital glitch filtering Capacitive touch sensing inputs TSI LCD display driver supporting 3V and 5V glass configurable frontplane and backplane pins and segment failure detection e Debug interfaces JTAG JTAG SWD e Trace TPIO FPB DWT ITM ETM ETB 2 2 Clocking The Kinetis MCUs start up from an internal digitally controlled oscillator DCO Software can enable one or two external oscillators if desired 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 C31 n 32KHz XTL ROS Al
23. o the K40X256 A standard USB A male to Mini B male cable provided can be used for debugging via the USB connector J16 The OSJTAG interface also provides a USB to serial bridge Drivers for the OSJTAG interface are provided in the P amp E Micro Kinetis Tower Toolkit available on the included DVD Note The port pins connected to the OSJTAG USB to serial bridge PTD6 and PTD7 are also connected to the infrared interface Refer to Table 6 I O Connectors and Pin Usage Table and Table 5 TWR K40X256 Jumper Table for more information TWR K40X256 Tower Module User s Manual Page 10 of 21 2 freescale semiconductor 2 4 2 Cortex Debug ETM Connector The Cortex Debug ETM connector is a 20 pin 0 05 connector providing access to the SWD SWV JTAG cJTAG EzPort and ETM trace 4 bit signals available on the K40 device The pinout and K40 pin connections to the debug connector J14 is shown in Table 2Table 2 1 2 3 4 5 6 7 8 9 Table 2 Cortex Debug ETM Connector Pinout Function VTref TMS SWDIO GND TCK SWCLK GND TDO SWO Key TDI GNDDetect nRESET Target Power TRACECLK Target Power TRACEDATA O GND TRACEDATA 1 GND TRACEDATA 2 GND TRACEDATA 3 TWR K40X256 Connection 3 3V MCU supply P3V3_MCU PTA3 SCIO RTS b FTMO CHO ITAG MS SWD DIO GND PTAO SCIO CTS b FTMO CH5 JTAG CLK SWD CLK EZP CLK GND PTA2 SCIO TX FTMO CH7 ITAG DO TRACE SWO EZP DO PTA1 SCIO RX FTMO CH6 IJTAG DI E
24. r regulation circuitry Secondary Elevator Standardized signal Additional and assignments secondary serial and expansion bus signals Mounting holes e Standardized signal assignments 9 Board Connectors Mounting holes and expansion connectors for side mounting peripheral boards Four card edge connectors Uses PCI Express connectors Size Peripheral Module x16 90 mm 3 5 long 164 pins Tower is approx 3 5 Hx 3 5 W Examples include serial interface module x 3 5 D when fully assembled memory expansion module and Wi Fi Figure 1 Freescale Tower System Overview TWR K40X256 Tower Module User s Manual Page 4 of 21 Pp lt freescale semiconductor 1 1 Contents The TWR K40X256 contents include TWR K40X256 board assembly Segment LCD Tower Plug in module TWRPI SLCD 3ft USB cable Interactive DVD with software installers and documentation Quick Start Guide The TWR K40X256 KIT contains e TWR K40X256 MCU module e TWR ELEV Primary and Secondary Elevator Modules e TWR SER Serial module including USB host device OTG Ethernet CAN RS232 and RS485 1 2 Features Figure 2 Figure 3 and Figure 4 show the TWR K40X256 with some of the key features called out The following list summarizes the features of the TWR K40X256 Tower MCU Module e Tower compatible microcontroller module MK40X256VMD100 K40X256 in a 144 MAPBGA with 100MHz operation Touch and Segment LC
25. r the USB mini B connector J16 or the debug header J14 when a shunt is placed on jumper J15 A low dropout regulator provides a 3 3V supply from the 5 0V input voltage Refer to sheet 5 of the TWR K40X256 schematics for more details When installed into a Tower System the TWR K40X256 can be powered from either an on board source or from another source in the assembled Tower System If both the on board and off board sources are available the TWR K40X256 will default to the off board source The 3 3V power supplied to the MCU is routed through a jumper J11 The jumper shunt can be removed to allow for either 1 alternate MCU supply voltages to be injected or 2 the measurement of power consumed by the MCU 2 3 1 RTC VBAT The Real Time Clock RTC module on the K40 has two modes of operation system power up and system power down During system power down the RTC is powered from the backup power supply VBAT The TWR K40X256 provides a battery holder for a coin cell battery that can be used as the VBAT supply The holder can accept common 20mm diameter 3V lithium coin cell batteries e g 2032 2025 Refer to the description J12 in Table 5 TWR K40X256 Jumper Table for more information 2 4 Debug Interface There are two debug interface options provided the on board OSJTAG circuit and an external Cortex Debug ETM connector 2 4 1 OSJTAG An on board MC9S08JM60 based Open Source JTAG OSJTAG circuit provides a JTAG debug interface t
26. t USBO VBUS from Primary Elevator A57 to VREGIN Connection OFF Disconnect VREGIN from Primary Elevator ie Flexbus Address Latch 1 2 Flexbus address latch disabled Selection 2 3 Flexbus address latch enabled ie Infrared Transmitter ON Connect PTD7 CMT_IRO UARTO_TX to IR Transmitter D3 Connection OFF Disconnect PTD7 CMT IRO UARTO TX from IR Transmitter D3 J11 MCU Power Connection ON Connect on board 3 3V supply to MCU TWR K40X256 Tower Module User s Manual Page 15 of 21 y z freescale semiconductor OFF Isolate MCU from power supply allows for external supply or power measurements 1 2 Connect VBAT to on board 3 3V supply J12 VBAT Power Selection gt Connect VBAT to the higher voltage between on board 3 3V supply or coin cell supply ON OSJTAG bootloader mode OSJTAG firmware reprogramming J13 OSJTAG Mode Selection OFF Debugger mode ON Connect on board 5V supply to JTAG port supports powering J15 JTAG Power Connection board from external JTAG probe OFF Disconnect on board 5V supply from JTAG port 4 Input Output Connectors and Pin Usage Table The following table provides details on which KA0X256 pins are using to communicate with the LEDs switches and other 1 0 interfaces onboard the TWR K40X256 Note Some port pins are used in multiple interfaces on board and many are potentially connected to off board resources via the Primary and Secondary Connectors Take care to avoid attempted simultaneous usag

Download Pdf Manuals

image

Related Search

Related Contents

Philips F4473/6 /  東芝IHクッキングヒーター設置説明書  iPass Open Mobile 2.1.0 for Windows User Guide  Magnetic Accelerator Cannon - University of Central Florida  Triarch 33236 User's Manual  MANUAL DE INSTRUCCIONES  Adafruit 954  1211omote new  KOHLER K-5400-FT Installation Guide    

Copyright © All rights reserved.
Failed to retrieve file