background image

LPCXpresso Base Board rev B - User’s Guide

 

Page 50 

 

 

 

Copyright 2011 © Embedded Artists AB 

 

5.1 

 

Expansion Connectors 

All LPC1xxx pins, except the USB and Ethernet signals, are available together with power on two 

expansion connectors (see schematic page 3). There is a male (J5) and a female (J6) 50-position 

connector. See Figure 54 for details. Picture below show rev A of the board but rev B is exactly the 
same for J5 and J6. 

 

Figure 54 – LPCXpresso Base Board Expansion Connectors (J5, J6) 

The text on the pcb indicates where the different signals can be accessed. The left side of J6 is also 

valid as a left side of J5, and similar is the right side of J5 also valid as right side of J6. 

Right side 

Left side 

Summary of Contents for LPCXpresso

Page 1: ...resso Base Board rev B User s Guide Copyright 2011 Embedded Artists AB EA2 USG 1001B Rev B LPCXpresso Base Board Rev B User s Guide Get Up and Running Quickly and Start Developing Your Applications On Day 1 ...

Page 2: ...ritten 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 ...

Page 3: ...ents 15 3 6 Default Jumper Positions 16 3 6 1 Illegal Jumper Combinations 16 3 7 Import Sample Applications 17 3 8 Demo Application 20 3 9 Program Download 21 3 9 1 Using LPCXpresso IDE Debugger 21 3 9 2 Using USB Boot Mode LPC1343 21 3 9 3 Using UART ISP Boot Mode for LPC1343 1227 11C24 11U14 1114 25 3 9 4 Using UART ISP Boot Mode for LPC176x 26 4 Peripherals and Jumper Settings 27 4 1 UART 27 4 ...

Page 4: ... 4 9 1 Trimming Potentiometer R105 45 4 9 2 BNC Analog Input X2 and U8 45 4 10 LPC176x and mbed USB Host CAN and Ethernet 47 4 10 1 USB Host J60 J61 47 4 10 2 CAN U4 47 4 10 3 Ethernet J19 48 5 Usage of CPU Pins 49 5 1 Expansion Connectors 50 6 mbed and LPC1xxx Differences 52 6 1 mbed 52 6 2 LPCXpresso LPC11C24 54 6 3 LPCXpresso LPC176x 54 6 3 1 GPIO_21 22 needs pull up resistors 54 6 3 2 ISP mode...

Page 5: ...n 3 3 Added a recommendation to use the USB interfaces on the Base Board to power the board PA15 2010 03 28 Corrected default jumper settings picture fig 10 Clarified the board powering information PA16 2010 10 21 Added information about rev A and rev B differences Added information about mbed and LPC176x specific jumper settings PA17 2010 11 24 Updated section 3 9 and 3 10 3 regarding LPC176x ISP...

Page 6: ... of the LPCXpresso Base Board are Common features Socket for LPCXpresso and mbed module 50 pin expansion dual row pin list connector male 100mil pitch for simple connection external designs and to a logic analyzer 50 pin expansion dual row header connector female 100mil pitch for simple connection to breadboard Battery powering small coin battery USB interface Reset pushbutton Digital IO RGB LED c...

Page 7: ...eclaration of Conformity document The LPCXpresso Base Board is a class A product In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures EMC emission test has been performed on the LPCXpresso Base Board with the LPCXpresso LPC1769 Board Standard interfaces like Ethernet USB serial have been in use General expansion connec...

Page 8: ...wer supplies Embedded Artists has a broad and long experience in designing industrial electronics in general and with NXP s LPC1xxx LPC2xxx LPC3xxx microcontroller families 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 4 2 OEM Education QuickStart Boards and D...

Page 9: ...to where you can download the IDE and more information that is related to LPCXpresso 3 2 Initial Preparation The LPCXpresso Base Board is delivered with two pin lists These pin lists must be soldered onto your LPCXpresso target board before it can be used with the LPCXpresso Base Board Figure 1 and Figure 2 shows how the pin lists are soldered onto an LPCXpresso LPC1343 board All different LPCXpre...

Page 10: ...ear to work but o you mail fail to program the Flash on the device as more power is drawn or o the debugger may not be able to find the target or o the debugger may disconnect unexpectedly or o a variety of other inexplicable errors There are three USB interfaces in total when the LPCXpresso target board is mounted on the LPCXpresso Base Board Technically any of all three can be used to power the ...

Page 11: ...d the latest version of the driver which can be found at the following URL http www ftdichip com Drivers VCP htm search for a FT232R driver for your operating system When the LPCXpresso Base Board is connected to the PC via an 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...

Page 12: ... Artists AB Figure 5 Device Manager Dialog The new COM port USB Serial Port will be listed under the Ports list Right click on the new USB Serial Port and select Properties as illustrated in Figure 6 below Figure 6 Device Manager Port Dialog Ports USB Serial Port Properties ...

Page 13: ... driver and FT232R chip will automatically handle different baudrates The setting is only shown here for completeness Figure 7 USB Serial Port Properties Dialog Select the desired COM port number under the Advanced settings dialog Some terminal programs needs low COM port number for example between 1 and 5 Very often the COM port number for the USB Serial Port is higher than this therefore this ne...

Page 14: ...h 115200 bits per second 8N1 no flow control 3 4 2 USB Driver Behavior Sometimes the USB COM port does not enumerate properly when the board in 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 in again A new COM port that can be accessed properly should be created the second time This problem may occur after ev...

Page 15: ...nality J8 J10 p4 Battery connector J1 p2 Voltage measuring pads PAD8 9 10 p11 OLED display OLED1 U17 p10 RS232 UART TTL UART J52 J53 U18 U19 p10 Quadrature rotary switch SW5 p6 5 switch joystick SW2 p6 Push buttons SW3 SW4 p6 Accelerometer U14 p8 Temperature sensor U7 p6 Trimpot R105 p7 Speaker U10 SP1 p7 BNC input X2 p7 RGB LED LED3 p6 RF module U23 p11 16 LEDs U12 p8 E2PROM U11 p8 Data flash U15...

Page 16: ... of pins to connect to and in a few cases different peripherals must share pins See chapter 5 for an overview of all connections If an output is used by several peripherals it is less of a problem The peripherals just cannot be used simultaneously If outputs from peripherals can drive the same signal there is a risk of contention and damages of output drivers due to short circuit conditions 270 oh...

Page 17: ...ard_100125 zip 2 Start the LPCXpresso IDE and preferably select an empty workspace an empty directory 3 Press the Import Example Projects button from the Quickstart panel see Figure 11 4 A dialog window will be opened see Figure 12 Browse to the previously downloaded zip file Select the file and press the Next button followed by the Finish button 5 When the zip file has been imported you will see ...

Page 18: ...LPCXpresso Base Board rev B User s Guide Page 18 Copyright 2011 Embedded Artists AB Figure 11 Import project Figure 12 LPCXpresso Import Dialog ...

Page 19: ...LPCXpresso Base Board rev B User s Guide Page 19 Copyright 2011 Embedded Artists AB Figure 13 LPCXpresso imported projects ...

Page 20: ...ng bar The way you move the board in y axis will change the direction and speed of this bar The joystick can be used to draw on the OLED display It is like moving a pen you never lift from the paper By using the center key on the joystick the display is cleared Rotating the rotary switch will change which digit 0 to 9 is shown on the 7 segment display Pressing the SW3 button will start playing a m...

Page 21: ...loaded execution will stop at the first breakpoint which is the main function 4 Press the F8 key on your keyboard to continue execution Figure 15 LPCXpresso Debugging View 3 9 2 Using USB Boot Mode LPC1343 The LPC1343 supports In System Programming ISP from the USB port through enumeration as a Mass Storage Class Device i e you can drag and drop a binary file to the drive associated with the LPC13...

Page 22: ...ies menu see Figure 17 4 Update the binary file with a correct checksum In the example below it is assumed that you are using LPCXpresso IDE 3 2 installed in C nxp lpcxpresso_3 2 It is also assumed that you are using a LPC1343 and the binary file is named oled_periph bin C nxp lpcxpresso_3 2 bin checksum exe p lpc1343 v oled_periph bin 5 You need to have a USB cable mini B to A connected between y...

Page 23: ...LPCXpresso Base Board rev B User s Guide Page 23 Copyright 2011 Embedded Artists AB Figure 16 LPCXpresso IDE Create a Binary File ...

Page 24: ...LPCXpresso Base Board rev B User s Guide Page 24 Copyright 2011 Embedded Artists AB Figure 17 LPCXpresso IDE Open Command Prompt Figure 18 Mass Storage Device ...

Page 25: ...ou at least have the UART related jumpers set as described in sections 4 1 1 and 4 1 1 1 After you have checked the jumper settings continue with the steps described below 1 Download and install Flash Magic http www flashmagictool com Always use the latest version 2 Build your application in the LPCXpresso IDE as mentioned in section 3 7 3 Open a command prompt in the directory containing the axf ...

Page 26: ...s UART channel 0 for LPC176x is however not connected to the USB to UART bridge described in section 3 4 1 This is the UART channel used in ISP mode This means that it is not possible to use ISP mode directly for the LPC176x on the LPCXpresso Base Board The reason for this is compatibility with the mbed module However if UART channel 0 is connected to a serial channel RS232 or USB to UART bridge v...

Page 27: ...e subsection 4 1 2 RF module interface see schematic page 11 U23 See subsection 4 1 3 A multiplexer U25 on schematic page 11 selects to which peripheral the UART is connected The A and B inputs selects which source The INH input shall be grounded to enable the multiplexer It is possible to not connect the UART to any of three peripherals listed above and instead connect to an external source via t...

Page 28: ... BL_EN signal must be connected to GPIO_24 BL_EN signal This is accomplished by inserting a jumper in J13 pin 1 2 schematic page 5 See Figure 22 for details Note that the pinning for the LPC176x is different but the functionality is the same Instead of GPIO_24 BL_EN it is GPIO_37 that is pulled low on the LPC176x to enable ISP operation See also section 4 6 1 for settings of J62 The LPC176x also h...

Page 29: ...RS422 485 transceiver insert two jumpers in J7 schematic page 11 as illustrated in Figure 23 A RS422 485 transceiver must control the Rx and Tx paths This is accomplished via J17 and J18 The subsections below described the differences in jumper settings for RS422 and RS485 respectively Figure 23 Jumper Setting UART to RS422 485 U6 ...

Page 30: ...ble is controlled by GPIO_28 insert J17 and is active low Tx enable is controlled by GPIO_18 insert J18 in position 2 3 and is active high See Figure 24 for jumper details Figure 24 Jumper Setting Enable RS422 control It is possible to have 120 ohm termination resistors R76 and R77 on schematic page 5 on the Rx and Tx data paths respectively See Figure 25 for jumper details Figure 25 Jumper Settin...

Page 31: ...J17 and J18 in position 1 2 See Figure 26 for jumper details Figure 26 Jumper Setting Enable RS485 control It is possible to connect the Rx and Tx data paths via jumper J16 on schematic page 5 Only one twisted pair used to communicate between nodes It is also possible to add a 120 ohm termination resistor R77 on schematic page 5 on the common Rx and Tx data path See Figure 27 for jumper details Fi...

Page 32: ...Digi International Inc insert two jumpers in J7 schematic page 11 as illustrated in Figure 28 Figure 28 Jumper Setting UART to RF module When communicating with the RF module sometimes extra control signals are needed J59 on schematic page 11 allows these to be connected Figure 29 illustrates where the J59 can be found on the board Figure 29 Jumper Setting RF module extra signals J59 ...

Page 33: ... 4 2 Note that these peripherals are always connected to the I2C bus with the exception of the OLED display and UART bridge SC16IS752 These two peripherals have both I2C and SPI interfaces and they are described in a different section The schematic specifies the I2C addresses used schematic page 8 and 10 4 2 1 E2PROM 24LC08 U11 U12 is always connected to the I2C bus Write protect status on the mem...

Page 34: ...t damages in case there is more than one driver of the signal Figure 31 Jumper Setting Light sensor ISL29003 interrupt output 4 2 4 Accelerometer MMA7455 U14 U14 is always connected to the I2C bus There are two interrupt outputs that can be connected to GPIO_18 and GPIO_33 via J37 schematic page 8 See Figure 32 for details Make sure there are no other drivers on the GPIO_18 and GPIO_33 signals whe...

Page 35: ...C16IS752 can alternatively also be connected to the I2C bus These two peripherals have both I2C and SPI interfaces and they are described in a different section The Dataflash 7 segment display and SD MMC memory card interface are all controlled chip select SSEL by GPIO_30 That means that only one of these three peripherals can be used at a time A multiplexer U26 on schematic page 9 selects to whic...

Page 36: ... 33 in order to connect all SPI signals to U15 Note that some jumpers can interfere with the SPI communication J58 schematic page 10 must not be inserted J41 pin 1 2 schematic page 9 shall normally not be inserted unless only the 7 segment display is used Figure 33 Jumper Setting J38 for Dataflash U15 In order to connect GPIO_30 to SSEL of U15 set jumpers for J55 according to Figure 34 Figure 34 J...

Page 37: ... to the SPI MISO signal if this is the only chip connected on the SPI bus The reason for this is that the shift register always drive the output signal i e it is never in high impedance state regardless the state of the SSEL input Note that the silkscreen text around J41 for rev A of the board is wrong The text U16 SOUT should rather be U16 SIN Similarly the text U16 SIN should rather be U16 SOUT ...

Page 38: ...mode Also note that J39 pin 9 10 is optional It is a card detect signal active low that is connected to GPIO_38 It is not always needed If not simply do not insert this jumper and GPIO_38 can be used for other purposes Note that some jumpers can interfere with the SPI communication J58 schematic page 10 must not be inserted J41 pin 1 2 schematic page 9 must not be inserted Figure 37 Jumper Setting...

Page 39: ...e subsection 4 4 2 4 4 1 OLED Display The OLED display OLED1 schematic page 10 can be connected either to the SPI bus or the I2C bus Always insert a jumper in J44 schematic page 10 in order to allow GPIO_29 to control the OLED voltage about 11V See Figure 39 for details For SPI interface default insert jumpers in J42 J43 J45 pin1 2 and J46 pin 1 2 schematic page 10 as illustrated in Figure 39 Note...

Page 40: ...lue jumpers Note that J50 pin 7 8 is optional It is the interrupt signal from the dual uart U19 that can optionally be connected to GPIO_33 If that is wanted insert a jumper in J50 pin 7 8 See Figure 40 for details Insert all jumpers in J51 schematic page 10 in order to connect uart channel A to the RS232 interface U18 and J52 See Figure 40 for details Connector J53 carries uart channel B that can...

Page 41: ...t board which is better to use The USB power signal must be connected to the VBUS sense input GPIO_25 VBUS This is accomplished by inserting a jumper in J12 pin 1 2 See Figure 41 for details Figure 41 Jumper Setting USB VBUS J12 The USB connect function is controlled by J14 If a jumper is inserted in J14 pin 1 2 the connect functionality is controlled by GPIO_19 USB_CONN This is the default jumper...

Page 42: ... order to connect the signal from SW3 to GPIO_24 BL_EN which is the bootloader enable pin for most LPC1xxx MCU s The LPC176x use another bootloader enable pin P2 10 which is the GPIO_37 signal on the LPCXpresso Base Board Use J62 to select where to connect the BL button SW3 See Figure 43 for how to set jumper Figure 43 Jumper Setting J62 and BL button 4 6 2 Push Button WAKEUP SW4 GPIO_16 WAKEUP ar...

Page 43: ... of peripherals directly via the general purpose digital input output pins These pins can also be configured as Pulse Width Modulated PWM output signals RGB LED see schematic page 6 LED3 See subsection 4 7 1 PWM Low Pass Filter to Analog Signal see schematic page 7 U9 See subsection 4 7 2 Note that these peripherals can either be controlled by pins configured as direct digital outputs or as PWM ou...

Page 44: ...an be connected to an audio amplifier See section 4 8 for details about this Figure 47 Jumper Setting PWM Low Pass Filtering U9 4 8 Audio Amplifier The audio amplifier is always connected to the low pass filtered signal Insert a jumper in J32 to connect the speaker to the amplifier The audio amplifier volume can be controlled adjusted via three digital signals Insert three jumpers in J33 to connec...

Page 45: ...which is an analog input of the LPC1xxx See Figure 49 for details Figure 49 Jumper Setting trimming Potentiometer R105 4 9 2 BNC Analog Input X2 and U8 X2 is a BNC connector and U8 implements a simple input stage that can be DC or AC coupled There is also an option to have x10 amplification It is possible to connect an oscilloscope probe to X2 Insert a jumper in J28 to connect the analog signal to...

Page 46: ...LPCXpresso Base Board rev B User s Guide Page 46 Copyright 2011 Embedded Artists AB Figure 50 Jumper Setting BNC analog input U8 J30 insert x10 J30 open x1 Left DC coupling Right AC coupling ...

Page 47: ...been added Insert all three jumpers in J61 See Figure 51 for details Note that the USB Device interface X1 connector cannot be used at the same time as the USB Host functionality Figure 51 Jumper Setting USB Host J60 J61 4 10 2 CAN U4 The LPC176x and the mbed module has a microcontroller that has a built in CAN controlled peripheral U4 TJA1040 is an external CAN transceiver see schematic page 5 In...

Page 48: ...tic page 5 is connected to the socket for the LPC176x mbed module The Ethernet PHY is on the LPCXpresso LPC176x mbed module There are two LEDs inside the J19 Note that the LEDs are not controlled by the Ethernet PHY They have to be controlled by software See Figure 53 for details about J21 Figure 53 Jumper Setting Ethernet Connector J19 ...

Page 49: ... ain PIO1 0 GPIO_12 J4 16 ain1 tms Qa PIO1 1 GPIO_13 J4 17 ain2 tdo Qb PIO1 2 GPIO_14 J4 18 ain3 aout trst blue pwm out PIO1 3 GPIO_15 J4 19 ain4 swdio PIO1 4 GPIO_16 WAKEUP J4 20 ain5 wakeup ain PIO1 5 GPIO_17 J4 21 not mbed rts Alt 1 PIO1 6 GPIO_6 RXD J4 10 uart1 rx RXD RXD RXD PIO1 7 GPIO_5 TXD J4 9 uart1 tx TXD TXD TXD PIO1 8 GPIO_18 J4 22 not mbed TX EN irq2 out PIO1 9 GPIO_28 J4 42 pwmout0 R...

Page 50: ... 3 There is a male J5 and a female J6 50 position connector See Figure 54 for details Picture below show rev A of the board but rev B is exactly the same for J5 and J6 Figure 54 LPCXpresso Base Board Expansion Connectors J5 J6 The text on the pcb indicates where the different signals can be accessed The left side of J6 is also valid as a left side of J5 and similar is the right side of J5 also val...

Page 51: ...O pins have 270 ohm series resistors to provide some protection for short circuits and to some extent also ESD Note that the current to external circuits are not limited Keep power consumption below 50mA if powered only via the LPCXpresso Board via the USB connector for LPC LINK or below 250mA if powered via the USB to UART bridge on the LPCXpresso Base Board connector X3 schematic page 11 The mal...

Page 52: ... different LPCXpresso target boards and the pin connections 6 1 mbed This document describes the LPCXpresso Base Board from the perspective of connecting it to LPCXpresso boards with LPC1xxx processors The board is however also designed for the mbed module The LPCXpresso boards are in many ways compatible with the mbed module Mechanically they have the same format except that the LPCXpresso boards...

Page 53: ...Insert J58 and signal GPIO_2 MISO can be used for control Note that signal naming above follow LPCXpresso base board naming which is not the same naming as the mbed module has See Figure 56 for details where to find J58 Dual UART SC16IS752 must be interfaced via I2C not SPI Lack GPIO_36 which is used as SPI SSEL for the chip Lack GPIO_17 used as RTS for RF module U23 also used for temperature alte...

Page 54: ...O_21 22 needs pull up resistors The LPC176x cannot control the signals GPIO_21 and GPIO_22 since these signals connect to P0 27 and P0 28 respectively These are open drain pins and need pull up resistors to be able to output a high signal level This means that it is impossible to adjust the LPC4811 volume since the GPIO_21 22 pins will be constantly low In order for this to work simply add pull up...

Page 55: ...ter line of J52 2488 mil 63 20 mm Mounting hole 248 248 mil 6 30 6 30 mm X2 center line 4808 mil 122 12 mm Pin 1 of U23 5282 2288 mil 134 18 58 12 mm Pin 1 of J4 1130 4663 mil 28 70 118 44 mm Pin 1 of J15 5356 4890 mil 136 05 124 20 mm X3 center line 5348 mil 135 84 mm Mounting hole 5365 6747 mil 136 27 171 37 mm Center line of memory card J40 3073 mil 78 06 mm J19 center line 1695 mil 43 05 mm Pi...

Page 56: ...ptoms when insufficient power is supplied can exhibit itself in a number of ways the board may appear to work but you mail fail to program the Flash on the device as more power is drawn or the debugger may not be able to find the target or the debugger may disconnect unexpectedly or a variety of other inexplicable errors Solution 1 Make sure the main power source is the USB to UART bridge See Figu...

Page 57: ... LPC1xxx Datasheets User s Manuals and Erratas http ics nxp com products lpc1000 all 2 LPC1000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC1xxx series of microcontrollers http groups yahoo com group lpc1000 3 LPC2000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC2xxx series of microcontrollers http groups yahoo com group lpc2000 Note that there can be newer ve...

Reviews: