lpc-mt-2138 development board with lcd - olimex.com€¦ · lpc-mt-2138 is small terminal board...

17
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

Upload: vanngoc

Post on 02-Apr-2018

229 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

LPC-MT-2138 development board Users Manual

All boards produced by Olimex are ROHS compliant

Rev. Initial, September 2005Copyright(c) 2010, OLIMEX Ltd, All rights reserved

Page 1

Page 2: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

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: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

Page 3

Page 4: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

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, ARM-USB-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

Page 5: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

– 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

Page 6: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

BLOCK DIAGRAM

Page 6

Page 7: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

MEMORY MAP

Page 7

Page 8: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

SCHEMATIC

Page 8

NA

100n

10uF

/6.3

100n

39pF

39pF

100n

100n

100n

10uF/16V

10p

47uF/6.3V

10p

470u

F/16

VD

C

100n

100n

100n

100n

100n

10uF

/6.3

V10

0n

10K

BA

T54C

BA

T54C

1N41

48

1N41

48

1N41

48

1N41

48

1N41

48

DB

104

GN

D

47m

H

+12V

+5V

+12V

+5V

+5V

+12V

+5V

9VA

C

14.7

456M

Hz

3276

8/6p

F

22K

22K

22K

10K

330

10K

2K

33

4.7K

330

1K

1K

22K

470

22K

22K

22K

100K

22K

240/

1%

390/

1%

0

10K

1K

10K

10K

2K

10K

10K

1K

2K

0

opt

opt

BC

846

BC

846

BC

846

LPC

213X

MA

X32

32

MC

P13

0T

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V 3.

3V

LM11

17

78L0

5

1N47

33

DB

[4..7

],E,R

/W,R

S

AOU

T

AOU

T

AOU

T

B1

B1

B2

B2

B3

B3

B4

B4

B5

B5

BSL

BUZ

BU

Z

DA

LLAS

DAL

LAS

DB4

DB4

DB5

DB5

DB

6

DB6

DB7

DB7

E

E

FR

EQ

FREQ

LED

LED

LIG

HT_

LCD

P0.4

P0.

4

P0.5

P0.

5

P0.

6

P0.

6

P0.

7

P0.

7

P0.8

P0.8

P0.1

2

P0.1

2

P0.1

3

P0.1

3

P0.1

7

P0.1

7

P0.1

8

P0.1

8

P0.1

9

P0.1

9

P0.2

6

P0.2

6

P0.

27

P0.2

7

P0.2

8

P0.

28

P0.2

9

P0.

29

P1.1

6

P1.

16

P1.2

4

P1.2

4P1

.25

P1.2

5

PWM

5

PW

M5

R/W

R/W

RE

LAY

RE

LAY

RS

RS

RST

RST

RST

RTC

K

RTC

K

RX

D0

RXD

0SC

L0SD

A0

TCK

TCK

TDI

TDI

TDO

TD

O

TM

S

TMS

TRST

TRST

TXD

0

TXD

0

B1

B2

B3

B4

B5

12B

AT

1 2BS

L

BU

ZZE

R

C1

C2

C3

C4

C5

C6

C7

C8

C10

C11

C12

C13

C14

C15

C16

C17

C18

C19

C20

C22

C23

CONTRAST

D1

D2

D10 D11

D12

D13

D14

123

DA

C/P

WM

1 2

DA

LLA

S

1 2D

BG

12

34

56

78

910

1112

1314

1516

1718

1920

EX

T

1 2FRE

Q

G2

1234I2

C

12

JRS

T

12

34

56

78

910

1112

1314

1516

1718

1920

JTA

G

L1

DB

411

DB

512

DB

613

DB

714

E6

LIG

HT+

15

LIG

HT-

16

R/W

5

VDD2

VO

3

VSS 1

_RS

4 LED

PW

R

Q1

Q2

R1

R2

R3

R4

R5

R6

R7

R8

R9

R10

R11

R12

R13

R14

R15

R16

R17

R18

R19

R20

R21

R22

R23

R24

R25

R26

R27

R29

R30

R51

R52

R53

R54

R55

RE

LR

EL

123R

EL_

CO

N

1 2 3 4 5

6 7 8 9

RS

232_

ICS

P

RS

T

T1

T2

T3

P0.

0/TX

D0/

PW

M1

19

P0.

1/R

XD

0/P

WM

3/E

INT0

21

P0.

2/S

CL0

/CA

P0.

022

P0.

3/S

DA

0/M

AT0

.0/E

INT1

26

P0.

4/S

CK

0/C

AP

0.1/

AD

0.6

27

P0.

5/M

ISO

0/M

AT0

.1/A

D0.

729

P0.

6/M

OS

I0/C

AP

0.2/

AD

1.0

30

P0.

7/S

SE

L0/P

WM

2/E

INT2

31

P0.

8/TX

D1/

PW

M4/

AD

1.1

33

P0.

9/R

XD

1/P

WM

6/E

INT3

34

P0.

10/R

TS1/

CA

P1.

0/A

D1.

235

P0.

11/C

TS1/

CA

P1.

1/S

CL1

37

P0.

12/D

SR

1/M

AT1

.0/A

D1.

338

P0.

13/D

TR1/

MA

T1.1

/AD

1.4

39

P0.

14/D

CD

1/E

INT1

/SD

A1

41

P0.

15/R

I1/E

INT2

/AD

1.5

45

P0.

16/E

INT0

/MA

T0.2

/CA

P0.

246

P0.

17/C

AP

1.2/

SC

K1/

MA

T1.2

47

P0.

18/C

AP

1.3/

MIS

O1/

MA

T1.3

53

P0.

19/M

AT1

.2/M

OS

I1/C

AP

1.2

54

P0.

20/M

AT1

.3/S

SE

L1/E

INT3

55

P0.

21/P

WM

5/A

D1.

6/C

AP

1.3

1

P0.

22/A

D1.

7/C

AP

0.0/

MA

T0.0

2

P0.

2358

P0.

25/A

D0.

4/A

OU

T9

P0.

26/A

D0.

510

P0.

27/A

D0.

0/C

AP

0.1/

MA

T0.1

11

P0.

28/A

D0.

1/C

AP

0.2/

MA

T0.2

13

P0.

29/A

D0.

2/C

AP

0.3/

MA

T0.3

14

P0.

30/A

D0.

3/E

INT3

/CA

P0.

015

P0.

3117

P1.

16/T

RA

CE

PK

T016

P1.

17/T

RA

CE

PK

T112

P1.

18/T

RA

CE

PK

T28

P1.

19/T

RA

CE

PK

T34

P1.

20/T

RA

CE

SY

NC

48

P1.

21/P

IPE

STA

T044

P1.

22/P

IPE

STA

T140

P1.

23/P

IPE

STA

T236

P1.

24/T

RA

CE

CLK

32

P1.

25/E

XTI

N0

28

P1.

26/R

TCK

24

P1.

27/T

DO

64

P1.

28/T

DI

60

P1.

29/T

CK

56

P1.

30/T

MS

52

P1.

31/T

RS

T20

RS

T57

RTC

X1

3

RTC

X2

5

VB

AT

49

VD

D3(

A)

7

VD

D3-

1(I/O

)23

VD

D3-

2(I/O

)43

VD

D3-

3(I/O

)51

VR

EF

63

VS

S1

6

VS

S2

18

VS

S3

25

VS

S4

42

VS

S5

50

VS

SA

59

X1

62

X2

61

U1

C1+

1

C1-

3

C2+

4

C2-

5

R1I

N13

R1O

UT

12

R2I

N8

R2O

UT

9

T1IN

11T1

OU

T14

T2IN

10T2

OU

T7

V+

2

V-

6

U2

1516

GND

VCC

U2P

WR

3

12

U3

GN

D

VC

CR

ES

ET

AD

J/G

ND

INO

UT

VR

1(3.

3V) G

ND

INO

UT

VR

3

12

VREF

Z1

LPC

-MT-

2138

Rev

. Ini

tial

CO

PY

RIG

HT(

C)

2005

, OLI

ME

X L

td.

http

://w

ww

.olim

ex.c

om/d

ev

+

+

+

+

+

Page 9: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

BOARD LAYOUT

POWER CIRCUITLPC-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

Page 10: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

JUMPER DESCRIPTION

VREFConnects LPC2138 pin 63 (VREF) to 3.3V.Default state is closed.

DAC/PWMWhen 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.

JRSTEnables LPC2138 reset via UART.Default state is open.

BSLThis 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.

DBGEnables 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

Page 11: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

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

Page 12: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

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

DALLAS

Pin # Signal Name

1 DALLAS(P0.11)

2 GND

BAT

Page 12

Page 13: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

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

Page 14: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

MECHANICAL DIMENSIONS

– All measures are in Inches.

Page 14

Page 15: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

AVAILABLE DEMO SOFTWARE

• LCD drive code (EW-ARM)

• 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 LPC-

MT-2138.

Page 15

Page 16: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

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

Page 17: LPC-MT-2138 development board with LCD - olimex.com€¦ · LPC-MT-2138 is small terminal board which uses LPC2138 microcontroller. With its LCD ... of on-chip flash program memory

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