Home
LPC2138 Education Board
Contents
1. Bits per second Data bits 8 Y Bariy None zl Stop bits 1 Sd UART settings Advanced Restore Defaults Advanced settings OK Cancel Figure 31 USB Serial Port Properties Dialog Set the desired COM port number under the Advanced settings dialog NXP s FLASH Utility program for ISP program download needs for example a COM port number between 1 and 5 Very often the COM port number selected by the USB Serial Port is higher than this In that case it needs to be changed manually It is common that all COM ports with low numbers are listed as occupied but try to change to a low number anyway Very often it is no problem at all to do that Advanced Settings for COM3 COM Port CoMPotNumber EES Number Setting M USB Transfer Sizes I Cancel Select lower settings to correct performance problems at low baud rates Select higher settings for faster performance Defaults Receive Bytes 4096 M Transmit Bytes 4096 v r BM Options Miscellaneous Options Select lower settings to correct response problems Serial Enumerator Serial Printer Latency Timer msec 16 Cancel If Power Off m Timeouts Event On Surprise Removal Set RTS On Close Minimum Read Timeout msec 0 X Disable Modem Ctrl At Startup Minimum Write Timeout msec 0 E Figure 32 Advanced USB Serial Port Properties Dialog Finally it is time t
2. Embedded Artists AB LPC2138 Education Board User s Guide Page4 5 2 Program Development 31 5 3 Program Download via external JTAG 31 5 4 Program Download via Internal JTAG 32 5 5 Program Download via ISP 34 5 6 FTDI USB Driver 36 5 6 1 USB Driver Behavior 39 6 Product Registration 40 6 1 Product Registration 40 7 Further Information 41 Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 5 1 Document Revision History Revision Date Description A 2009 05 25 Original version Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 6 2 Introduction Thank you for buying Embedded Artists LPC2138 Education Board based on NXP s ARM7TDMI LPC2138 microcontroller This document is a User s Guide that describes the LPC2138 Education Board hardware design It also covers some basic software interface principles regarding the hardware Embedded Artists has also created another document containing many experiments that will guide you through the art of embedded program development 2 1 Contents The box received when ordering the LPC2138 Education Board contains e The LPC2138 Education Board e A component box containing 1 pcs 7 segment display o 1 pes 74HC590 logic chip in DIL package o 1 pes 74HC595 logic chip in DIL package o 1 pes 74HC4511 logic chip in DIL package o 1 pes DS1621 temperature sensor in DIL package o 8 pes 330 ohm resistors
3. LPC2138 Education Board User s Guide Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Learn everything there is to know about the new ARM7 32 bit MCU s Start Developing Your Applications On Day 1 E Embedded Artists EA2 USG 0905 Rev A LPC2138 Education Board User s Guide Page 2 Embedded Artists AB S dra Promenaden 51 SE 211 38 Malm Sweden info EmbeddedArtists com http www EmbeddedArtists com Copyright 2005 2009 Embedded Artists AB All rights reserved No part of this publication may be reproduced transmitted transcribed stored in a retrieval system or translated into any language or computer language in any form or by any means electronic mechanical magnetic optical chemical manual or otherwise without the prior written permission of Embedded Artists AB Disclaimer Embedded Artists AB makes no representation or warranties with respect to the contents hereof and specifically disclaim any implied warranties or merchantability or fitness for any particular purpose Information in this publication is subject to change without notice and does not represent a commitment on the part of Embedded Artists AB Feedback We appreciate any feedback you may have for improvements on this document Please send your comments to support Embedded Artists com Trademarks All brand and product names mentioned herein are trademarks services marks registered tr
4. O1NIS EWMd OQXH L Od LA OO LO 0d 13534 MIMIIIU UU LOO E Xv XELcOd l in Xp X LcOd nidO QNO aNd Pr ii vo E 7HWOSPZ vL im XELZOd7 J ZHI 9StZ vL SI LA Xr LeOd1 I ZHN 0000 CI S LA Figure 3 LPC2138 Education Board Schematic Page 2 Copyright 2009 Embedded Artists AB G E 39945 69 8ZiEZ Z0 S0 6009c e1eQ 148quny iueun2og l 1 T 1 1 1 TTA P4eog uone2np3 xxTZ2d JILI A 9 anzz 8 E g g E a a QNS ano a QNS QNS a zsorn z 9enz oiin z osn goen uon aen gen get aer Lane eroii Ge ay SiShJy pSppequi C I T T I T T OT asT wol eT ues En ss qr woe per l pejunoui jou ynejag ONS ONE AE 9 Jnze AE ane 0 9 629 vas QNO DS dM ANM 13S38 HW 13534 929 M9SZ19LOATr I 9HN MOSZLOLOATPL F 1 56n MOSZLOLOATEL LE JK 954 AL vaal N33Y9 X1 SH Cc SEH sinoiss daasn SZLOLOA TRL T z i 905795185 isor Oy sn SZLDLOATHL 4OJOBUUOD ayo o omg ano ang Ev oAngeuiej lv 3000 4000 24004 AOLJnsLl 40004 Ar L 819 9 919 s9F TO qyag3anuu33 aveau OWL aiquedwog qoouedo i LPC2138 Education Board User s Guide Page 3 Figure 4 LPC2138 Education Board Schematic Copyright 2009 Embedded Artists AB G p 23345 6S 8Z Z Z0 G0 600z ee 14equnwN iueun2og T
5. gt Pun m n Figure 27 ISP Jumpers disable automatic ISP Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 36 Note that the USB to Serial bridge chip must have its driver installed on the PC where FlashMagic and the terminal program are running from Section 5 6 describes the installation procedure 5 6 FTDI USB Driver A USB driver must be installed on your PC computer in order for the USB to UART chip FT2232 to function Make sure to download the latest version of the driver which can be found at http www ftdichip com Drivers V CP htm search for an FT2232 driver for your operating system When the LPC2136 Education Board is connected to the PC via a USB cable the PC will ask for a driver Unpack unzip the downloaded driver file and browse to the position of the driver files After successful driver installation a COM port will be created Before communication with the board can take place the UART settings must be set correctly The following description is valid for Windows XP but other operating systems have similar dialog windows See the USB driver documentation for details if needed To change UART settings first open the System Properties dialog as illustrated in figure 18 System Properties System Resta re d Automatic Updates Remote General Computer Name Hardware Advanced Device Manager Device The Device Manager lists all the har
6. 19 e Watch the RGB LED flash red blue green red blue green etc The trimming potentiometer controls the speed of the flashing e Touch the touch sensors one at a time and watch P1 16 or P1 19 connected LED s flash when a touch is detected e Press the PO 14 push button Watch the P0 14 LED light and watch the decimal dot LED on the 7 segment display light e After having pressed P0 14 push button an audio test is started o Connect the headphone both speaker and microphone to the board o Speak in the microphone and listen that you hear the same you speak with a small delay Turn the blue and green knobs max to the right This will give full volume and amplification Note that there will be a little background noise can be expected A terminal program can be attached to the USB to serial mini B USB connector The test program will send test information regarding the C and E PROM test over the UART Also the UART USB channel can be tested by typing characters in the terminal program The settings for the terminal program are 115 2 kbps 8 data bits no parity bits and one stop bit oe 8N1 5 2 Program Development Consult the QuickStart Program Development User s Manual for more information about the QuickStart Build Environment from Embedded Artists and program development for the ARM in general Keil IAR Rowley all have evaluation and demo versions of their development environments It is highly recommended to test
7. 4 or 8 bit parallel bus should typically be emulated since this is the standard interface to many of these displays e Interface a graphical LCD There are many smaller displays even color that have SPI like serial interfaces When the basic interface has been implemented more advanced projects can be undertaken like o Implement a framework for graphical drawing primitives o Implement a HMI Human Machine Interface create a user interface for an imagined machine o Implement games games are often very fun to implement and also creative in terms or programming skills e Interface a rotary switch with quadrature encoding This involves sampling two inputs and evaluating rotary speed and direction Some rotary switches also have an index signal for detecting a fixed angular position o Together with a graphical display an advanced user interface can be created where the rotary switch is used to move a cursor around the display e Interface a step motor There are unipolar and bipolar versions of step motors Bipolar requires control from two output and unipolar requires control from four pins e Create a RS485 communication network The communication can be anything from very simple to very advanced with error control and data flow matching o Point to point communication o Network communication where one unit is master and the rest are slaves o Network communication where all units are equal token passing or similar protocol e Contr
8. Boyeuy sjosues yono q31 89u Sien pue sq31 S a6ey eoepejul oipny y oDeg jddns samod ebpug 1uvn oi gsn pue eoeyejur 9v IC oBeg S10joeuuoo uoisuedx3 eoepejui gsn ndo c e6ey Page 1 LPC2138 Education Board Schematic Figure 2 Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide G Z neeus 5S 8Z EZ Z0 90 600Z eie Pu 48qunN iueun2og TTA p4eog uone2np3 xxTZ2d l JILI ay sisnag peppequ3 9 XrL2Od1 S LM Ven pejunoui juo aveau gen SWLO 1d XOLG id Qus id OQL Z 1d XO1H SZ id ONUX3 SZ id STOSOVELIPE 1d Z1V1S3dldZ id L1V1S3dldzz id 01V1S3dld iZ id ONAS3OVH LOZ Ld Did3OVHL6L Ld ZDid3OVHLSI ld LDid3OVHLZU Ld Obid3OVHL9r ld 1E 0d Q OdVO CINIS ENIV OE Od E OLYWE OdvO ZNIV 6Z Od ZO1VW ZOdvO LNIV 8Z Od FOLYNI OdVO ONIV Z2 0d SNIV 9Z 0d 1nOV tNIV SZ Od ECO 0 01VW 0 OdVO SLNIV ZZ Od idvO riNIV SNMd LZ 0d 1NI3 LIBSS LIVIIOZ Od Z OdVO Z OLVWOLNIS S I d INIV ZINI3 LIB ST Od Oe Ld VO LSLO LLOd OINIW O LdVO LSLH OL Od ANIS 9INMd LOXH 6 Od GNIV PWMd LOX L 8 Od Z1NI3 2WAAd 0T3SS 0d 8NIV Z OdVO OISOW S Od 1NIV I 01VW OOSIW S Od 9NIV 1 0dVO ONOS V Od LINISOOLVWOVOS t Od Q 0dv2 010S 2 Od pieog peeJg 10 J0199UU09 uoisuedx3 1o o uuoO uoisuedx4
9. Embedded Artists you will get access to more valuable material that will get you up and running instantly e Access to a Real Time Operating System RTOS in the form of a library that can be used for non commercial applications e Access to a number of sample applications that demonstrates different peripheral functions in the LPC2138 processor Registering is simple and done quickly 1 Go to http www EmbeddedArtists com select Support and then Register 2 Type in the product s serial number can be found on the LPC2136 Education Board or on the package carrying the board along with your personal information Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 41 7 Further Information The LPC2138 microcontroller is a complex chip and there are a number of other documents with useful information The following documents are recommended as a complement to this document 1 NXP LPC2138 Datasheet http www standardics nxp com products Ipc2000 pdf 1pc2131 1pc2132 1pc2134 1pc2136 1pc2138 pdf 2 NXP LPC2138 User s Manual http www standardics nxp com support documents microcontrollers pdf user manual 1pc2131 1pc2132 1pc2134 1pc2136 1pc2138 pdf 3 NXP LPC2138 Errata Sheet http www standardics nxp com support documents microcontrollers pdf errata lpc2138 pdf 4 ARM7TDMI Technical Reference Manual Document identity DDI0029G http www arm com pdfs DDI0029G_7TDMI_R3_trm pdf 5 AR
10. Since power is drawn from the USB connector the USB Host in the other end typically a PC will shut down the current delivery completely Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 15 3 1 4 Page 3 OpenOCD Compatible JTAG Interface The JTAG interface of the LPC2138 shares 6 general IO pins GPIOs and is enabled by inserting a jumper on J18 i e pulling P1 26 low during reset When the JT AG interface is enabled the 6 IO pins cannot be used for other purposes than the JT AG interface The heart of the internal JTAG interface is the FT2232 chip from FTDI It is a dual channel USB interface bridge chip Besides being pure serial interfaces there is a parallel interface also This parallel interface on one of the dual channels is used to create a JTAG interface to the LPC2138 cpu The interface is compatible with the open source OpenOCD JTAG software Note that there is also a connector J5 for an external JT AG interface in case the internal JT AG interface is not used J5 is a standard ARM JTAG interface i e a 20 pin 2x10 connector with shoulders By placing jumpers J7 J8 J9 J10 J12 J13 J15 in correct position the LPC2138 JT AG interface will be connected to the external JTAG connector instead of the interface OpenOCD compatible JTAG interface 3 1 5 Page 3 UART 0 and ISP UART O0 on the LPC2138 is connected to the second channel of the FT2232 chip This channel is used as a
11. USB to serial bridge The serial interface is not a full interface only the receive and transmit signals are connected to UART O There are two LEDs connected to the USB to serial channel These indicate Rx and Tx activity and can be a good help when determining if a connection with the board is working properly There is a special circuit to automate the ISP feature In System Programming With the help of two control signals RTS and DTR the processor can be placed in bootloader mode The bootloader uses UART 0 for downloading new program images into the processor either into FLASH or into RAM DTR controls the processor reset and RTS can pull signal P0 14 low The signals are pulled low via diodes If the processor samples DO LA low after reset the bootloader is entered or else the application code is executed The automatic ISP functionality can be disabled by removing two of the four jumpers on J11 Note that some terminal programs notably Windows Hyperterminal control the RTS DTR signals in an unfavorable way making the board always enter bootloader mode or reset mode In these cases the jumpers must be removed Note that UART 0 P0 0 and P0 1 could be disconnected from the USB to serial bridge by removing all four jumpers on J11 3 1 6 Page 3 Reset Generation and I2C E2PROM The reset generation is handled by a mixed signal chip CAT1025 from Catalyst Semiconductor The reset signal will be held active i e low until the sup
12. oo luper IN ZigBee lt TM gt voll EE ON module LPC2138 Education Board v1 4 P0 3 SDa P0 30 3 amp EE o c3 n Oon os oa 3 2 s sss Pe 29 H E P1 17 pias Pid9 UON nan nao nao n O O O O LU uu LT LT LI UUU UU P1 21 P1 22 P1 23 P0 14 Embedded Artists AB C X Bee connector U15 Expansion connector J1 Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 20 3 4 Important Components Figure 9 illustrates the position on the board for some important components in the design USB RX Tx LEDs Audio in amplification R73 Audio out volume R71 d lt j1 pxp m P8 6 fe Reset push TAG G ares ta Pe e RGB LED sJISp p0 14 5 POP LEDI5 button and f GOS Sisp rst B boat E eent LED en s peut g z gt Pa 12 m Sins I PC2138 U1 d o Sla poas C z z a Pa 16l o glenn ae nu nunr Lal RI Trimming yi imas potentiometer uper P0 21 R26 wuu EmbeddedArtists gom B coorD N H po 23 zgpeemo emos A ss see EEPROM and module n nn amp P9 27 Reset Generator z U10 pe 3 SDa P0 30 H p0 31 Pii P1 48 TUE LED10 LED14 ee cds Alain r Hl 49 50 H a 9 o o o e P1 20 P
13. protection has been added for noise immunity The USB interface supports the Soft Connect functionality and voltage sense see LPC214x User s Manual for more information about these functions The Soft Connect feature is controlled by IO pin P0 31 and is activated by placing a 1 5 kohm resistor between the D signal and 3 3V A green LED also light when the resistor is enabled The voltage sense feature is handled by IO pin P0 23 which is connected to VCC of the USB interface 3 1 3 Page 2 Expansion Connector The LPC2138 Education Board is not a monolithic design It includes a breadboard for smaller electrical experiments Expansion connector J2 allows easy access to most LPC2138 pins There is another expansion connector J1 a standard 50 pos 2x25 shouldered pin list with 100 mil pin spacing that makes it possible to expand the design on your own hardware The Experiment Expansion Board can be connected via this expansion connector Most LPC2138 pins are available on this expansion connector as well All cpu signals available on the expansion connectors are protected with 270 ohm series resistors It s not a foolproof protection but will at least reduce the risk for shorts for example grounding an output pin and ESD damages on the board The 5V Vin and 3 3V power voltages are available on the expansion connectors Note that the current consumption of external circuitry on the breadboard expansion boards should not exceed 300 mA
14. 0 3 is SDA Study the DS1621 datasheet for details about how to read the temperature value Also study the DC peripheral block in the LPC2138 user s manual It is a somewhat complex peripheral block to control Expansion Connector for Breadboard J2 1X32 Figure 19 Experiment 5 12C Temperature Sensor The picture below illustrates how the circuit can be created on the breadboard D La baa D D CR ee 5 Sanm be amp Ous B s es iles sees s Res sees munan tee eee sees E g Summum sees Re a5 6 nnn TT a 7em s a Oman 22 GER se tee e ee seer n n a8 2eeeee epee Re rb GX GES 4 DZ te s se ee 27 L 20 s l sa a W ER UREF 3 IN TON abcde tg Ni o3 Figure 20 Experiment 5 12C Temperature Sensor Wiring Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 30 4 6 More Experiments The five experiments described above are a first step to get started with electronic experiments on the breadboard Below are some more ideas for educational experiments Interface other I2C devices There are many chips that are controlled over the DC bus Select an interesting device and implement an interface to that chip e Interface a character LCD for example a 2x16 character display A
15. 00 from 500 1024 not 512 flash bank lpc2000 0x0 0x40000 0 0 0 1pc2000 v2 14745 calc checksum Figure 23 OpenOCD cfg file for LPC2138 Education Board Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 34 Another file named openocd lpc21x8 flash script must also be created This file contains configuration settings for downloading images into the internal flash of the LPC2138 cpu Note that the file name of the hex file to download is set in this file arm7 9 dcc downloads enable wait halt leep 10 File name of hex file to download oll lash probe 0 erase first bank only lash erase sector 0 0 26 flash image file lash write image eset run leep 10 shutdown Q H mz h h GO D Figure 24 OpenOCD flash script file for LPC2138 Education Board In order to simplify flashing of hex files a bat file can be created In this example a file named openocd flash bat has been created with the content as below When activated the bat file will initiate a download of a hex file named main hex echo off openocd ftd2xx exe f lpc21x8 EA jtag flash cfg Figure 25 OpenOCD bat file for flashing the LPC2138 Education Board 5 5 Program Download via ISP UARTHO is used to download program code into the internal FLASH of the LPC2138 The ISP In System Programming feature of the LPC2138 is then used ISP is enabled after reset by pulling pin P0 14 low In order to enable a
16. M Architecture Reference Manual Document identity DDIO100E Book Second Edition edited by David Seal Addison Wesley ISBN 0 201 73719 1 Also available in PDF form on the ARM Technical Publications CD 6 ARM System Developer s Guide Designing and Optimizing System Software by A N Sloss D Symes C Wright Elsevier ISBN 1 55860 874 5 7 Embedded System Design on a Shoestring by Lewin Edwards Newnes ISBN 0750676094 8 GNU Manuals http www gnu org manual 9 GNU ARM tool chain for Cygwin http www gnuarm org 10 An Introduction to the GNU Compiler and Linker by Bill Gatliff http www billgatliff com 11 LPC2000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC2xxx series of microcontrollers http groups yahoo com group Ipc2000 12 The Insider s Guide to the NXP ARM7 Based Microcontrollers by Trevor Martin http www hitex co uk arm Ipc2000book index html Especially note document 3 There are a number of bugs in the processor that it is important to be aware of Note that there can be newer versions of the documents than the ones linked to here Always check for the latest information version Copyright 2009 Embedded Artists AB
17. TA P4eog uone2np3 xxTZ2Od GUILL gy sisnay peppequ3 0 A9V 3n00 Lis rd md Si099veiig indui euoudoaJolA WS zzoxez T z 1 W98EWT en ONS ONS A8 20001 24004 wor 3 CAD Si099v8LWT8 Jeyiduge sayeads LPC2138 Education Board User s Guide Figure 5 LPC2138 Education Board Schematic Page 4 Copyright 2009 Embedded Artists AB G G 2894S 65 87 27 Z0 G0 600Z Heg Sjueuoduioo aayeway 14equnw iueun2og TTA p4eog uone2np3 xxTZOdl 3 Il 84 Sisnag peppequ 5 uneyeq qaraou ayo e natanoor uoo wi and ON ON ejnpoui JH IN L eegx i 3SN3S 3SN3S HOnOL 259 SSNAS HONOL 1S9 shay 10sues uono SCT pue suognq usng LPC2138 Education Board User s Guide Figure 6 LPC2138 Education Board Schematic Page 5 Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 14 The following subsections describe in more detail each part of the design page by page in the schematic 3 1 1 Page 2 CPU LPC2138 The core part of the design is the NXP LPC2138 microcontroller It is an ARM7TDMI S CPU core with many different peripheral units and on chip memory 512 kByte FLASH and 32 kByte SRAM There is no external memory bus interface The microcontroller crystal frequency is 14 7456 MHz This frequency has been selected in order to allow close to maximum execution speed 4 x 14 7456 MHz 58 9824 MHz as we
18. ademarks or registered service marks of their respective owners and should be treated as such Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 3 Table of Contents 1 Document Revision History 2 Introduction 2 1 Contents 2 2 Features 2 3 Expansion Connector 2 4 Experiment Expansion Board 2 5 ESD Precaution 2 6 Other Products from Embedded Artists 2 6 4 Design and Production Services 2 6 2 LPC2xxx LPC3xxx OEM Education QuickStart Boards and Kits8 0 0 o O00 A 3 Board Design 9 3 4 Board Schematics 9 3 1 1 Page 2 CPU LPC2138 14 3 1 2 Page 2 USB only if LPC214x mounted 14 3 1 3 Page 2 Expansion Connector 14 3 1 4 Page 3 OpenOCD Compatible JTAG Interface 15 3 1 5 Page 3 UART 0 and ISP 15 3 1 6 Page 3 Reset Generation and I2C E2PROM 15 3 1 7 Page 3 Power Supply 15 3 1 8 Page 4 Audio Interface 16 3 1 9 Page 5 Push buttons and LEDs 16 3 1 10 Page 5 RGB LED 16 3 1 11 Page 5 Analog Input 16 3 1 12 Page 5 Touch sensor Keys 17 3 1 13 Page 5 XBee RF Module 17 3 2 Jumpers 18 3 3 Connectors 19 3 4 Important Components 20 3 5 Mechanical Dimensions 21 3 6 Audio Interface 22 4 Breadboard Experiments 23 4 1 Experiment 1 7 segment LED Display 24 4 2 Experiment 2 7 segment Decoder 26 4 3 Experiment 3 Counter 27 4 4 Experiment 4 Shift Register 28 4 5 Experiment 5 DC Temperature Sensor 29 4 6 More Experiments 30 5 Getting Started 31 5 1 Test program 31 Copyright 2009
19. cation interfaces specific analog or digital I O and power supplies Embedded Artists has a broad and long experience in designing industrial electronics in general and with NXP s LPC2xxx LPC3xxx microcontroller family in specific Our competence also includes wireless and wired communication for embedded systems For example IEEE802 11b g WLAN Bluetooth ZigBee ISM RF Ethernet CAN RS485 and Fieldbuses 2 6 2 LPC2xxx LPC3xxx OEM Education QuickStart Boards and Kits Visit Embedded Artists home page www EmbeddedArtists com for information about other QuickStart Education OEM boards kits or contact your local distributor Copyright 2009 Embedded Artists AB Ig EJ o Hd K 72 D 1 g m E S oO Kai lu Ka c N e a EN 3 Board Design This chapter contains detailed information about the electrical and mechanical design of the LPC2138 Education Board 3 1 Board Schematics G T neeus B5S9 8c EZ c20 G0 600c He0 14 qunN iueun2og TTA p4eog uone2np3 XxTZId1 3111L ay sisnag peppequ3 D uoisiaal jeutbuO OL eH yiiqneduioo GQQuedo 104 suomjoeuuoo 9 v 1f P9991109 pue POLY PEPPY VLASH eoe d jnejep u aje sieduun up yey lueuen6 ou s 3194 eouis Spjeoq jenjoe uo suonisod jeduun oeuo sAemje wanamoh oneuieuos aui ui pejeorpur aje sBumes Jadwni ynejeq jueuoduioo pejunoui jou j euuou pepeo1un 4 eoepejui eagx pue Indu
20. circuit board pcb The sensors function in pairs where the difference between the two is measured in order to detect a touch on one of them The principle is to measure the capacitance which is affected then a human finger is above i e touches the copper layout in the pcb In order to measure the relative capacitance on C51 P1 24 is configured as an input and P1 25 as an output P1 25 is pulled high and the time until P1 24 is also high is measured The higher capacitance the longer time it takes to detect a high level on P1 24 By comparing the time difference between C51 and C52 touches can be detected Note that the design is simplistic and might not be fully functional over a large temperature range and or humidity range A more advanced design is needed for better performance The design however serves as illustrating the principle for simple touch detection 3 1 13 Page 5 XBee RF Module There is a connector for Digi MaxStream s XBee modules Both XBee and XBee Pro modules can be used Note that the XBee module is not included and must be purchased separately for example from www digikey com The module is connected to UART channel 1 Four control signals are used to control the interface to the module Three LEDs indicate the status of the module Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 18 3 2 Jumpers The LPC2138 Education Board has got a number of jumpers Figure 7 ill
21. components is included in the board kit These components shall be mounted on the breadboard for electronic experiments and programming exercises of how to control external hardware The components included in the box are e 7 segment display for experimenting with LEDs and controlling multiple LEDs simultaneous e 330 ohm resistors for limiting the current through the 7 segment LEDs e 74HC590 logic chip for experimenting with a binary counter with a storage register and 3 state output The datasheet is found at http www nxp com acrobat_download datasheets 74HC590_2 pdf e 74HC595 logic chip for experimenting with a serial shift register connected to the spi bus The datasheet is found at http www nxp com acrobat_download datasheets 74HC_HCT595_4 pdf e 74HC4511 logic chip for experimenting with BCD to 7 segment decoders as an alternative way of driving the 7 segment display The datasheet is found at http www standardics nxp com products hc datasheet 74hc45 11 pdf e DS1621 DC temperature sensor for experimenting with sensors and communication over the PC serial bus The datasheet is found at http datasheets maxim ic com en ds DS 1621 pdf e A package of single wire cables for connecting the components on the breadboard to the expansion connectors on the LPC2136 Education Board It is necessary to read the datasheets of the different integrated circuits in order to experiment with them Figure 12 illustrate the expansion conne
22. ctor J2 for interfacing the LPC2138 signals the power connectors J14 J16 for powering the breadboard design and the breadboard itself Text on the pcb locates where to find the different signals on the expansion and power supply connectors Note that there is no current limiting protection on the powering Be careful not to short Vin or 3 3V to GND Also note that only the wires should be used to connect to expansion connector J2 The wires on the resistors are too thin and result in unreliable connections Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 24 Power connectors J14 J16 for powering breadboard electronics See text on pcb to locate VIN 45V 3 3V and GND EC EI z ja C l I I I I I I I I I i l 1 Dosa C Kim ER El tJ Headphone Microphone D ooo U mu u K 5 TNI 82 Gd 13533 a iv 2o N CH ZigBee lt TM gt ol EE ON LPC2138 Education Board v1 1 module ung dE P 2 SCL n P0 3 SD 9 gu S P4 46 P41 47 P448 P1 19 a a on a on a ana H Oo oon noon ngp TE E Ar AB C 2007 Expansion connector for breadboard J2 see text on pcb to locate LPC2138 signals Breadboard area 4 1 Experiment 1 7 segment LED Display In this experiment a 7 segment display shal
23. ded Artists AB LPC2138 Education Board User s Guide Page 33 A number of configuration files are needed in order to connect OpenOCD to the LPC2138 Education Board The OpenOCD documentation is a must to read in order to get everything working The following file named 1pc21x8 EA jtag flash cfg must be created It configures the basic FT2232 interface on the board as well as configures how to flash programs into the internal flash of the LPC2138 cpu fdaemon configuration telnet port 4444 gdb port 3333 interface interface ft2232 d ft2232 device desc Dual RS232 A signal connection Selects a pre defined ft2232 layout jtagkey scheme jtagkey ft2232 vid pid 0x0403 0x6010 jtag speed 3 jtag nsrst delay 200 jtag ntrst delay 200 Zuse combined on interfaces or targets that can t set TRST SRST separately reset config trst and srst srst pulls trst fjtag scan chain format L IRC IRCM IDCODE Length IR Capture IR Capture Mask IDCODE jtag device 4 0x1 Oxf Oxe target configuration daemon startup reset target type startup mode target arm7tdmi reset mode lt chainpos gt endianness variant target arm7tdmi little run and init 0 arm7tdmi s r4 run and halt time 0 30 Reference to script file working area 0 0x40000000 0x4000 nobackup for flashing images to internal flash f flash options LPC21x8 target script 0 reset openocd lpc21x8 flash script LPC2138 12MHz 0x7D0
24. dware devices installed on Manager your computer Use the Device Manager to change the properties of any device Driver Signing lets you make sure that installed drivers are compatible with Windows Windows Update lets you set up how Windows connects to Windows Update for drivers Driver Signing Windows Update Hardware Profiles ya Hardware profiles provide a way for you to set up and store different hardware configurations Hardware Profiles Figure 28 System Settings Dialog Select the Device Manager and open the Ports list as illustrated in Figure 29 Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 37 m r Device Manager Fle Action View Help e ma mm a IDE ATA ATAPI controllers amp IEEE 1394 Bus host controllers gt Keyboards 1 75 Mice and other pointing devices amp Monitors Bil Network adapters BS 1394 Net Adapter Bill Broadcom 440x 10 100 Integrated Controller Bil Dell draadloze WLAN 1450 dubbele band WLAN Mi E9 Wireless G Notebook Adapter with SRX gt amp 4 Other devices l B PCMCIA adapters Sf Ports COM amp LPT 5 SEI Port COM3 W Processors amp SCSI and RAID controllers Sound video and game controllers d System devices amp Universal Serial Bus controllers Figure 29 Device Manager Dialog Two new COM ports USB Serial Port will be listed und
25. e S P P1 23 Embedde i 2007 SW2 SW5 P0 14 Push Touch sensors Push buttons button SW6 and C51 and C52 LED LED8 Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide 3 5 Mechanical Dimensions Figure 10 contains a drawing of the board that includes mechanical measures Uolume RX TX Not on Good Et EE d LPC2138 link oo D ois dob 225205 EI uns L3 n P9 0 p P0 1 PQ 2 ms of POWER Ppa 3 jo OOO et GND 5 3uUIN m P8 5 UsB Ut3 CG sJP0 1 pxD PO 6 JTAG e pg 0 TxD rs POZ ISP P0 14 t1 P0 8 Alt EI DC 1sp msr Pes ok ooo v De Ed Qee nee em eee 108 mm 0 11 Seso bh PP P ECK 5 oon O BERI S 120 mm 0 17 8 18 0 19 8 28 8 21 r1 P0 22 n pg 23 TNI amp 8Z 0d 13534 DCODD 0 D00000000000 TDUUDUUDDUUDUD vuu EmbeddedRrtists c Ooo KE mo SN aa ZigBee lt TM gt E P80 27 P0 28 PG 2 SCL P0 29 PQ 3 SDA P 30 B p0 31 12 Pits Piet 49 UREF r rira a na LE T n noo n n n P1 m i e O o O O O HEU uuu UUU uuu UU P1 20 P1 21 P1 22 P1 23 P0 14 60 mm LPC2138 Education Board v1 1 module e Embedded Artists AB C 2007 5 7 mm 116 mm 127 mm Copyright 2009 Embedded Artist
26. ectly connected to the Experiment Expansion Board via the expansion connector and a 50 pos flat cable Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 8 Figure 1 LPC2138 Education Board with Experiment Expansion Board 2 5 ESD Precaution Please note that the LPC2138 Education Board come without any case box and all components are exposed for finger touches and therefore extra attention must be paid to ESD Hlectro Static Discharge precaution Make it a habit always to touch the metal surface of the USB connector for a second with both hands before touching any other parts of the boards That way you will have the same electrical potential as the board and therefore minimize the risk for ESD Note that Embedded Artists does not replace boards that have been damaged by ESD 2 6 Other Products from Embedded Artists Embedded Artists have a broad range of LPC2xxx LPC3xxx based boards that are low cost and developed for prototyping development as well as for OEM applications Modifications for OEM applications can be done easily even for modest production volumes Contact Embedded Artists for further information about design and production services 2 6 1 Design and Production Services Embedded Artists provide design services for custom designs either completely new or modification to existing boards Specific peripherals and I O can be added easily to different designs for example communi
27. er the Ports list Note that the picture only illustrate one COM port but the FT2232 chip will create two COM ports one for each channel Configure the second one Right click on the second new USB Serial Port and select Properties as illustrated in Figure 30 Ll Device Manager can File Action View Help e GG z lt a IDE ATA ATAPI controllers 7 IEEE 1394 Bus host controllers c Keyboards 73 Mice and other pointing devices USB Serial Port Monitors Bill Network adapters Bl 1394 Net Adapter E9 Broadcom 440x 10 100 Integrated Controller 5 Dell draadloze WLAN 1450 dubbele band WLAN Mini P B Wireless G Notebook Adapter with SRX amp Other devices H E PCMCIA adapters 3 Ports COM amp LPT Y USB Serial Port CON Update Driver g Processors See SCSI and RAID controlle Uninstal 9 Sound video and game d System devices Scan for hardware change amp Universal Serial Bus con Properties H H H amp tt Properties Opens property sheet for the current selection Figure 30 Device Manager Port Dialog Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 38 Set 115200 bits per second 8 data bits none parity 1 stop bit and none flow control as illustrated in Figure 31 Select Advanced settings USB Serial Port COM3 Properties General Port Settings Driver Details
28. g gg gg gg gg gg gg sg A s SS Sg gg gg gg gg gg Sg gg gg gg gg gg gg gg g s SS gg gg gg gg gg gg g BS Sg gg gg gg gg gg geg me i Figure 14 Experiment 1 7 segment LED Display Wiring Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 26 4 2 Experiment 2 7 segment Decoder In this experiment the 7 segment display is still used but the segments are not directly driven by output pins on the LPC2138 Instead a BCD to 7 segment decoder chip 74HC4511 is used The LPC2138 output the digit to display on BCD coding on P0 8 P0 11 See the 74HC4511 datasheet for details how to control the three control inputs of the chip Expansion Connector 7 segment display for Breadboard 1X32 Figure 15 Experiment 2 7 segment Decoder 2 Mm e LC A A as e se E se Na 7 as ee se e e LR WW ee e e z d EE Wa HEED HILL vk Figure 16 Experiment 2 7 segment Decoder Wiring Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 27 4 3 Experiment 3 Counter This experiment builds on the previous experiment A binary counter with a storage register and 3 state outputs 74HC590 should be controlled from the LPC2138 The four lower output bits LSB from the counter drives the 7 segment display via the decoder ch
29. ignal connections e Red LED controlled by signal P0 17 MATI 2 e Blue LED controlled by signal P0 18 MATI 3 e Green LED controlled by signal P0 21 PWM5 The MAT signals are available as alternative signals on the pins and are generated from the timer peripheral unit Timer 1 must be used to control the red and blue LEDs Similarly the PWM signals are available as alternative signals on the pins and are generated from the PWM peripheral unit PWM unit 5 controls the green LED Note that the LEDs are driven from the 5V power supply The reason for that is that the forward voltage drop of the blue LED is typically around 3 5V which is more than the 3 3V power supply for the LPC2138 3 1 11 Page 5 Analog Input The LPC2138 has got 14 analog inputs connected to two different 10 bit ADC Analog to Digital Converter The conversion time is as short as 2 44 us and the input pins VREF and VSSA are used as conversion reference There is one trimming potentiometer that is used to generate a variable voltage to analog input 1 P0 28 AINI Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 17 The signal P0 28 can be used as general purpose pin if the analog input is not used In this case the analog voltage from the trimming potentiometer is easily disconnected by removing the jumper on J22 3 1 12 Page 5 Touch sensor Keys The two touch sensor keys are created in the top copper layer in the printed
30. ip 74HC4511 See the 74HC590 datasheet for details of how to control the four inputs Expansion Connector for Breadboard E E SS S fs oe Fife ISIS ISIS ISK 1X32 Figure 17 Experiment 3 Counter Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 28 4 4 Experiment 4 Shift Register This experiment is yet another way of controlling the 7 segment display This time via a shift register The shift register 74HC595 is connected to the SPI bus on the LPC2138 See the 74HCS595 datasheet for details of how to control the five inputs First use the LPC2138 in GPIO mode and simulate the spi bus Verify that the display can be controlled When this works switch to use the spi bus to transfer a byte 1 e 8 bits to the shift register It is also possible to read back the bits in the shift register PO 5 is connected to the last bit in the shift register P0 5 is the spi bus input MISO Expansion Connector 7 segment display for Breadboard J2 Es po 5 EB ba N E 1X32 Figure 18 Experiment 4 Shift Register Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 29 4 5 Experiment 5 I2C Temperature Sensor In this experiment a temperature sensor shall be connected to the I2C bus On the LPC2138 the I2C interface is available on pins P0 2 and P0 3 P0 2 is SCL and P
31. l be controlled One output pin shall drive one LED segment The port pins of the LPC2138 microcontrollers have got a 4 mA driving capacity enough to directly drive the LEDs in a 7 segment display There are actually 8 LEDs since there is also a dot LED Figure 13 illustrates how to connect the 7 segment LED display on the breadboard to the expansion connector J2 The LEDs in the display are connected to pin PO 8 P0 15 The 380 ohm resistors plus the internal 270 ohm resistor on the board limit the current to about 2 75 mA The LEDs in the display are connected with common cathode A high output pin on the LPC2138 drives current through a LED and it will light Note that the resistors cannot be connected directly to expansion connector J2 since the wires are too thin It would result in unreliable connections Figure 14 illustrates one way of how the wiring can be done There are several other solutions of how to do it Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Expansion Connector 7 segment display for Breadboard LED1 LSDO39A be D lt D lt D lt D Figure 13 Experiment 1 7 segment LED Display The picture below illustrates how the circuit can be created on the breadboard Wires are drawn in the picture instead of a picture of the wires in order to increase visibility cH gg gg gg gg gg 9 On 989 8997 gg gg gg 9 9 9 9 cas 999 99 97 9353 55 8 g
32. ll as to provide standard serial communication bit rates The maximum cpu clock frequency is 60 MHz There is also a 32 768 kHz crystal clock for the on chip real time clock peripheral unit or RTC for short The microcontroller can be placed in a very low power mode while the RTC operates and keeps track of time Power for the RTC during these low power modes comes from the VBAT input pin Power is sourced either from the 3 3V power supply or the external VBAT IN signal available on the expansion connector depending on which one have the highest voltage The LPC2138 also contains an Analog to Digital Converter or ADC for short as well as a Digital to Analog Converter DAC These two peripheral units need a reference voltage which is supplied from the VREF input pin Jumper J3 selects two different sources for VREF either the 3 3V power supply low pass filtered for noise immunity or an external precision voltage the VREF IN pin on the expansion connector 3 1 2 Page 2 USB only if LPC214x mounted Note that different cpu s can be mounted on the board The primary version is LPC2138 but any processor in the LPC213x and LPC214x series will fit mounted on special orders If a LPC214x family member is mounted there will be an additional USB interface on the board This optional part of the design is also found on schematic page 2 The LPC214x contains a USB 2 0 device interface as one of its peripheral units Low pass filtering and ESD
33. o Package of single wire cables e A50 pos flat cable for expansion e A USB cable of type mini B to A for powering and communicating with the boards from a PC e A headphone with integrated microphone e A DVD with additional material and programs including complete and evaluation versions of different development environments 2 2 Features Embedded Artists LPC2138 Education Board with NXP s ARM7TDMI LPC2138 microcontroller lets you get up and running quickly The small form factor board offers unique features that ease your learning curve and speed up your program development Here are some of the features e NXP ARM7TDMI LPC2138 microcontroller with 512 KByte program Flash and 32 KByte SRAM e 14 7456 MHz crystal for maximum execution speed and standard serial bit rates e On board Peripherals Audio interface via 3 5mm headphone and microphone connectors UART to USB bridge interface on UART 0 based on FTDI FT2232 chip OpenOCD compatible embedded JTAG interface based on FTDI FT 2232 chip Analog input via trimmer potentiometer Digi MaxStream XBee module interface module not included Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 7 RGB LED each color can be controlled via PWM signal 5 LEDs connected to signals P0 14 and P1 20 23 5 Pushbuttons connected to signals P0 14 and P1 16 19 Reset push button and Reset LED 2 Kbit TC EPROM e Connec
34. o be connected to a speaker with associated amplifier via jumper connector J20 Volume can be adjusted via a trimming potentiometer The amplifier is powered from 5V VIN There is also a microphone input designed for audio frequencies The amplification factor can be adjusted via a trimming potentiometer R73 The microphone amplifier is powered from 3 3V The audio interface input and output is compatible with a standard headphone that can be bought for PC s The headphone included in the LPC2138 Education Board kit is of this type 3 1 9 Page 5 Push buttons and LEDs There are five push buttons and LEDs Four of the push buttons are connected to P1 20 P1 23 Four of the LEDs are controlled by P1 16 P1 19 The LEDs light when signals are pulled low Signal P0 14 is connected both to a push button and a LED Signal P0 14 has got many alternative functions Besides being a general purpose i o pin it can be configured as an interrupt input pin on the processor The signal is also used to enable ISP mode programming processor flash via UART 0 The signal must be sampled high after reset in order to start normal program execution or else the internal bootloader will be activated ISP mode 3 1 10 Page 5 RGB LED There is a full color RGB LED that could be controlled by pulse width modulated PWM signals The intensity of each LED can easily be controlled by adjusting the duty cycle of the signals The list below explains the s
35. o test if the USB Serial Port has been successfully installed and configured Start a terminal program Connect to the correct COM port with 115200 bits per second 8N1 no flow control Remember not to have the USB ISP jumpers inserted Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 39 5 6 1 USB Driver Behavior Sometimes the USB COM port does not enumerate properly when the board is connected to the PC This is a known feature of the USB driver If you experience this problem just unplug the board shortly and then plug it in again A new COM port that can be accessed properly should be created the second time This problem may occur after every time you start i e power cycle your PC If the ISP jumpers are inserted pressing the reset button is often required in order to startup the board it can be placed in bootloader mode during startup due to RTS DTR signal handling by the USB driver during startup Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 40 6 Product Registration The accompanying DVD contains information and programs that will ease your program development Note that there may be newer versions of different documents and programs available than the ones on the disk See below for information about the product registration process which allows you to access the latest versions 6 1 Product Registration By registering as a customer of
36. ol multiple LEDs with just a few outputs Two LEDs are connected in parallel opposing directions between each output Time multiplexing allows control of each LED separately o Three outputs can control 6 LEDs o Four outputs can control 12 LEDs Wireless communication with XBee module The LPC2138 Education Board has a socket for the XBee modules from Digi former Maxstream There are many different experiments that can be carried out with these modules o Point to point communication o Creating a ZigBee network o Create a multiuser game communicating over a wireless network e Create audio effects The audio input output interface is ideal for creating some simple audio effects like o Delay o Multi path delay echo o Filtering band pass low pass highpass o Frequency analysis FFT Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 31 5 Getting Started 5 1 Test program The LPC2138 Education Board comes preloaded with a test program This program can be used to verify that the board operates correctly e Download the test program by using the hex file for the test program o Insert the two jumpers part of J11 in order to enable automatic ISP activation during program download e Push the reset button and watch the Reset LED light shortly e Press the four keys P1 20 P1 21 P1 22 P1 23 one at a time and make sure the respective LEDs light at the same time P1 16 P1
37. ply voltages 3 3V is within margins The reset duration is typically 200 mS consult the CAT1025 datasheet for exact details There is a reset push button SW1 as well as a red LED LED6 that lights when the reset signal is active The CAT1025 chip also contains a 2kbit E PROM accessible via the C interface The PC communication channel can be used to easily connect more peripheral units just as long as the addresses do not collide The address of the 2kbit E PROM is 0xA0 Note the 3k pull up resistors found on page 2 in the schematic are always needed on C busses 3 1 7 Page 3 Power Supply The power supply uses a conventional low dropout voltage regulator the Sipex SP1117 The LPC2148 need only a single 3 3V voltage and has an internal 1 8V regulator for powering the core Some other processors in the LPC2xxx series require both a 3 3V and a 1 8V Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 16 voltage For a full specification of the SP1117 voltage regulator see the datasheet from Sipex Power is drawn from the USB connector which void the need for an external power supply There are three pads to ease measurements of the incoming 4 5 V Vin voltage and the generated 3 3V voltage see PAD1 PAD3 A green LED LEDS indicates the presence of 3 3V voltage 3 1 8 Page 4 Audio Interface The analog output of the LPC2138 available as an alternative function on pin P0 25 can als
38. s AB LPC2138 Education Board User s Guide Page 22 3 6 Audio Interface The LPC2138 Education Board has got an audio interface with both audio in and out The speaker volume can be adjusted with a trimming potentiometer and the microphone amplification can also be adjusted with a trimming potentiometer See Figure 11 for an illustration where to find the trimming potentiometers and which way to turn them for increased volume amplification The audio interface is compatible with a standard headphone that can be bought for PC s The headphone included in the LPC2138 Education Board kit is of this type The connectors are standard 3 5mm plugs The black plug is the speaker and the pink plug is the microphone Audio out volume Increased volume Black connector from microphone to speakers Pink connector Audio in amplification Increased amplification to right Egg Headphone Hicrophone Hic volume Figure 11 LPC2138 Education Board Audio Interface Note that the LPC2138 Education Board has not been designed for high quality audio The ADC and DAC of the LPC2138 are not high performance from an audio perspective Therefore there will be noticeable audio noise in the audio data Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 23 4 Breadboard Experiments A mayor part of the LPC2138 Education Board is occupied by a breadboard A component box with some basic
39. these environments as well 5 3 Program Download via external JTAG An external JT AG interface can be used to program and debug the LPC2 38 Education Board H so the internal JTAG interface shall be disconnected By inserting jumpers according to Figure 21 the external JTAG interface connector is connected to the JTAG interface of the LPC2138 cpu The JT AG interface of the cpu is also enabled by inserting the enable JTAG jumper see picture below The ISP functionality is also disabled in this setup Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 32 ne d m LpC2138 good D n HH a t ER GigE K ir x 1 P0 1 RxD f PO 0 TxD JISP P0 14 H ISP RST ard v1 1 Figure 21 JTAG and ISP Jumpers enable external JTAG 5 4 Program Download via Internal JTAG The internal JTAG interface of the LPC2138 Education Board is based on the FT2232 chip from FTDI One of the two channels in the chip is used to create a JTAG interface that is compatible with for example the open source OpenOCD JTAG interface The interface is compatible with the jtagkey interface layout i e how the signals from the FT2232 are connected to the LPC2138 JTAG interface LED that indicates when the internal JTAG interface is active Figure 22 JTAG and ISP Jumpers enable internal JTAG Copyright 2009 Embed
40. tors Mini B USB connector to UARTZO UART to USB bridge and powering as well as for OpenOCD compatible JT AG interface JTAG connector that can override the embedded OpenOCD interface 32 pos expansion connector to breadboard experiment area 50 pos expansion connector e On board low dropout voltage and reset generation Generates 3 3V for powering the LPC2138 3 3V available for external circuits up to 300 mA e Powered directly from the mini B USB connector e Simple and automatic program download via OpenOCD compatible JTAG interface or ISP In System Programming via UART to USB bridge channel containing circuit that automatically controls activation of the bootloader e Dimensions 127 x 120 mm Four layer PCB FR 4 material for best noise immunity 2 3 Expansion Connector A 50 pos expansion connector allows the LPC2138 Education Board to be expanded with custom hardware for exciting experiments The following signals are available on the expansion connector e P0 0 P0 23 e P0 25 P0 31 e Reset e Vref e Vbat e Power VCC 3 3V GND and Vin 5V 2 4 Experiment Expansion Board There is an expansion board called the Experiment Expansion Board that can be bought separately for more interesting and useful experiments For details about the board see the Experiment Expansion Board page on Embedded Artists website The picture below show how the LPC2138 Education Board can be dir
41. ustrates where the jumpers can be found The picture below also illustrates the default positions for all jumpers UART amp Automatic ISP Audio Interface Jil J20 Enable JTAG J18 Select JTAG J7 J10 J12 J13 J15 I Not on Goo Uolume I deg ara oo l CE di P0 0 P9 1 JA P0 2 r1 W POHER po 3 OBO P0 4 END SuUIN j P0 5 P po i Rxp P9 6 f PQ 0 TxD o P9 7 Le s JISP p0 14 tx P0 8 Le wl ISP RST m P9 9 Analog Input J22 ZigBee lt TH gt module PC2138 Education Board v1 1 rsi r ra a Bao on nn n n n n eU RIR PL 21 P1 22 P1 23 Embedded Artists AB C 2007 DC to U10 CAT1025 J17 Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide 3 3 Connectors Figure 6 illustrate the position of the two external connectors on the LPC2138 Education Board Audio Out J19 Mini B USB Mini B USB J4 not mounted Not on Good Uolume External DD eese Di D JTAG a J5 oy Qiy nn C SH CH 3 GC PQ 2 r1 E POWER pg 3 CL D CL P0 4 6ND 3 3UVIN j PO 5 DG pg 1 RxD P8 6 P8 0 TxD o P9 7 ISP P0 14 3 P0 8 ISP RST e Ead oon w m m m mw s a j lTNI amp 8Z 8d 1353d
42. utomated ISP invocation the LPC2138 Education Board allows control of both the reset signal and the P0 14 via the USB to serial bridge one channel in the FT2232 chip Reset is controlled by the DTR serial signal and P0 14 via RTS NXP has released a download program This program is however no longer supported Instead the open source LPC21ISP program as well as FlashMagic from ES Academy can be used The latter is the recommended ISP download program to use This program can be downloaded from http www flashmagictool com Figure 26 illustrates the jumper settings when enabling the automatic ISP functionality Copyright 2009 Embedded Artists AB LPC2138 Education Board User s Guide Page 35 Not on m LPC2138 T a D Qe Og m 7 E S O QO GN Dia UR 1 p0 1 RxD sIP0 0 TxD 1 ISP PO D ISP RST Automatic ISP J11 in order from top to bottom ISP P0 14 ISP RESET a NN T K ard v1 1 Figure 26 ISP Jumpers enable automatic ISP Some terminal programs can control the DTR RTS signals when connected to the board and keep it in constant reset or always enabling ISP mode In that case the automatic ISP functionality must be disabled Figure 27 below illustrates the jumper settings when disabling the automatic ISP RX TX Disabling automatic ISP J11 in order from top to bottom ISP P0 14 ISP RESET a si
Download Pdf Manuals
Related Search
Related Contents
Nostalgia Electrics Vintage SCM-802 User's Manual Kicker 2011 KMT60 Owner's Manual Strait-Flex AS-10 Instructions / Assembly Acer 8471G Laptop User Manual NOTEBOOK - HBuster Éduquer contre l`homophobie - SNUipp-FSU Q n°1 Q n°8 Q n°2 Q n°9 Q n°3 Q n°10 Q n°4 Q n°11 Q n°5 Q n°12 Q Copyright © All rights reserved.
Failed to retrieve file