EN
Philips logo
Official user manual

Philips Microcontroller (LPC2138)

16 pages·655 KB·Computer Hardware·PDF·ENDEFRITNLJA
Philips Microcontroller (LPC2138)
Table of Contents 20 sections Contents · Introduction · Description · View of the ITLPC2138 · … ShowHide
Page 1 of the Philips Microcontroller (LPC2138) user manual — User’s Guide
Page 1 · click to enlarge
Page 1
Philips Microcontroller (LPC2138) diagram (page 1)
Fig. 1

_ V1.4

User’s Guide

Philips LPC2138 Target Board

Ordering codeITLPC2138 Dimensions100 x 96 mm
Philips Microcontroller (LPC2138) — User’s Guide diagram (page 1)
Fig. 2 · User’s Guide
Philips Microcontroller (LPC2138) — User’s Guide diagram (page 1)
Fig. 3 · User’s Guide
Philips Microcontroller (LPC2138) — User’s Guide diagram (page 1)
Fig. 4 · User’s Guide
Figure 1ITLPC2138 Target Board
Page 3 of the Philips Microcontroller (LPC2138) user manual — Description
Page 3 · click to enlarge
Page 3

Introduction

Philips LPC2138 Target Board is an evaluation and a development system for Philips ARM7TDMI-S based LPC2138 microcontroller. The ITLPC2138 package consists of a USB cable and a target board populated with Philips LPC2138 CPU, minimum peripherals, JTAG debug connector, ETM trace connector and an on-board integrated iSYSTEM debugger.

The user can write and debug the application using the on-board integrated iSYSTEM debugger, which connects to the PC through the USB connection. The board requires no external power supply since it’s powered from the PC USB port.

An external ARM7TDMI-S debugger (including e.g. ETM support) can be used for debugging as an alternative to the on-board integrated debugger.

Description

View of the ITLPC2138

Philips Microcontroller (LPC2138) — Description diagram (page 3)
Fig. 5 · Description
Philips Microcontroller (LPC2138) — Description diagram (page 3)
Fig. 6 · Description
Figure 2Top View of the ITLPC2138
Page 4 of the Philips Microcontroller (LPC2138) user manual — Block Diagram
Page 4 · click to enlarge
Page 4

Block Diagram

Philips Microcontroller (LPC2138) — Block Diagram diagram (page 4)
Fig. 7 · Block Diagram
Philips Microcontroller (LPC2138) — Block Diagram diagram (page 4)
Fig. 8 · Block Diagram
Figure 3ITLPC2138 Block diagram
1. The board provides 16-pin connector for the optional LCD display (type CMC216x04), which is not included in the package.
Page 5 of the Philips Microcontroller (LPC2138) user manual — Components List
Page 5 · click to enlarge
Page 5

Components List

Name Description P1 Connector for manufacturing purpose P2 ETM Trace connector P3 JTAG debug connector P4 USB connector (integrated debugger) P5 DB9 connector, serial port (UART1) J1 Expansion connector GPIO pins P0.0 – P0.7 J2 Expansion connector GPIO pins P0.8 – P0.15 J3 Expansion connector GPIO pins P0.16 – P0.23 J4 Expansion connector GPIO pins P0.25 – P0.31 J5 Expansion connector GPIO pins P1.16 – P1.23 J6 Expansion connector GPIO pins P1.24 and P1.25 J7 - J10, J15 – J20, J22,J25 Jumpers

J11 RTC power supply input (3.3V) J12 Connector for manufacturing purpose J13 DA converter output J14 Serial port (UART0) J21 16-pin LCD connector LD0 – LD3 User LEDs LD11 Power LED 5V LD12 Power LED 3,3V T0 – T3 Push buttons Reset Reset button TRIM-PT Trimmer potentiometer

Page 6 of the Philips Microcontroller (LPC2138) user manual — Jumper & Connector Descriptions
Page 6 · click to enlarge
Page 6

Power Supply

The target board is powered from the PC USB port, through which winIDEA (IDE) running on a PC, connects to the on-board integrated debugger. Connection is made using a standard USB cable. Battery power supply for RTC can be optionally connected to J11 (see J11 description for more details).

Jumper & Connector Descriptions

  • J7: Trace Port Enable : J7 is set to enable pins P1.25:16 to operate as ETM Trace port after reset. Default not set.
  • J8: Debug Port Enable : J8 is set to enable pins P1.31:26 to operate as a JTAG Debug port after reset. Default is set.
  • J9: Debug Mode : J9 selects whether iSYSTEM on-board integrated USB-JTAG debugger is used or an external debug tool. Default set in position 1-2.*
  • J10: RTC Power Supply Selector : J10 connects Vbat pin of LPC2138 to the main 3.3V.
  • J11: RTC Power supply : PCB terminal providing connection for battery. When battery power supply applied to J11 is used, J10 must be open.
  • J12: Manufacturing purpose connections
  • J13: Analog Output : J13 is analog output from OP amplifier, which connects to output of the DA converter.
  • J14: Serial Port (UART 0) : three pins connected to UART0. See connectors for more details.
  • J15: User LEDs Enable : enables the LED driver connecting the on-board LEDs to GPIO P0.8 – P0.11.
  • J16: User Buttons Enable : enables buttons driver connecting the on-board buttons to GPIO P0.12 – P0.15. Pushing the button generates a low signal. If J16 is set, the CPU will not start in Boot-loader mode (see J25 description).
  • J17: LCD Enable Signal : connects GPIO P0.21 to the LCD enable pin.
  • J18: LCD R/W Signal : connects GPIO P0.22 to the LCD R/W pin.
  • J19: Analog Output Enable : connects DA converter output (GPIO P0.25) to the OP amplifier.
  • J20: Analog Input Enable : connects the TRIM potentiometer to the analog input AD0.0 (GPIO P0.27).
  • J21: 16 Pin LCD Connector : see connectors
  • J22: LCD LED Backlight Enable : J22 is set to turn on LCD backlight.
  • J25: Startup mode (populated on the bottom side of the target board): J25 connects either a pull-up (USER mode) or a pull-down (BOOT-loader mode) to P0.14. Default set in position USER (User mode). J16 must be removed when setting J25 in position BOOT, otherwise J25 setting is not effective.

*Jumper pin 1 is marked with a white square on the ITLPC2138 PCB. If pin 1 cannot be located directly from the ITLPC2138, please use Figure 2 for assistance.

Page 7 of the Philips Microcontroller (LPC2138) user manual — 3-pin serial connector UART0 (J14)
Page 7 · click to enlarge
Page 7

Connectors

DB9 male connector UART1 (P5)

Philips Microcontroller (LPC2138) — DB9 male connector UART1 (P5) diagram (page 7)
Fig. 9 · DB9 male connector UART1 (P5)

Pin No. Symbol 2 RxD 3 TxD 5 GND

The serial port is configured as a standard 3-wire interface. Cross female to female cable is needed for connection with PC computer COM port.

3-pin serial connector UART0 (J14)

Philips Microcontroller (LPC2138) — 3-pin serial connector UART0 (J14) diagram (page 7)
Fig. 10 · 3-pin serial connector UART0 (J14)

Pin No. Symbol 1 RxD 2 TxD 3 GND

The serial port is configured as a standard 3-wire interface.

Page 8 of the Philips Microcontroller (LPC2138) user manual — 20-pin JTAG Debug Connector (P3)
Page 8 · click to enlarge
Page 8

16-pin LCD connector (J21)

Philips Microcontroller (LPC2138) — 16-pin LCD connector (J21) diagram (page 8)
Fig. 11 · 16-pin LCD connector (J21)

Pin Assignment for Crystal Clear technology CMC216x04 LCD

Pin No.SymbolFunction 1GNDGround Terminal 2VddSupply Terminal 3VoPower Supply for LCD Driver 4RSRegister Select Signal 5R/WRead/Write Selection 6EEnable Signal 7DB0Data Bus Line (Not used) 8DB1Data Bus Line (Not used) 9DB2Data Bus Line (Not used) 10DB3Data Bus Line (Not used) 11DB4Data Bus Line 12DB5Data Bus Line 13DB6Data Bus Line 14DB7Data Bus Line 15BL+LED Backlight Power Supply 16BL-LED Backlight Ground
Philips Microcontroller (LPC2138) — 16-pin LCD connector (J21) diagram (page 8)
Fig. 12 · 16-pin LCD connector (J21)

20-pin JTAG Debug Connector (P3)

12 34 56 78 910 1112 1314 1516 1718 1920

An external JTAG debug tool can be connected to a 20-pin P3 debug connector. Jumper J9 must be set to 2-3 position when using an external debugger.

Top View

Page 9 of the Philips Microcontroller (LPC2138) user manual — CPU expansion connectors
Page 9 · click to enlarge
Page 9

38-pin Mictor JTAG Debug & ETM Trace Connector (P2)

SignalPinPinSignal Not used12Not used Not used34Not used GND56TRACECLK Not used78Not used CPU RESET _910Not used CPU TDO _1112T3V3 GND1314Not used CTCK1516GND CPU TMS _1718GND CPU TDI _1920GND CPU TRST _2122GND GND2324P1.19 GND2526P1.18 GND2728P1.17 GND2930P1.16 GND3132P1.20 GND3334P1.23 GND3536P1.22 GND3738P1.21
Philips Microcontroller (LPC2138) — 38-pin Mictor JTAG Debug & ETM Trace Connector (P2) diagram (page 9)
Fig. 13 · 38-pin Mictor JTAG Debug & ETM Trace Connector (P2)

An external JTAG & ETM debug tool can be connected to a 38-pin Mictor P2 debug connector. Jumper J9 must be set to 2-3 position when using an external debugger.

CPU expansion connectors

Philips Microcontroller (LPC2138) — CPU expansion connectors diagram (page 9)
Fig. 14 · CPU expansion connectors
Figure 4Expansion connectors

All CPU signals are available on the expansion connectors, which are standard connectors with a 2.54 mm raster.

Page 10 of the Philips Microcontroller (LPC2138) user manual — Schematic
Page 10 · click to enlarge
Page 10

Schematic

Philips Microcontroller (LPC2138) — Schematic diagram (page 10)
Fig. 15 · Schematic
Philips Microcontroller (LPC2138) — Schematic diagram (page 10)
Fig. 16 · Schematic
Philips Microcontroller (LPC2138) — Schematic diagram (page 10)
Fig. 17 · Schematic
Philips Microcontroller (LPC2138) — Schematic diagram (page 10)
Fig. 18 · Schematic
Page 11 of the Philips Microcontroller (LPC2138) user manual — Licensing the on-board integrated debugger
Page 11 · click to enlarge
Page 11

Licensing the on-board integrated debugger

A 30-days evaluation period starts after the debugger (winIDEA) connects to the ITLPC2138 for the first time. Within the evaluation period, the user should request a regular license from iSYSTEM. Run the request wizard to obtain the license INIT string by pressing the ‘Request INIT…’ button in the ‘Hardware/Hardware/License’ tab.

Philips Microcontroller (LPC2138) — Licensing the on-board integrated debugger diagram (page 11)
Fig. 19 · Licensing the on-board integrated debugger
Page 12 of the Philips Microcontroller (LPC2138) user manual — Use of the on-board integrated debugger
Page 12 · click to enlarge
Page 12

Use of the on-board integrated debugger

Follow below instructions, in order to get a sample application running with “out of the box” experience. All jumpers are set in the default position during the final tests in the manufacturing.

If winIDEA 2006 CD is not part of the package, please obtain winIDEA 2006 setup from your local iSYSTEM office or from www.isystem.com

  • Install winIDEA 2006 (IDE) full setup on a PC
  • Verify jumpers J15-J20 (see Jumpers description for their default position)
  • Verify that jumper J8 is set
  • Verify that jumper J7 is not set.
  • Verify that jumper J9 is set in position 1-2 (on-board integrated debugger enabled).
  • Open winIDEA 2006 application and open a sample workspace for the ITLPC2138 running from the internal flash.
  • Connect the USB cable to the PC and to the ITLPC2138.
  • Windows should auto-detect a new USB device and install belonging USB driver. In case of any problems, the driver is located under winIDEA install directory (e.g. c:\winIDEA\2006\USBDrv).
  • Disconnect the USB cable from the ITLPC2138 and then connect it again. The two power LEDs should turn on. The target board is not powered if the LEDs don’t lit and the problem needs to be resolved before proceeding to the next step!
  • Finally, execute Debug/Debug Reset. This should initialize the development system and the user should be able to write to the internal CPU RAM through the memory window.
  • Next, execute Debug/Download. This should program and run the application until main function. The development system is now ready for the debugging.
Page 13 of the Philips Microcontroller (LPC2138) user manual — Use of an external debugger
Page 13 · click to enlarge
Page 13

Use of an external debugger

An external debugger can be:

  • a JTAG debugger, which connects to a 20-pin P3 connector
  • a development tool supporting JTAG debugging and ETM (on-chip trace), which connects to a 38-pin Mictor P2 connector

Setting up a debug environment for the first time

  • Verify jumpers J15-J20 (see Jumpers description for their default position)
  • Verify that jumper J8 is set
  • Verify that jumper J7 is set if your development tool connects to P2
  • Verify that jumper J9 is set in position 2-3 (on-board integrated debugger disabled)
  • winIDEA 2006 application must to be installed and run once in order to power the ITLPC2138 board through the USB connection.
  • Connect the USB cable to the PC and to the ITLPC2138.
  • Windows should auto-detect a new USB device and install belonging USB driver. In case of any problems, the driver is located under winIDEA install directory (e.g. c:\winIDEA\2006\USBDrv).
  • Disconnect the USB cable from the ITLPC2138 and then connect it again. The two power LEDs should turn on. The target board is not powered if the LEDs don’t lit and the problem needs to be resolved before proceeding to the next step!
  • Disconnect the USB cable from the ITLPC2138 once again, connect the external development system to P2 or P3 (depending on the development system), turn it on and then connect back the USB cable.
  • Execute a debug command equivalent to the CPU reset debug command. This should initialize the development system and the user should be able to write to the internal CPU RAM through the memory window. The development system should be now ready for use.
Page 14 of the Philips Microcontroller (LPC2138) user manual — Troubleshooting
Page 14 · click to enlarge
Page 14

Troubleshooting

The flash boot loader code is executed every time the CPU is powered or reset. The loader can execute the ISP command handler or the user application code. P0.14 is sensed on a rising edge on the RST (CPU reset) pin. If a low level is detected, ISP command handler starts and takes over control of the CPU after reset. If there is no request for the ISP command handler execution (a high-level detected), a search is made for a valid user program. If a valid user program is found then the execution control is transferred to it. Refer to CPU User Manual for more details on CPU startup mode.

Normally, jumper J25 is set for ‘User mode’ by default. Boot-loader mode should be normally selected only for troubleshooting or when the user explicitly wants to use Boot-loader mode. J16 must be removed when Boot- loader mode is selected (see J16 description for more details).

There was a case, where the code was programmed in the flash, which disabled the JTAG debug port shortly after reset. Due to the Philips implementation, the debugger cannot take over control over the CPU immediately after reset, but a part of code is executed before the CPU can be stopped by the debugger. In this particular case, the application disabled JTAG port before the debugger took control over the CPU and the debugger could not connect to the CPU at all. Thereby, note that if the debugger cannot connect to the CPU (winIDEA reports “Cannot stop CPU”), it may be due to bad program in the flash. In this case, Boot-loader mode has to be selected (in order for the CPU to start executing ISP command handler), in which the debugger can always stop the program and take over control over the CPU. Then a new valid program can be programmed in the flash or flash erased. Then the User mode can be used again.

Page 15 of the Philips Microcontroller (LPC2138) user manual — Troubleshooting
Page 15 · click to enlarge
Page 15
Page 16 of the Philips Microcontroller (LPC2138) user manual — Troubleshooting
Page 16 · click to enlarge
Page 16

Disclaimer: iSYSTEM assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information herein.

© iSYSTEM. All rights reserved.

Ask about the Philips Microcontroller (LPC2138)

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Philips Microcontroller (LPC2138)

Be the first to ask — other owners or our team will answer.

Original document

Philips Microcontroller (LPC2138) manual PDF

16 pages·655 KB·Computer Hardware·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…