LPC-MT-2138
Transcription
LPC-MT-2138
LPC-MT-2138 development board Users Manual All boards produced by Olimex are ROHS compliant Rev. Initial, September 2005 Copyright(c) 2010, OLIMEX Ltd, All rights reserved Page 1 INTRODUCTION LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD, relay, five buttons, variety of interfaces such as RS232, JTAG, I2C, Dallas and extension connector for some of the microcontroller's pins this board is suitable for different embedded systems applications. BOARD FEATURES – Microcontroller: LPC2138 16/32 bit ARM7TDMI-S with 512K Bytes Program Flash, 32K Bytes RAM, RTC, 8x 10 bit ADC 2.44 uS, 2x UARTs, I2C, SPI, 2x 32bit TIMERS, 8x CCR, 6x PWM, WDT, 5V tolerant I/O, up to 60MHz operation – JTAG connector as per ARM's 2x10 pin layout, ARM-JTAG (Wiggler) compatible – 14.7456 Mhz crystal on socket, allow easy communication setup (4x PLL = 58,9824 Mhz CPU clock) – RS232 interface circuit with SUB-D 9 pin connector – LCD16x2 display with BACKLIGHT – five buttons – Dallas iButton port – Frequency input – Relay with 10A/250VAC contacts – Buzzer – Status LED – RESET circuit – RESET button – Bootloader enable jumper and pullup – DEBUG jumper for JTAG enable/disable – RTCK pullup resistors – Power plug-in jack – power supply: 9VAC/+12VDC – three on board voltage regulators 1.8V, 3.3V and 5V – power supply filtering capacitor – Four mounting holes – PCB: FR-4, 1.5 mm (0,062"), soldermask, white silkscreen component print – Dimensions: 120x38 mm (4.75x1.5") Page 2 Page 3 ELECTROSTATIC WARNING The LPC-MT-2138 board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board. BOARD USE REQUIREMENTS Cables: Depends on the used programming/debugging tool. It could be 1.8 meter USB A-B cable to connect ARM-JTAG-EW, ARM-USB-OCD, ARM-USB-TINY and ARM-USB-TINY-H to USB host on PC or LPT cable in case of ARM-JTAG or other programming/debugging tools. You will need a serial cable if not for programming, than for configuring the board. Hardware: Programmer/Debugger – some of Olimex programmers are applicable, for example ARM-JTAG, ARM-JTAG-EW, ARM-USB-OCD, ARMUSB-TINY, ARM-USB-TINY-H or other compatible programming/debugging tool. PROCESSOR FEATURES LPC-MT-2138 board use LPC2138 microcontroller based on a 16/32-bit ARM7TDMI-S CPU with real-time emulation and embedded trace support, that combine the microcontroller with 512 kB of embedded high-speed flash memory. A 128-bit wide memory interface and a unique accelerator architecture enable 32-bit code execution at maximum clock rate. with these features: – 32 kB of on-chip static RAM and 256/512 kB of on-chip flash program memory. 128-bit wide interface/accelerator enables high-speed 60 MHz operation. – In-System Programming/In-Application Programming (ISP/IAP) via on-chip bootloader software. Single flash sector or full chip erase in 400 ms and programming of 256 B in 1 ms. – EmbeddedICE RT and Embedded Trace interfaces offer real-time debugging with the on-chip RealMonitor software and high-speed tracing of instruction execution. – Two 8-channel 10-bit ADCs provide a total of up to 16 analog inputs, with conversion times as low as 2.44 ms per channel. – Single 10-bit DAC provides variable analog output. – Two 32-bit timers/external event counters (with four capture and four compare channels each), PWM unit (six outputs) and watchdog. – Low power Real-time clock with independent power and dedicated 32 kHz clock input. – Multiple serial interfaces including two UARTs (16C550), two Fast I2C-bus (400 kbit/s), SPI and SSP with buffering and variable data length capabilities. – Vectored interrupt controller with configurable priorities and vector addresses. – Up to forty-seven 5 V tolerant general purpose I/O pins – Up to nine edge or level sensitive external interrupt pins available. – 60 MHz maximum CPU clock available from programmable on-chip PLL with settling time of 100 ms. Page 4 – On-chip integrated oscillator operates with external crystal in range of 1 MHz to 30 MHz and with external oscillator up to 50 MHz. – Power saving modes include Idle and Power-down. – Individual enable/disable of peripheral functions as well as peripheral clock scaling down for additional power optimization. – Processor wake-up from Power-down mode via external interrupt or BOD. – Single power supply chip with POR and BOD circuits: – CPU operating voltage range of 3.0 V to 3.6 V (3.3 V ± 10 %) with 5 V tolerant I/O pads. Page 5 BLOCK DIAGRAM Page 6 MEMORY MAP Page 7 Page 8 100n R13 22K BUZ R18 100K FREQ +5V D14 1N4148 D13 1N4148 3.3V RXD0 JRST RST IN GND 3 2 1 100n C8 REL OUT VR3 78L05 REL_CO N D1 BAT54C FREQ 1 2 2 1 R14 470 1K R12 L1 47mH C20 100n 12 9 TXD0 + C2 T1 BC846 BUZZER +12V 16 VCC U2PWR 15GND + R1OUT R2OUT 11 10 C11 T1IN T2IN 10uF/16V R1IN R2IN T1OUT T2OUT C17 100n C16 100n T3 BC846 REL +5V 2 1 +12V C12 10p C14 10p DBG TRST TDI TMS TCK RTCK TDO RST R4 10K R19 22K 1K R11RELAY 1N4148 D12 0 B5 B4 B4 B5 3.3V B3 B3 R15 22K LPC213X VSSA VDD3(A) VREF VSS1 VSS2 VSS3 VSS4 VSS5 VDD3-1(I/O) VDD3-2(I/O) VDD3-3(I/O) VBAT RTCX2 RTCX1 C3 10uF/6.3 330 R5 R55 opt B2 B2 R3 22K T2 BC846 0 R53 RS R/W E DB4 DB5 DB6 DB7 B1 B1 R2 22K RST X2 X1 P0.25/AD0.4/AOUT P0.26/AD0.5 P0.27/AD0.0/CAP0.1/MAT0.1 P0.28/AD0.1/CAP0.2/MAT0.2 P0.29/AD0.2/CAP0.3/MAT0.3 P0.30/AD0.3/EINT3/CAP0.0 P0.31 P0.16/EINT0/MAT0.2/CAP0.2 P0.17/CAP1.2/SCK1/MAT1.2 P0.18/CAP1.3/MISO1/MAT1.3 P0.19/MAT1.2/MOSI1/CAP1.2 P0.20/MAT1.3/SSEL1/EINT3 P0.21/PWM5/AD1.6/CAP1.3 P0.22/AD1.7/CAP0.0/MAT0.0 P0.23 P0.8/TXD1/PWM4/AD1.1 P0.9/RXD1/PWM6/EINT3 P0.10/RTS1/CAP1.0/AD1.2 P0.11/CTS1/CAP1.1/SCL1 P0.12/DSR1/MAT1.0/AD1.3 P0.13/DTR1/MAT1.1/AD1.4 P0.14/DCD1/EINT1/SDA1 P0.15/RI1/EINT2/AD1.5 P0.0/TXD0/PWM1 P0.1/RXD0/PWM3/EINT0 P0.2/SCL0/CAP0.0 P0.3/SDA0/MAT0.0/EINT1 P0.4/SCK0/CAP0.1/AD0.6 P0.5/MISO0/MAT0.1/AD0.7 P0.6/MOSI0/CAP0.2/AD1.0 P0.7/SSEL0/PWM2/EINT2 DB[4..7],E,R/W,RS R52 2K P1.24/TRACECLK P1.25/EXTIN0 P1.26/RTCK P1.27/TDO P1.28/TDI P1.29/TCK P1.30/TMS P1.31/TRST R16 22K 59 7 63 6 18 25 42 50 23 43 51 49 5 1K R51 P1.16/TRACEPKT0 P1.17/TRACEPKT1 P1.18/TRACEPKT2 P1.19/TRACEPKT3 P1.20/TRACESYNC P1.21/PIPESTAT0 P1.22/PIPESTAT1 P1.23/PIPESTAT2 U1 R17 22K 100n C23 3.3V 100n 100n 100n R22 C7 10uF/6.3V 32 28 24 64 60 56 52 20 P1.24 P1.25 3 16 12 8 4 48 44 40 36 P1.16 RS E R/W DB4 DB5 DB6 DB7 Q2 32768/6pF RTCK TDO TDI TCK TMS TRST C4 C22 3 PWM5 2 LIGHT_LCD 1 AOUT DAC/PWM C10 2 1 BAT54C D2 R30 10K 1 2 R23 10K 3.3V 3.3V BAT R29 10K R25 10K VREF 13 8 14 7 5 4 3 1 C13 1 2 3 4 5 C2- C2+ C1- C1+ R21 390/1% R20 240/1% 3.3V R26 10K + RS232_ICSP 6 7 8 9 V- V+ OUT ADJ/GND IN VR1(3.3V) LM1117 DALLAS 1 3 5 7 9 11 13 15 17 19 + 6 2 U2 MAX3232 470uF/16VDC C15 1N4733 Z1 D11 1N4148 33 R9 4.7K R8 +5V JTAG 47uF/6.3V G ND C19 100n C18 100n 9VAC PWR 1 2 DALLAS D10 1N4148 P1.16 P1.24 P0.28 P0.26 P0.18 P0.13 P0.8 P0.6 P0.4 2 4 6 8 10 12 14 16 18 20 + 3 LED R10 330 C5 39pF C6 39pF R7 2K RST RST 3.3V NA C1 R6 10K R24 1K http://www.olimex.com/dev CO PYRIG HT(C) 2005, O LIMEX Ltd. Rev. Initial I2C GND VCC 2 U3 MCP130T 4 3 2 1 1 RESET 3.3V 1BSL 2 R1 22K 3.3V BSL 3.3V R27 2K 3.3V LPC-MT-2138 14.7456MHz 3.3V 57 61 Q1 AOUT P0.26 P0.27 P0.28 P0.29 B4 LED 9 10 11 13 14 15 17 62 B2 P0.17 P0.18 P0.19 B3 PWM5 BUZ RELAY B1 P0.8 B5 FREQ DALLAS P0.12 P0.13 TXD0 RXD0 SCL0 SDA0 P0.4 P0.5 P0.6 P0.7 46 47 53 54 55 1 2 58 33 34 35 37 38 39 41 45 19 21 22 26 27 29 30 31 _RS R/W E DB4 DB5 DB6 DB7 LIGHT+ LIGHT- VO LED 4 5 6 11 12 13 14 15 16 1 +12V 19 17 15 13 11 9 7 5 3 1 CONTRAST VSS G2 DB104 AOUT P1.25 P0.29 P0.27 P0.19 P0.17 P0.12 P0.7 P0.5 EXT 10K VDD 20 18 16 14 12 10 8 6 4 2 3.3V +5V 2 3.3V R54 opt SCHEMATIC 3 BOARD LAYOUT POWER CIRCUIT LPC-MT-2138 can is typically power supplied with +9VAC or 12VDC from power jack. RESET CIRCUIT LPC-MT-2138 reset circuit includes R6 (10k) pull-up, U3 (MCP130T), LPC2138 pin 57 (RST) and RST button. CLOCK CIRCUIT Quartz crystal Q1 14.7456 MHz is connected to LPC2138 pin 61 (X2) and pin 62 (X1). Quartz crystal Q2 32.768 KHz is connected to LPC2138 pin 3 (RTCX1) and pin 5 (RTCX2). Page 9 JUMPER DESCRIPTION VREF Connects LPC2138 pin 63 (VREF) to 3.3V. Default state is closed. DAC/PWM When this jumper is in position DAC - connects LIGHT_LCD signal to LPC2138 pin 9 (AOUT); when this jumper is in position PWM – connects LIGHT_LCD signal to LPC2138 pin 1 (PWM5). Default state is PWM – closed. JRST Enables LPC2138 reset via UART. Default state is open. BSL This jumper is connected to LPC2138 pin 41 (P0.14). When this jumper is open, P0.14 is pulled-up to 3.3V via R1 (22k) , when is closed P0.14 is pulled-down via R24 (1k). LOW level on pin P0.14 immediately after reset is considered as an external hardware request to start the ISP command handler. If there is no request for the ISP command handler execution (P0.14 is sampled HIGH after reset), a search is made for a valid user program. If a valid user program is found then the execution control is transferred to it. If a valid user program is not found, the auto-baud routine is invoked. Default state is open. DBG Enables JTAG debug operations. Default state is closed. INPUT/OUTPUT Reset button with name RST, connected to LPC2138 pin 57 (RST). User button with name B1, connected to LPC2138 pin 45 (P0.15). User button with name B2, connected to LPC2138 pin 46 (P0.16). User button with name B3, connected to LPC2138 pin 55 (P0.20). User button with name B4, connected to LPC2138 pin 15 (P0.30). User button with name B5, connected to LPC2138 pin 34 (P0.9). LCD 16x2 display with BACKLIGHT, connected as follows: RS – to LPC2138 pin 12 (P1.17); R/W – to LPC2138 pin 4 (P1.19); E – to LPC2138 pin 8 (P1.18), DB4 – to LPC2138 pin 48 (P1.20), DB5 – to LPC2138 pin 44 (P1.21), DB6 – to LPC2138 pin 40 (P1.22), DB7 to LPC2138 pin 36 (P1.23). Potentiometer with name Contrast for setting LCD contrast voltage. Status Led with name LED connected to LPC2138 pin 17 (P0.31). Buzzer connected to LPC2138 pin 2 (P0.22). Page 10 Relay with name REL connected to LPC2138 pin 58 (P0.23). EXTERNAL CONNECTORS DESCRIPTION JTAG Pin # Signal Name Pin # Signal Name 1 +3.3 V 2 +3.3 V 3 TRST 4 GND 5 TDI 6 GND 7 TMS 8 GND 9 TCK 10 GND 11 RTCK 12 GND 13 TDO 14 GND 15 RST 16 GND 17 Not Connected 18 GND 19 Not Connected 20 GND I2C Pin # Signal Name 1 GND 2 SCL0 3 SDA0 4 3.3V Page 11 EXT Pin # Signal Name Pin # Signal Name 1 P0.4 2 P0.5 3 P0.6 4 P0.7 5 P0.8 6 P0.12 7 P0.13 8 P0.17 9 P0.18 10 P0.19 11 P0.26 12 P0.27 13 P0.28 14 P0.29 15 P1.24 16 P1.25 17 P1.16 18 AOUT 19 3.3V 20 GND FREQ Pin # Signal Name 1 FREQ(P0.10) 2 GND Pin # Signal Name 1 DALLAS(P0.11) 2 GND DALLAS BAT Page 12 Pin # Signal Name 1 VBAT 2 GND RS232/ICSP Pin # Signal Name 1 NC 2 T1OUT 3 R1IN 4 R2IN 5 GND 6 NC 7 NC 8 NC 9 NC PWR: Pin # Signal Name 1 Power Input 2 GND REL_CON: This connector provides the user with access to the contact plates of the relay. Page 13 MECHANICAL DIMENSIONS – All measures are in Inches. Page 14 AVAILABLE DEMO SOFTWARE code (EW-ARM) • LCD drive • RTC code (EW-ARM) RS232 code (EW-ARM) Button, Relay, LED, buzzer demo code (EW-ARM) LCD, RTC, UART, BUTTONs, BUZZER demo code (GNU) by Markus Dornhofer OpenOCD + Eclipse set of projects 1.00 include flash write make file for LPCMT-2138. • • • • Page 15 ORDER CODE LPC-MT-2138 - completely assembled and tested. How to order? You can order to us directly or by any of our distributors. Check our web www.olimex.com/dev for more info. Revision history: Rev. Initial - create September 2005 Page 16 Disclaimer: © 2010 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others. The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products. Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder. The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded. This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product. Page 17
Similar documents
lpc-p2138 development board
Two 8-channel 10-bit ADCs provide a total of up to 16 analog inputs, with conversion times as low as 2.44 ms per channel.
More information