IndexHomepage^

LC2100/ULC2100 - Manual

  1. Introduction
    1. Power Supply
  2. Start-up
  3. Download
  4. "Stand-alone" Programs
  5. Connectors

Autor: Erhard Scherer

Copyright © MCT Paul & Scherer Mikrocomputertechnik GmbH. Alle Rechte vorbehalten.

Dieses Handbuch, wie auch das beschriebene Produkt, wurde sorgfältig erstellt und geprüft. Trotzdem können Fehler und Irrtümer nicht ausgeschlossen werden. MCT übernimmt keinerlei Verantwortung für die uneingeschränkte Richtigkeit und Anwendbarkeit des Handbuchs oder des beschriebenen Produkts und für die aus eventuell vorhandenen Fehlern resultierenden Schäden.

Änderungen ohne vorherige Ankündigung vorbehalten.

^

1 Introduction

The single board computers LC2100/ULC2100 are intentionally designed to be simple. LC stands for Low-Cost and ULC for Ultra-Low-Cost. 2.54mm contact pin spacing makes interfacing with other boards easy.

The controller family LPC2100 has lots of peripherals onchip.

The board does not contain drivers for the interfaces, they must be provided by an application specific board.

The A/D converter expects an input voltage between 0V and Vcc (3.3V). R2 and C6 are used to decouple the reference voltage from Vcc. For correct interfacing to the ADC, additional external hardware is required.

^

1.1 Power Supply

LC2100/ULC2100 is a 3.3 Volt design!

The supply voltage must be in the range between 3.0V and 3.6V. Best use a value slightly above 3.3V.

The core voltage (1.8V) is derived from the 3.3V supply voltage, using a low dropout regulator. The power dissipation (product of current and voltage drop) is ca. 40mA x 1.5V = 60mW. So, the use of LC2100/ULC2100 in battery-powered applications is limited.

^

2 Start-up

The LC2100/ULC2100 development kits comes with:

First, you should install ECO-C-arm on a PC with RS232 port. Next, connect the board via RS232 cable to the PC.

Foto

Connect the DC-jack to a plug power. The voltages are generated on board with two linear regulators. The product of current and voltage difference will produce heat. So keep the voltage as small as posible, a good choice is a value between 7V and 12V.

After finishing software installation and cabling, proceed to compile your first program and run it on your LC2100/ULC2100 board.

^

3 Download

Downloading via RS232 requires the controller to be forced to bootstrap mode. By factory default, P0.14 (ISP-Mode) is connected with jumper J8 (on ULCbaseA) to RTS from RS232. Most likely you will also need this mechanism in your application.

Start ECO-C-arm.

Our goal is now to compile and run a simple C program:

First, we create a project. From the menu bar select "Project-New Project". Give a name of your choice for the project. Now we add the example hello.c to our new project, selecting "Project-Project file list". The example hello.c is in the samples folder.

The program hello.c sends the string "hello, world\n" via RS232 to the terminal

Select your target, LC2194 or LC2138 or ULC2103 etc. Go to "ECO-C-settings", then "Project". Set Target hardware to your target.

Under "ECO-C" we find the menu item "Rebuild all", to compile our program.

The last step is downloading the program to the target and start it. Select "Terminal-Download". The terminal program resets the target automatically by activating the DTR line. After the download has finished, the program is started automatically. And - we should see the message "hello world" on our terminal.

For more information see the ECO-C-arm online help. The IDE is the same as the WinECO-C IDE and described in the WinECO-C manual.

^

4 "Stand-alone" Programs

After download, the program is already stored in the Flash of the LC2100/ULC2100. The number of possible programming cycles is ca. 100000.

The jumper J8 (on ULCbaseA) selects the mode in which the controller starts after reset:

If jumper J8 (on ULCbaseA) is connected (factory default), the internal Flash Boot Loader is activated,
jumper J8 (on ULCbaseA) open starts the application program from Flash.

After "finishing" your program, you can remove the jumper.

The Flash Boot Loader is part of the LPC2100 firmware, see description in the LPC2194 User Manual under "Flash Memory System and Programming".

NOTE: Programs generated with the Demo version of ECO-C-arm run only in bootstrap mode.

^

5 Connectors

The controller LPC2194/LPC2138 is in a 64-pin LQFP package the LPC2103 in a 48 pin LQFP package. These pins are led to the I/O lines, GND and the supply voltage. Thus, all I/Os are externally accessible.

Wiring ST1 for LC2194 and LC2138 (differences in round brackets):

Pin Function Alternative1 Alternative2 Alternative3

1

Reset*

 

 

 

2

GND

 

 

 

3

P1.29

TCK

 

 

4

V33

 

 

 

5

P1.27

TDO

 

 

6

P1.30

TMS

 

 

7

P1.31

TRST*

 

 

8

P1.28

TDI

 

 

9

GND

 

 

 

10

P1.26

RTCK

 

 

11

P0.23

PIPESTAT2

 

 

12

GND

 

 

 

13

P0.25

RD1

 

 

14

P0.24 2194 (P0.31 2138)

TRACECLK

 

 

15

GND

 

 

 

16

TD1 2194 (P0.26 2138)

 

 

 

17

P1.19

TRACEPKT3

 

 

18

GND

 

 

 

19

P1.17

TRACEPKT1

 

 

20

P1.18

TRACEPKT2

 

 

21

GND

 

 

 

22

P1.16

TRACEPKT0

 

 

23

P1.20

TRACESYNC

 

 

24

P1.21

PIPESTAT0

 

 

25

P1.22

PIPESTAT1

 

 

26

P1.23

PIPESTAT2

 

 

27

P1.24 2194 (P1.31)

TRACECLK

 

 

28

P1.25

EXTIN0

 

 

29

P0.0

TxD0

 

 

30

P0.1

RxD0

 

 

31

GND

 

 

 

32

GND

 

 

 

Wiring ST2 for LC2194 and LC2138 (differences in round brackets):

Pin Function Alternative1 Alternative2 Alternative3

1

P0.22

TD3

CAP0.0

MAT0.0

2

P0.21

PWM5

RD3

CAP1.3

3

P0.20

MAT1.3

SSEL1

EINT3

4

P0.19

MAT1.2

MOSI1

CAP1.2

5

P0.18

CAP1.3

MISO1

MAT1.3

6

P0.17

CAP1.2

SCK1

MAT1.2

7

P0.16

EINT0

MAT0.2

CAP0.2

8

GND

 

 

 

9

GND 2194 (Vbat 2138)

 

 

 

10

P0.15

RI1

EINT2

 

11

P0.14

DCD1

EINT1

Bootstrap

12

P0.13

DTR1

MAT1.1

TD4

13

P0.12

DSR1

MAT1.0

RD4

14

P0.11

CTS1

CAP1.1

 

15

P0.10

RTS1

CAP1.1

 

16

P0.9

RxD1

PWM6

EINT3

17

P0.8

TxD1

PWM4

 

18

GND

 

 

 

19

P0.27

AIN0

CAP0.1

MAT0.1

20

P0.28

AIN1

CAP0.2

MAT0.2

21

P0.29

AIN2

CAP0.3

MAT0.3

22

P0.30

AIN3

EINT3

CAP0.0

23

GND

 

 

 

24

GND

 

 

 

25

V33

 

 

 

26

V33

 

 

 

27

P0.6

MOSI0

CAP0.2

 

28

P0.7

SSEL0

PWM2

EINT2

29

P0.4

SCK0

CAP0.1

 

30

P0.5

MISO0

MAT0.1

 

31

P0.2

SCL

CAP0.0

 

32

P0.3

SDA

MAT0.0

EINT1

Wiring ST1 for ULC2103:

Pin Function Alternative1 Alternative2 Alternative3

1

Reset*

 

 

 

2

 

 

 

 

3

 

 

 

 

4

 

 

 

 

5

 

 

 

 

6

 

 

 

 

7

P0.31

TDO

 

 

8

 

 

 

 

9

 

 

 

 

10

RTCK

 

 

 

11

P0.23

AD0.1

 

 

12

 

 

 

 

13

P0.25

AD0.6

 

 

14

P0.24

AD0.2

 

 

15

 

 

 

 

16

P0.26

AD0.7

 

 

17

 

 

 

 

18

 

 

 

 

19

 

 

 

 

20

 

 

 

 

21

 

 

 

 

22

 

 

 

 

23

 

 

 

 

24

 

 

 

 

25

 

 

 

 

26

 

 

 

 

27

 

 

 

 

28

 

 

 

 

29

P0.0

TxD0

MAT3.1;

 

30

P0.1

RxD0

MAT3.2

 

31

 

 

 

 

32

 

 

 

 

Wiring ST2 for ULC2103:

Pin Function Alternative1 Alternative2 Alternative3

1

P0.22

AD0.2

 

 

2

P0.21

SSEL0

MAT3.0

 

3

P0.20

MAT1.3

MOSI1

 

4

P0.19

MAT1.2

MISO1

 

5

P0.18

CAP1.3

SDA1

 

6

P0.17

CAP1.2

SCL1

 

7

P0.16

EINT0

MAT0.2

 

8

 

 

 

 

9

Vbat

 

 

 

10

P0.15

RI1

EINT2

 

11

P0.14

DCD1

EINT1

Bootstrap

12

P0.13

DTR1

MAT1.1

 

13

P0.12

DTR1

MAT1.0

 

14

P0.11

CTS1

CAP1.1

AD0.4

15

P0.10

RTS1

CAP1.1

AD0.3

16

P0.9

RxD1

MAT0.2

 

17

P0.8

TxD1

MAT2.1

 

18

 

 

 

 

19

P0.27

TRST

CAP2.0

 

20

P0.28

TMS

CAP2.1

 

21

P0.29

TCK

CAP2.2

 

22

P0.30

TDI

MAT3.3

 

23

GND

 

 

 

24

GND

 

 

 

25

V33

 

 

 

26

V33

 

 

 

27

P0.6

MOSI0

CAP0.2

 

28

P0.7

SSEL0

MAT0.2

 

29

P0.4

SCK0

CAP0.1

 

30

P0.5

MISO0

MAT0.1

 

31

P0.2

SCL0

CAP0.0

 

32

P0.3

SDA0

MAT0.0

 

Wiring ST3 for LC2194 and LC2138:

Pin Function

1

V33

2

DSR

3

 

4

RxD

5

TxD

6

 

7

 

8

 

9

 

10

GND

The Signal names refer to the LPC2100/ side.

^
www.mct.net: Products: Singe Board Computers: LC2138
IndexHomepage^