User Manual for NXP LPC213X Advanced Development Board

51
MICROCONTROLLER BOARDS NXP LPC213X Advanced Development Board

Transcript of User Manual for NXP LPC213X Advanced Development Board

Page 1: User Manual for NXP LPC213X Advanced Development Board

MICROCONTROLLER BOARDS

NXP LPC213X AdvancedDevelopment Board

Page 2: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

NXP LPC213X Advanced Development Board

1.Introduction

PS-LPC2138 ADK, ARM Development Kit is proposed to

smooth the progress of developing and debugging of various

designs encompassing of High speed 32-bit MCU from NXP.

The board supports NXP’s LPC214x family devices with various

memory and peripheral options. It integrates on board two

UARTs, LEDs, Relays, Motor Interface, keypads, an ADC input

and GLCD/LCD Display to create a stand-alone versatile test

platform.

Page 3: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

1.2 - Packages

LPC2138 Development Kit (LPC2138 MCU)

Serial Port Cable/USB Cable

JTAG Programming Cable

Printed User Manual

CD contains

o Software (Programmers, IDE)

o Example Programs

o User Manual

1.3 - Technical or Customer Support

Post your questions :

Pantech forum :

www.pantechsolution.net/forum

Website :

www.pantechsolutions.net

Page 4: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

1.4 General Block Diagram

LPC213X

2x PS/2

16-Channel

10-bit ADC

SPI – DAC

EEPROM

128x64 GLCD

2x16 LCD

Real Time Clock

CAN 2.0

JTAG

8 Nos.

Point LED

Two

Ext Interrupts

PWM

2 X UART

Ethernet9V AC/DC Input

5V Regulator

Stepper Motor/

Relay Outputs

4x4 Matrix

Keypad

1-Wire

Temp Sensor

RS485

Serial

ISP Programmer

3.3V Regulator

Ethernet supply

4 Nos. Seven

Segment Display

8 Nos.

Digital Inputs

Page 5: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

1.5 Specifications

MCU: 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

Standard JTAG connector with arm 2x10 pin layout for

programming and debugging with ARM-JTAG.

Page 6: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

External Peripheral Modules

128X64 GLCD Interface

2x16 Character LCD with Contrast adjust

10Mbps Ethernet Interface.

4-Nos. of common anode seven segment display.

8-Nos. General purpose Point LEDs.

8-Nos. of Slide switches (Digital Inputs).

4x4 Matrix keypad

Stepper Motor Driver Output.

Two Nos. of 5V Relay with termination.

Two PS/2 keyboard Interface.

Communication Protocols

CAN (2.0A and 2.0B) (Bosch)

I2C Two Wire Interface (NXP)

SPI (Motorola)

1-wire Technology (Maxim-Dallas)

Page 7: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Two Full Duplex UART (EIA)

RS485 (EIA)

Other Features

Digital to Analog Converter.

Real Time Clock with Battery Backup.

Serial EEPROM memory.

Digital Temperature sensor

RS485 serial communication through long

distance(>200m)

On board voltage regulator (3.3V - 800mA, 5V – 1000mA).

External USB power supply (5V, 500mA).

On-board FLASH ISP Programming.

Two pushbuttons for Interrupts study.

Power ON status Indication LED.

User selectable jumpers.

Li-ion 3V Battery Holder

Page 8: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

12 MHz crystal on socket, allow easy communication

setup (4x PLL = 48 MHz CPU clock)

32.768Khz crystal and RTC backup battery connector

Extension headers for MCU ports.

2. Connectors and Jumper Details

JP7 - 10PIN Box Header (P0.0 - P0.7)

JP11 - 10PIN Box Header (P0.8 - P0.15)

JP13 - 10PIN Box Header (P0.16 - P0.23)

PWR

JP7

1 23 45 67 89 10

P0.1P0.3

P0.7P0.5P0.4

P0.2P0.0

P0.6

PWR

JP11

1 23 45 67 89 10

P0.13P0.11P0.9P0.8

P0.15P0.14P0.12P0.10

Page 9: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

JP14 - 10PIN Box Header (P0.25 - P0.31)

JP8 - 10PIN Box Header (P1.16 – P1.23)

JP12 - 10PIN Box Header (P1.24 – P1.31)

JP5 – 3pin Header (Power select connectors)

PWR

JP13

1 23 45 67 89 10

P0.19P0.17P0.16

P0.23P0.21

P0.22P0.20P0.18

PWR

JP14

1 23 45 67 89 10

P0.26

P0.30P0.28

P0.29P0.27P0.25

P0.31

PWR

JP8

1 23 45 67 89 10

P1.19P1.17P1.16

P1.23P1.21

P1.22P1.20P1.18

PWR

JP12

1 23 45 67 89 10

P1.29P1.27P1.25P1.24

P1.31P1.30P1.28P1.26

Page 10: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Jumper for Enable Power to MCU

The pins to be closed for the corresponding power

selection is highlighted in the below description.

Short Pin 1&2 of JP5(+3.3V, to All Port I/O connector)

Short Pin 2&3 of JP5(+5V, to All Port I/O connector)

PWR

+3.3V

+5V

JP5

PWR SLT

123

Page 11: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

3.Power Supply

The external power can be AC or DC, with a voltage

between (9V/12V,1A output) at 230V AC input. The ARM

board produces +5V using an LM7805 voltage regulator, which

provides supply to the peripherals. +LM1117 Fixed 3.3V

positive regulator used for processor & processor related

peripherals. USB socket meant for power supply only, user can

select either USB or Ext power supply through JP1. Separate

On/Off Switch (SW1) for controlling power to the board.

Page 12: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

4.MCU Sockets

The ARM Mother board is delivered with NXP’s

LPC2138 64-pin PQFP package, its on-board JTAG connector is

provided to debug & download code to the processor. 5. Flash

Programming Utility.

5.FLASH Programming

NXP (Philips)

+3.3VU2LM117/TO3

VIN3

AD

J1

VOUT2

C30.1 UF

C410uF/10V

JP1POWER

1 2 3

C20.1uf

D3

5V1

- +

D2BRIDGE

14

32 L1 10UH

C1470uf

U1 78XX/TO

VIN1

VOUT3

GN

D2

J1

POWER JACK

12

CN1USB

VC

C1

D-

2

D+

3

GN

D4

GND5

GND6

C50.1 UF

SW1

SW KEY-SPST

1 2 +5V

R1 330E D1

LED

+5V

Page 13: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

NXP Semiconductors produce a range of

Microcontrollers that feature both on-chip Flash memory and

the ability to be reprogrammed using In-System Programming

technology. We have provided the Programming Utility with

the package with which you can install the software and

explore our ARM LPC2138/48 Boards.

Program / Execution Mode

Note : Make switch SW2 (pin-1) to the ‘ON’ position while

programming the

Ensure while SW3 (Rxd and Txd) pins must be ‘on’

position.

PGM Mode

SW2

PGM/EXE

1234

8765

OFF ON

EXE Mode

SW2

PGM/EXE

1234

8765

OFF ON

Page 14: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Step 1: Select Device LPC2138

Step 2: Read Device Signature

Page 15: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Step 3: Locate Hex File and Start Programming

6.On-board Peripherals

The Development board comes with many interfacing options

8-Nos. of Point LED’s (Digital Outputs).

8-Nos. of Toggle switches (Digital Inputs).

2 Lines X 16 Character LCD Display.

Page 16: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

128X64 GLCD Interface

On-chip Real Time Clock with battery backup.

4 Nos. of Seven-segment display.

Digital Temperature Sensor

4 X 4 Matrix keypad.

Relay / Stepper Motor driver circuit.

- SPI - Digital to Analog Converter.

- Serial EEPROM memory.

- RS485 serial communication through long

distance(>200m)

- Two UART for serial port communication through PC.

- Two Nos. of PS/2 Interface.

- 10Mbps Ethernet Interface.

6.1 Light Emitting Diodes

Light Emitting Diodes (LEDs) are the most commonly used

components, usually for displaying pin’s digital states.

Page 17: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

The ARM AD Board have 8 nos., of Point LED, user can

interface the point LEDs with any port.

Connector CN4 for LED connector, when High Level goes

to the pin LED glows.

6.2 Digital Inputs Toggle Switch

This is another simple interface, 8-Nos. of toggle switch,

mainly used to give an input to the port lines, and for

some control applications also.

CN4

LED

1 23 45 67 89 10

LED

1

LED

2

LED

3

LED

4

LED

5

LED

6

LED

7

LED

8

C R15

470E1

2 3 4 5 6 7 8 9

D2D3 D4

D8D5D7

D6

D1

D1

D5D4D3 D7 D8D6D2

Page 18: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

User can change the level of digital inputs whatever they

want, either high or low by simply selecting the jumper

J3. The switches are connected to +5V, in order to detect

a switch state, pull-up or pull-down resistors should be

used.

6.3 LCD 2x16 IN 8-BIT MODE

When using a LCD, the connector CN6 connects the LCD

to Microcontroller port lines. User can use the LCD Data

R1710K

12 3 4 5 6 7 8 9

J3

CON3

123 GND

+5V

SW

231

2

SW

241

2

SW

251

2

SW

261

2

SW

271

2

SW

281

2

SW

291

2

SW

301

2

SS5SS3 SS4SS1 SS2

SS6SS7 SS8

CN2

SLIDE_SWITCH

1 23 45 67 89 10

SS

1

SS

3

SS

2

SS

5

SS

4

SS

8

SS

7

SS

6

Page 19: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

lines to Port P0[0-7], P0[16-24], P0[25-32] and P1[16-31],

it is mandatory not to use P0[8-15], since P0 lines

P0.12(RS), P0.13(R/W) and P0.14 (Enable) connected by

default. The LCD’s contrast can be adjusted by varying the

trimpot (R18).

Before using LCD insert the shunt or shorting link of

jumper J5 mentioned to CHAR legend mark.

Place 2x16 Character LCD to proper place, mentioned

legend in PCB.

P0.12

P0.10P0.11

P0.14P0.13

P0.15

SW31

7SEG27SEG1

RS

7SEG37SEG4

RW

CS1

GRST

CS2

EN

GLCD/7SEGGPWR

CHAR

GLCD

GPWR

R25 10E+5V

+5V

J4

GLCD128X64

123456789

1011121314151617181920

GD4GD2

GD5GD3

GD6

GD1

GD7

GD0

CN6

GLCD/LCD

1 23 45 67 89 10

GD4

GD6

GD2GD3

GD7

GD5

GD1

GNDR1810K

13

2

RSRW

GD0EN

J5

CO

N3

123

Page 20: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Note: The RED Highlighted buttons indicate the position of

SW31 it should be for the above described operation. We

follow the same schematic representation for all switches in

the following chapters of the manual.

6.4 128X64 Graphic LCD

When using a Graphic LCD, the connector CN6 connects

the LCD to Microcontroller port lines. User can use GLCD

Data lines to Port P0[0-7], P0[16-24], P0[25-32] AND

P1[16-31], not P0[8-15], because P0 lines P0.10(CS1),

P0.11(CS2), P0.12(RS), P0.13(R/W) and P0.14 (Enable)

connected by default. The LCD’s contrast can be adjusted

by varying the trimpot (R18).

Before using LCD insert the shunt or shorting link of

jumper J5 mentioned to GLCD legend mark. Adjust(R18)

for GLCD Negative Voltage

Page 21: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Place GLCD to proper place, mentioned in PCB.

Note: SW31 make switch positions above for GLCD. Also

please note the switch positions highlighted for the ARM ADB

to switch over the desired operation.

6.5 RS-232 Communication

RS-232 communication enables point-to-point data

transfer. It is commonly used in data acquisition

P0.12

P0.10P0.11

P0.14P0.13

P0.15

SW31

7SEG27SEG1

RS

7SEG37SEG4

RW

CS1

GRST

CS2

EN

GLCD/7SEG

GRST

GPWR

GPWR

+5VR25 10E

+5V

J4

GLCD128X64

123456789

1011121314151617181920

GD4GD2 GD3

GD6

GD1

GD5GD7

GD4

GD0

CN6

GLCD/LCD

1 23 45 67 89 10

GD6

GD2GD3

GD7

GD5

GD1

GNDCS2CS1

R1810K

13

2

EN

RSRW

GD0

J5

CO

N3

123

GLCD 128X64

GLCD

CHAR

Page 22: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

applications, for the transfer of data between the

microcontroller and a PC.

The voltage levels of a microcontroller and PC are not

directly compatible with those of RS-232, a level

transition buffer such as MAX3232 be used.

RXD1TXD1RXD0

+3.3V

P0.1P0.0

C7

100n

C9

100n

C8100n

C10100n

P2

COM2

594837261

P0.8

U3

MAX3232/SO

GN

D15

VC

C16

R1IN13

R2IN8

T2IN10 T1IN11

C1+1

C1-3

C2+4

C2-5

V+2

V-6

R1OUT12

R2OUT9

T1OUT14

T2OUT7 TX1_OUTTXD1

RXD0RX1_IN

TX0_OUT

RXD1RX0_IN

TXD0

TX1_OUT

RX1_IN

P0.9

C6 100n

SW3

SERIAL SLT

1234

8765

TXD0

TX0_OUT

RX0_IN

P1

COM1 / ISP

594837261

Page 23: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Note : Make switch positions like above, UART0(P1) &

UART1(P2)

Output:

The RS232 is a promising way to communicate with the

Evaluation Board. It is for that we have included the example

codes, with which one can study the RS232 communication.

The example code can be determined from the CD, “\ARM

EVB_LPC2138\Example Codes\Example\UART0&1\”.

To test the RS232 dynamically with the Evaluation Board…

After programming the LPC2138, the user can connect

the RS232 cable from the PC with the COM0/COM1 of the

ARM EVB. The output from the EVB can be displayed in the

PC’s HyperTerminal window as follows:

Page 24: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Start-> All Programs -> Accessories -> Communication ->

HyperTerminal

Choose a name for the window, the COM port number

and select the desired baud rateŦ.

The code can be used to check both UART0 and UART1 of

the ARM LPC2138, by connecting the serial cable with COM0

or COM1 of the EVB.

Ŧ - The default baud rate in our example program is 9600

bits/s.

Screen Shot of the HyperTerminal:

Page 25: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

The output of the example code for UART0 of ARM LPC 2138

6.6 Real Time Clock

The Real Time Clock (RTC) is a set of counters for

measuring time when system power is on, and optionally

when it is off. It uses little power in Power-down mode.

On the LPC2131/2/4/6/8, the RTC can be clocked by a

Page 26: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

separate 32.768 KHz oscillator, or by a programmable

prescale divider based on the VPB clock. Also, the RTC is

powered by its own power supply pin, VBAT, which can

be connected to a battery or to the same 3.3 V supply

used by the rest of the device.

Features

Measures the passage of time to maintain a calendar and

clock.

Ultra Low Power design to support battery powered

systems.

Provides Seconds, Minutes, Hours, Day of Month, Month,

Year, Day of Week, and Day of Year.

Dedicated 32 kHz oscillator or programmable prescaler

from VPB clock.

Dedicated power supply pin can be connected to a

battery or to the main 3.3 V.

Page 27: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

6.7 Serial EEPROM

The AT24C01A/02/04/08/16 provides

1024/2048/4096/8192/16384 bits of serial electrically

erasable and programmable read-only memory (EEPROM)

organized as 128/256/512/1024/2048 words of 8 bits each.

The device is optimized for use in many industrial and

commercial applications where low-power and low-voltage

operation are essential.

Features of AT24Cxx:

Internally Organized 128 x 8 (1K), 256 x 8 (2K), 512 x 8

(4K)

2-wire Serial Interface

Schmitt Trigger, Filtered Inputs for Noise Suppression

Bi-directional Data Transfer Protocol

100 kHz (1.8V, 2.5V, 2.7V) and 400 kHz (5V) Compatibility

Write Protect Pin for Hardware Data Protection

Page 28: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

8-byte Page (1K, 2K), 16-byte Page (4K, 8K, 16K) Write

Modes

Partial Page Writes are Allowed

Self-timed Write Cycle (10 ms max)

6.8 Seven Segment Display

U11

AT24CXX

A01

A12

A23

GN

D4

VC

C8

WP7SCL

6 SDA5

+5V

+5V

R414K7

R384K7

I2C_SCLI2C_SDA

RT_485

P0.2P0.3P0.4P0.5

P0.9

P0.6P0.7P0.8

SCKMISOMOSI

RXD_485TXD_485

I2C_SCLI2C_SDA

SW33

SW DIP-8

12345678

161514131211109

Page 29: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

In Embedded module 4 nos. of common anode seven

segment displays are used. The segment lines of seven

segments LED is being terminated at connector CN5. The digit

select lines are connected to the port pins of LPC2138 by using

BC547. All the common anode displays consume very small

amount of current. User can use segment lines at any port P0,

in all, not (P0.8-P0.15), P1, by default digit select lines

connected to Port P0 of PinP0.10 to P0.13.

U6

7 SEG DISP

E1 D2

CA

3

C4

DP5

B6 A7

CA

8

F9

G10

U7

7 SEG DISP

E1 D2

CA

3

C4

DP5

B6 A7

CA

8

F9

G10

Q2

1

2

3

Q3

1

2

3

Q4

1

2

3

Q5

1

2

3

SEG0SEG1

R19 1K R20 1K R21 1K R22 1K

SEG2SEG3SEG4

SEG6SEG5

SEG7

SEG0SEG1

SEG4

SEG2SEG3

SEG6SEG7

SEG5

SEG0SEG1SEG2

SEG4SEG5

SEG3

SEG6

SEG0

SEG7

SEG1

SEG3SEG2

SEG4SEG5SEG6SEG7

A

D

B

C

F

E

DP

G

R23330E

R24330E

R26330E

R27330E

R28330E

R29330E

R30330E

R31330E

SEG0

SEG1

SEG2

SEG3

SEG4

SEG5

SEG6

SEG7

7SE

G1

7SE

G2

7SE

G3

7SE

G4 C

A

E FG

D

DP

BCN5

7 SEG LED

1 23 45 67 89 10

SEG[0..7] SEG[0..7] SEG[0..7]

SEG[0..7]

U4

7 SEG DISP

E1 D2

CA

3

C4

DP5

B6 A7

CA

8

F9

G10

U5

7 SEG DISP

E1 D2

CA

3

C4

DP5

B6 A7

CA

8

F9

G10

Page 30: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Note: SW31, Make switch settings like above.

6.9 Interrupts

Microcontroller’s two external interrupts lines are

terminated at switches SW5 (EXINT1) and SW6 (EXINT2).

P0.12

P0.10P0.11

P0.14P0.13

P0.15

SW31

7SEG27SEG1

RS

7SEG37SEG4

RW

CS1

GRST

CS2

EN

GLCD/7SEG

+3.3V +3.3V

SW6

B0

R1110k

R1010k

SW5

B1

P0.14 P0.15JP10

EXINT2

123

JP9

EXINT1

123

Page 31: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Note: While using interrupt short pin 1&2 at JP9(EXINT1) and

1&2 for JP10(EXINt2)

The interrupts can be studied with the help of our

example coding enclosed in the package. The code could be

found from the CD,

“\ARM

EVB_LPC2138\ExampleCodes\Example\Two_Interrupts\...”

The output of the interrupts can be visualized using UART…

The program responds to both the interrupts. Int1

increments a variable and displays in the hyperterminal and

Int2 decrements the same variable and displays. The UART1 of

LPC 2138 is used for the interrupt study.

The screen shots of the Interrupt program execution is as

follows…

Page 32: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Interrupt 1

Interrupt 2

Page 33: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

6.10 DS1820 Digital Thermometer

The DS1820 digital thermometer is well suited to

environmental temperature measurement, having a

temperature range of –55C to 125C and an accuracy of

+/-0.5C.

DS1820 connected to Port P0.26 or P0.29, user can use

any of these.

Features

Unique 1-Wire interface requires only one port pin for

communication

Multi-drop capability simplifies distributed temperature

sensing applications

Can be powered from data line. Power supply range is

3.0V to 5.5V

Page 34: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Measures temperatures from -55°C to +125°C (-67°F to

+257°F)

±0.5°C accuracy from -10°C to +85°C

9-bit thermometer resolution, Converts temperature in

750ms (max.)

P0.29

+5V

U16 DS1820

Vdd

3

DQ

2

GN

D1

R48 4K7

JP22

HEADER 3

123

P0.26

Page 35: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

6.11 4x4 Matrix keypad

Keypads arranged by matrix format, each row and

column section pulled by high or low by selection J2, all row

and column lines terminated at CN3.

6.12 Motor / Driver Section

The ULN2803A is a high-voltage, high-current Darlington

transistor array. The device consists of eight npn Darlington

pairs that feature high-voltage outputs with common-cathode

R1

C1R3

C3

R4

C4

R2

C2

CN3

KEYPAD

1 23 45 67 89 10

SW7 SW8 SW9 SW10

SW11 SW12 SW13 SW14

SW15 SW16 SW17 SW18

SW19 SW20 SW21 SW22

R1

R3

R2

C2C1

R4

C3 C4

R16

10K12

3456789

J2

CON3

1 2 3

+5V GND

Page 36: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

clamp diodes for switching inductive loads. The collector-

current rating of each Darlington pair is 500 mA. The

Darlington pairs may be connected in parallel for higher

current capability.

ULN2803 is used as a driver for port I/O lines, drivers

output connected to relay and stepper motor, user can give

external supply J7 PTB connector. Stepper Motor can connect

JP17 or J6 connector.

BUZZER

J7

HEADER 2

12EXT_VCC

STM_C

STM_B

ULN_PWRSTM_DSTM_C

STM_A

J6

HEADER 6

123456

U8

ULN2803A

I11

I22

I33

I44

I55

I66

I77

I88

GND9

O118

O217

O316

O415

O514

O613

O712

O811

COMM10

DR5DR3

DR7

DR4DR1 DR2

DR6DR8

CN7

MOTOR/RELAY

1 23 45 67 89 10

DR2DR1

DR5DR4DR3

DR8DR7DR6

STM_B

STM_A

STM_A

STM_B

JP17

HEADER 6

123456

STM_C

JP20

MOTOR/RELAY

123

STM_DRL1

ULN_PWR+5V

RL2

ULN_PWR

STM_DEXT_VCC

ULN_PWR

Page 37: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Note: Select VCC, Internal or External through JP20 header.

6.13 Relay & Buzzer Section

In ADB Board two no. Of SPDT relays and one continuous

buzzer are used. Both the relays operate on 5V DC. The

outputs of both the terminals of the relay are taken out on

the connecter to connect the external circuitry. The relay can

be connected to the Microcontroller through any of the

selected port. But one has to make sure that the Relay and

Buzzer interfaces to GPIO Ports(D7 – D0) is done through the

Upper Nibble (D6, D5, D4) of the FRC connectors JP7, JP8,

JP11, JP12, JP13, JP14.

Page 38: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

The Relay and Buzzer are connections in the connector

CN7 are highlighted as above.

6.14 SPI DAC

The Microchip Technology Inc. MCP492X are 2.7 – 5.5V,

low-power, low DNL, 12-Bit Digital-to-Analog Converters

(DACs) with optional 2x buffered output and SPI interface.

LS3

BUZZER

1

2

BUZZER+5V

JP18

RE

LAY

O/P

1

123R

1_C

R1_

NO

R1_

NC

LS1

RELAY SPDT

35

412

R1_NC

R1_NOR1_C

R32 330E

R33 330E

R2_

NO

JP19

RE

LAY

O/P

2

123R

2_N

CR

2_C

LS2

RELAY SPDT

35

412

R2_NO

RL2

R2_C

RL2

RL1

R2_NC

D9 LED

D8 LED

RL1ULN_PWR ULN_PWR

+5V

Page 39: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

The MCP492X are DACs that provide high accuracy and

low noise performance for industrial applications where

calibration or compensation of signals (such as temperature,

pressure and humidity) is required.

Features

12-Bit Resolution

±0.2 LSB DNL (typ), ±2 LSB INL (typ)

Single or Dual Channel

SPI™ Interface with 20 MHz Clock Support

Simultaneous Latching of the Dual DACs w/LDAC

Fast Settling Time of 4.5 μs

Selectable Unity or 2x Gain Output

450 kHz Multiplier Mode

External VREF Input

Page 40: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Note : Make switch settings SW33 & SW34 like below

6.15 RS485

The Max485 is a differential line transceiver suitable for

high speed bidirectional data communication on multipoint

bus transmission lines. It is designed for balanced data

transmission and complies with EIA Standards RS-485 and RS-

422. The part contains a differential line driver and a

U13

MCP4291

VDD1

/C/S2

SCK3

SDI4

VOUTA8

AVSS7VREFA6

LDAC5

J8

HEADER 2

12DAC_CS

SCKMOSI

+5VC150.1D

C16100nF

+5V

RT_485

P0.2P0.3P0.4P0.5

P0.9

P0.6P0.7P0.8

SCKMISOMOSI

RXD_485TXD_485

I2C_SCLI2C_SDA

SW33

SW DIP-8

12345678

161514131211109 ETH_WOL

ETH_RSTETH_INT

P0.10

P0.30P0.11

P0.13P0.12P0.29

P0.15P0.14

DAC_CSETH_CS

CAN_INTCAN_RSTCAN_CS

SW34

SW DIP-8

12345678

161514131211109

Page 41: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

differential line receiver. Both the driver and the receiver may

be enabled independently.

Features

Meets EIA RS-485 Standard

5 Mbps Data Rate

Single 5 V Supply

–7 V to +12 V Bus Common-Mode Range

High Speed, Low Power BiCMOS

Thermal Shutdown Protection

Short-Circuit Protection

Driver Propagation Delay: 10 ns

Receiver Propagation Delay: 15 ns

High Z Outputs with Power Off

Page 42: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Exemple Code

\Examples Code\RS485\send\out\send.hex

\Examples Code\RS485\receive\out\receive.hex

6.16 PS/2 Interface

User can connect PS/2 Devices like keyboard, mouse to

the ARM ADB board. The ARM ADB is comprised of two PS/2

RT_485

P0.2P0.3P0.4P0.5

P0.9

P0.6P0.7P0.8

SCKMISOMOSI

RXD_485TXD_485

I2C_SCLI2C_SDA

SW33

SW DIP-8

12345678

161514131211109

U12

MAX485

RO1

DI4 G

ND

5V

CC

8

RE2

DE3

A6

B7

RT_485R44 56E

R45 56E

+5V

R42 4k7

TXD_485

R46 4k7

RXD_485 JP21

HEADER 3

123

Page 43: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Interface circuits namely PS/2(1) and PS/2(2). PS/2’s DATA and

CLK lines are connected to MCU’s Port Lines by default to

P1.16 DATA [PS/2(1)]

P1.17 CLK [PS/2(1)]

P1.18 DATA [PS/2(2)]

P1.19 CLK [PS/2(2)]

For an example, the keyboard connected to the ADB

board it act as a pc keyboard, pressed key code displayed in

LCD or PC’s Hyper terminal window.

6.17 Ethernet

P2.0

VCC

J3

11

22

33

55

66

88R28 270

R27 270

P2.1

JP11

HEADER 2X2

1 23 4

P2.[0

..7]

Page 44: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

The ENC28J60 is a stand-alone Ethernet controller with an

industry standard Serial Peripheral Interface (SPI™). It is

designed to serve as an Ethernet network interface for any

controller equipped with SPI.

The ENC28J60 meets all of the IEEE 802.3 specifications. It

incorporates a number of packet filtering schemes to limit

incoming packets. It also provides an internal DMA module for

fast data throughput and hardware assisted IP checksum

calculations. Communication with the host controller is

implemented via two interrupt pins and the SPI, with data

rates of up to 10 Mb/s. Two dedicated pins are used for LED

link and network activity indication.

Ethernet Controller Features

IEEE 802.3 compatible Ethernet controller

Page 45: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Integrated MAC and 10BASE-T PHY

Receiver and collision squelch circuit

Supports one 10BASE-T port with automatic polarity

detection and correction

Supports Full and Half-Duplex modes

Programmable automatic retransmit on collision

Programmable padding and CRC generation

Programmable automatic rejection of erroneous packets

SPI™ Interface with speeds up to 10 Mb/s

Place all jumpers of header J10 for E

RT_485

P0.2P0.3P0.4P0.5

P0.9

P0.6P0.7P0.8

SCKMISOMOSI

RXD_485TXD_485

I2C_SCLI2C_SDA

SW33

SW DIP-8

12345678

161514131211109 ETH_WOL

ETH_RSTETH_INT

P0.10

P0.30P0.11

P0.13P0.12P0.29

P0.15P0.14

DAC_CSETH_CS

CAN_INTCAN_RSTCAN_CS

SW34

SW DIP-8

12345678

161514131211109

Page 46: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

RJ-45 In-built Transformer

Driver Section

U19

RJ45

TD+1

CT4

TD-2

RD+3

CT5

RD-6

K2

11

A2

12K

110

A1

9

GND8

A1

A2

R53 56E

R54 56E

TD+

TD-

C240.1uF

C230.1uF

L2F-BEAD

RD+

R5956E

R60 56ERD-

ETH_3.3V

J10

HEADER 4X2

2468

1357

+3.3V

ETH_CS

ETH_3.3V

U18

74LS245

A02

A13

A24

A35

A46

A57

A68

A79

G19 DIR

1

B018

B117

B216

B315

B414

B513

B612

B711

VCC

20G

ND

10

WOL*_ETHINT*_ETH

MISO_ETH

+5V

R56 100E

+5V

R5810K

ETH_INTETH_WOL

MISO

Page 47: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

ENC28J60 Section

6.18 CAN (Controller Area Network)

Controller–area network (CAN or CAN-bus) is a

vehicle bus standard designed to allow microcontrollers and

devices to communicate with each other within a vehicle

without a host computer. CAN is a message based protocol,

designed specifically for automotive applications but now also

ETH_RST

ETH_3.3V

R49 1K C1910UF

TD+

INT*_ETHWOL*_ETHMISO_ETH

R55 100ER57 100E

R52 1K

U17

ENC28J60

VCAP1

VSS

2

CLKOUT3

/I/N/T4

/WO/O/L5

SO6

SI7

SCK8

/C/S9

RESET10

VSSR

X11

TPIN-12

TPIN+13

RBIAS14

VDD28

LEDA27

LEDB26

VDDOSC25

OSC224

OSC123

VSSO

SC22

VSSP

LL21

VDDPLL20

VDDRX19

VSST

X18

TPO

UT+

17TP

OU

T-16

VDDTX15

R50330E

R51330E

Y2

25M

Hz

D12LED

D13LED

A2A1

C21 22pf

RD+TD

-

C22 22pf

RD-

MOSISCK

ETH_CS

Page 48: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

used in other areas such as industrial automation and medical

equipment.

PS-PERIPHERAL board has one CAN communication

device, MCU is connected to device through SPI bus. To

enable CAN interface, user can select switch settings

SW33 and SW34.

CAN Interface Switch Settings

CAN Output Terminator

Note : For CAN Interface User Needs Two ARM7 Slicker

Boards (One for Node1 and another for Node2)

ETH_RSTETH_INTETH_WOL

P0.2P0.3

RT_485

P0.4P0.5

P0.9

P0.6P0.7P0.8

MISOSCK P0.11

P0.10

P0.12P0.29P0.30

P0.15P0.14P0.13

DAC_CSMOSI

I2C_SDA

TXD_485RXD_485

I2C_SCLSW33

SW DIP-8

12345678

161514131211109

CAN_INT

ETH_CS

CAN_CSCAN_RST

SW34

SW DIP-8

12345678

161514131211109

CAN - HCAN - L

J9

CAN O/P

12

Page 49: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Remove all jumpers of header J10

CAN output terminations

ARM7 Board 1 (Node1) (CON J9) CAN - L ←→ ARM7 Board 2

(Node2) (CON J9) CAN – L

ARM7 Board 1 (Node1) (CON J9) CAN - H ←→ ARM7 Board 2

(Node2) (CON J9) CAN - H

Page 50: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

Pantech solutions creates information packedtechnical documents like this one every month. And ourwebsite is a rich and trusted resource used by a vibrantonline community of more than 1, 00,000 membersfrom organization of all shapes and sizes.

Did you enjoy the read?

Page 51: User Manual for NXP LPC213X Advanced Development Board

Join the Technical Community Today!http://www.pantechsolutions.net

What do we sell?Our products range from Various Microcontroller

development boards, DSP Boards, FPGA/CPLD boards,Communication Kits, Power electronics, Basic electronics,Robotics, Sensors, Electronic components and much more. Our goal is to make finding the parts and informationyou need easier and affordable so you can createawesome projects and training from Basic to Cutting edgetechnology.