LPCXpresso Base Board rev B - User’s Guide Copyright 2013 © Embedded Artists AB LPCXpresso Base Board Rev B User’s Guide Get Up-and-Running Quickly and Start Developing Your Applications On Day 1! EA2-USG-1001B Rev B
LPCXpresso Base Board rev B - User’s Guide Page 2 Embedded Artists AB Davidshallsgatan 16 SE-211 45 Malmö Sweden info@EmbeddedArtists.com http://www.EmbeddedArtists.com Copyright 2013 © Embedded Artists AB. All rights reserved.
LPCXpresso Base Board rev B - User’s Guide Page 3 Table of Contents 1 Document Revision History 5 2 Introduction 6 2.1 Features 6 2.2 ESD and Handling Precaution 7 2.3 CE Assessment 7 2.4 Other Products from Embedded Artists 7 2.4.1 Design and Production Services 8 2.4.2 OEM / Education / QuickStart Boards and Developer’s Kits 8 3 Getting Started 9 3.1 LPCXpresso 9 3.2 Initial Preparation 9 3.3 Board Powering 10 3.4 Console Interface via USB-to-UART Bridge 11 3.4.
LPCXpresso Base Board rev B - User’s Guide Page 4 4.4.1 OLED Display 39 4.4.2 Dual UART SC16IS752 – U19 40 4.5 USB Device 41 4.6 Direct Digital IO 42 4.6.1 Push Button (BL) – SW3 42 4.6.2 Push Button (WAKEUP) – SW4 42 4.6.3 Quadrature Rotary Switch – SW5 42 4.6.4 Temperature Sensor – U7 43 4.7 PWM IO 4.7.1 RGB-LED, LED3 43 4.7.2 PWM Low Pass Filter to Analog Signal, U9 44 4.8 Audio Amplifier 44 4.9 Direct Analog IO 45 4.9.1 Trimming Potentiometer – R105 45 4.9.
LPCXpresso Base Board rev B - User’s Guide Page 5 1 Document Revision History Revision Date Description PA1-PA2 2010-01-20 First incomplete version. PA3 2010-01-24 Second, still incomplete version. PA4 2010-01-25 Added more information about jumper settings. PA5 2010-01-26 Added information to the Getting Started Chapter. PA6 2010-01-26 Completed chapter 5 and 6. PA7 2010-01-28 Completed chapter 4 and updated chapter 6.
LPCXpresso Base Board rev B - User’s Guide Page 6 2 Introduction Thank you for buying Embedded Artists’ LPCXpresso Base Board, designed for the LPCXpresso Board (with multiple targets LPC176x, LPC134x, LPC1227, LPC11C24, LPC11U14, LPC111x, and more to come) and the mbed module from NXP. This document is a User’s Guide that describes the LPCXpresso Base Board hardware design. The general focus will be for the LPCXpresso boards but differences for the mbed module will be noted.
LPCXpresso Base Board rev B - User’s Guide Page 7 RS422/485 interface Interface socket for XBee RF-module Specific mbed module support CAN bus interface (can be simulated with LPCXpresso) Ethernet RJ45 connector with integrated magnetic Dimensions 150 x 180 mm Power Powered via USB (+5V) 2.
LPCXpresso Base Board rev B - User’s Guide 2.4.1 Page 8 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, communication interfaces, specific analog or digital I/O, and power supplies.
LPCXpresso Base Board rev B - User’s Guide Page 9 3 Getting Started This chapter contains information about how to get acquainted with the LPCXpresso Base Board. Please read this section first before you start using the board - it will be worthwhile! 3.1 LPCXpresso The main source of information about the many different LPCXpresso target boards as well as the LPCXpresso Debugger/IDE is http://www.nxp.com/lpcxpresso.
LPCXpresso Base Board rev B - User’s Guide 3.3 Page 10 Board Powering The LPCXpresso Base Board shall be powered from a PC via the included USB cable (mini-B to A cable). Up to 500mA can be drawn from the USB port. Note that not all PC USB ports supply the specified top current (500 mA). This is especially true for laptops, but affects many desktop PCs too. If in doubt, use a powered USB hub to power the LPCXpresso Base Board.
LPCXpresso Base Board rev B - User’s Guide 3.4 Page 11 Console Interface via USB-to-UART Bridge The LPCXpresso Base Board contains a USB-to-Serial bridge chip (FT232R from FTDI) that connects one of the UART channels on the LPCXpresso target cpu to a virtual COM port on the PC (via USB). It is this serial channel that is the console interface to the system. Special USB drivers must be installed on the PC in order for the virtual COM port to be created.
LPCXpresso Base Board rev B - User’s Guide Page 12 Ports 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.
LPCXpresso Base Board rev B - User’s Guide Page 13 Select 115200 bits per second, 8 data bits, none parity, 1 stop bit, and none flow control, as illustrated in Figure 7 below. Then select Advanced settings. Please note that different application programs can use different baudrate settings for the serial channel. Other baudrates can also be used, depending on your specific application. Also note that it is normally not needed to set the used baudrate at all.
LPCXpresso Base Board rev B - User’s Guide Page 14 Finally it is time to test if you have successfully installed and configured the USB Serial Port. Start a terminal program. Connect to the correct COM port, with 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.
LPCXpresso Base Board rev B - User’s Guide 3.5 Page 15 Main Components Figure 9 below illustrates the main component of the LPCXpresso Base Board. The number inside parenthesis (pX) indicate on which schematic page (X) the components can be found.
LPCXpresso Base Board rev B - User’s Guide 3.6 Page 16 Default Jumper Positions Figure 10 below illustrates the default jumper positions as mounted when the board is delivered from Embedded Artists. Figure 10 – LPCXpresso Base Board default Jumper Settings 3.6.1 Illegal Jumper Combinations The LPCXpresso Base Board has multiple peripherals that connect to the LPC1xxx processor. There is a shortage of pins to connect to and in a few cases different peripherals must share pins.
LPCXpresso Base Board rev B - User’s Guide Page 17 GPIO_4 can drive the OLED SPI-SSEL signal as well as being an output from the temperature sensor. GPIO_16-WAKEUP can be driven by SW4 (wakeup) as well as the analog signal from the BNC analog input (U8). GPIO_18 can drive the TX-EN signal as well as being an interrupt output from the accelerometer (U14). GPIO_33 can be driven by three interrupt sources: accelerometer (U14), light sensor (U13) and dual uart (U19).
LPCXpresso Base Board rev B - User’s Guide Figure 11 – Import project Figure 12 – LPCXpresso Import Dialog Copyright 2013 © Embedded Artists AB Page 18
LPCXpresso Base Board rev B - User’s Guide Figure 13 – LPCXpresso imported projects Copyright 2013 © Embedded Artists AB Page 19
LPCXpresso Base Board rev B - User’s Guide Page 20 Figure 14 – LPCXpresso Build button 3.8 Demo Application A suitable application to start with when checking the functionality of the LPCXpresso Base Board is the application called demo. This application is using several of the peripherals, such as the accelerometer, LEDs (connected to I/O port expander), joystick, OLED display, rotary switch, 7segment display, SW3 button, speaker, trim potentiometer and RGB LED.
LPCXpresso Base Board rev B - User’s Guide 3.9 Page 21 Program Download 3.9.1 Using LPCXpresso IDE/Debugger If you are using the LPCXpresso IDE to develop and build your applications you can directly download the program to the LPCXpresso Board from within the IDE. 1. Make sure you have connected a USB cable (mini-B to A) between your computer and the LPCXpresso LPC1xxx board, see Figure 3 (USB interface 2). 2. Build your application as mentioned in section 3.7. 3.
LPCXpresso Base Board rev B - User’s Guide Page 22 For this to work you need to have some jumpers correctly set. If you have all jumpers in default position as described in section 3.6 USB boot mode will work; otherwise please check the following. USB interface – jumpers described in section 4.5. SW3 button – jumper described in section 4.6.1. You also need to make sure that the BL_EN signal is connected to GPIO_24-BL_EN signal, see section 4.1.1.1 and Figure 22.
LPCXpresso Base Board rev B - User’s Guide Figure 16 – LPCXpresso IDE Create a Binary File Copyright 2013 © Embedded Artists AB Page 23
LPCXpresso Base Board rev B - User’s Guide Figure 17 – LPCXpresso IDE Open Command Prompt Figure 18 – Mass Storage Device Copyright 2013 © Embedded Artists AB Page 24
LPCXpresso Base Board rev B - User’s Guide 3.9.3 Page 25 Using UART (ISP) Boot Mode for LPC1343 / 1227 / 11C24 / 11U14 / 1114 The LPC1343 / 1227 / 11C24 / 11U14 / 1114 all supports In-System Programming (ISP) from the UART. This section describes how you generate the hex file and then download the file to the target while it is mounted on the LPCXpresso Base Board. For this to work you need to have some jumpers correctly set. If you have all jumpers in default position, as described in section 3.
LPCXpresso Base Board rev B - User’s Guide Page 26 Figure 19 Flash Magic 3.9.4 Using UART (ISP) Boot Mode for LPC176x The LPC176x chip supports In-System Programming (ISP) from the UART. ISP mode can be enabled when jumper J62 is placed in position 1-2 (note that this is not the default position). See section 6.2 for details. 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.
LPCXpresso Base Board rev B - User’s Guide Page 27 4 Peripherals and Jumper Settings This chapter contains information about the peripherals of the LPCXpresso Base Board and how to set the different jumpers on the board. The schematic can be downloaded in pdf from the support page, and is recommended to have printed out while reading this chapter. 4.1 UART The LPC1xxx UART can be connected to one of three different peripherals: USB-to-UART bridge, see schematic page 11, U22. See subsection 4.1.
LPCXpresso Base Board rev B - User’s Guide Page 28 4.1.1.1 ISP-option The USB-to-UART bridge can automatically activate the bootload mode of the LPC1xxx. A program image can then be downloaded via the UART channel. The RTS signal can pull pin GPIO_24-BL_EN low, which enabled bootload mode after reset. The DTR signal can pull pin GPIO_0-RESET low, which is the reset input.
LPCXpresso Base Board rev B - User’s Guide 4.1.2 Page 29 RS422/485 – U6 To connect the UART to the RS422/485 transceiver, insert two jumpers in J7 (schematic page 11), as illustrated in Figure 23. A RS422/485 transceiver must control the Rxand Tx-paths. This is accomplished via J17 and J18. The subsections below described the differences in jumper settings for RS422 and RS485, respectively.
LPCXpresso Base Board rev B - User’s Guide Page 30 4.1.2.1 RS422 In RS422, the Rx- and Tx-paths must be controlled independently since both can be active simultaneously (full duplex). Rx-enable 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.
LPCXpresso Base Board rev B - User’s Guide Page 31 4.1.2.2 RS485 In RS485, the Rx- and Tx-paths can be controlled together since they are not active simultaneously (half duplex). GPIO_28 controls both Rx and Tx. When GPIO_28 is high, Tx is enabled, and when GPIO_28 is low, Rx is enabled. Insert J17 and J18 in position 12. 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).
LPCXpresso Base Board rev B - User’s Guide 4.1.3 Page 32 RF-module – U23 To connect the UART to the RF-module, U23 (interface socket for XBee® modules from 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.
LPCXpresso Base Board rev B - User’s Guide 4.2 Page 33 I2C The LPC1xxx I2C-bus is connected to the following peripherals: E2PROM (24LC08), see schematic page 8, U11. See subsection 4.2.1 Port expander (PCA9532), see schematic page 8, U12. See subsection 4.2.2 Light sensor (ISL29003), see schematic page 8, U13. See subsection 4.2.3 Accelerometer (MMA7455), see schematic page 8, U14. See subsection 4.2.4 OLED display, see schematic page 10, OLED1. See subsection 4.4.
LPCXpresso Base Board rev B - User’s Guide 4.2.3 Page 34 Light Sensor, ISL29003 – U13 U13 is always connected to the I2C-bus.There is an interrupt output that can be connected to GPIO_33 via J36 (schematic page 8). See Figure 31 for details. Make sure there is no other driver on the GPIO_33 signal when using it as interrupt signal. There is a 270 ohm series resistor to prevent damages in case there is more than one driver of the signal.
LPCXpresso Base Board rev B - User’s Guide 4.3 Page 35 SPI The LPC1xxx SPI-bus is connected to the following peripherals: Dataflash (AT45DB016), see schematic page 9, U15. See subsection 4.3.1 7-segment display via shift register, see schematic page 9, U16. See subsection 4.3.2 SD/MMC memory card interface, see schematic page 9, J40. See subsection 4.3.3 Dual UART (SC16IS752), see schematic page 10, U19. See subsection 4.4.2 OLED display, see schematic page 10, OLED1.
LPCXpresso Base Board rev B - User’s Guide 4.3.1 Page 36 Dataflash, AT45DB016 – U15 The Dataflash chip, U15, can be connected to the SPI-bus. Insert all four jumpers in J38 (schematic page 9), as illustrated in Figure 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.
LPCXpresso Base Board rev B - User’s Guide 4.3.2 Page 37 7-segment display via shift register – U16 The 7-segment display shift register, U16, can be connected to the SPI-bus. Insert three (of the four) jumpers in J41 (schematic page 9), as illustrated in Figure 35, in order to connect the SPI signals to U16. J41, pin 1-2 shall normally not be inserted. This is the output from the shift register. It can only be connected to the SPI-MISO signal if this is the only chip connected on the SPI-bus.
LPCXpresso Base Board rev B - User’s Guide 4.3.3 Page 38 SD/MMC memory card interface The SD/MMC memory card interface connector, J40, can be connected to the SPIbus. Insert all five jumpers in J39 (schematic page 9), as illustrated in Figure 37, in order to connect all SPI signals to J40 (and ultimately the SD/MMC memory card). Note that the memory card can only be interfaced in the simpler and lower data rate SPI-mode. J39, pin 9-10. Not always needed. Also note that J39, pin 9-10, is optional.
LPCXpresso Base Board rev B - User’s Guide 4.4 Page 39 I2C/SPI There are two peripherals, as presented in the I2C and SPI sections, which can be connected to either the I2C or the SPI interfaces. These two peripherals have both I2C and SPI interfaces. The SPI interface has higher data rate but require more signals. OLED display, see schematic page 10, OLED1. See subsection 4.4.1 Dual UART (SC16IS752), see schematic page 10, U19. See subsection 4.4.2 4.4.
LPCXpresso Base Board rev B - User’s Guide 4.4.2 Page 40 Dual UART SC16IS752 – U19 The dual UART SC16IS752, U19 (schematic page 10), can be connected either to the SPI-bus or the I2C-bus. For I2C interface (default), insert jumpers in J48 pin 2-3, J49 (schematic page 10), as illustrated in Figure 40. Note that I2C mode is illustrated by yellow jumpers. For SPI interface, insert jumpers in J48 pin1-2 and J50 (schematic page 10), as illustrated in Figure 40.
LPCXpresso Base Board rev B - User’s Guide 4.5 Page 41 USB Device The LPC176x/LPC1343/11U14 USB interface can be connected to mini-B USB connector (X1, on schematic page 5). Note that the LPC1114 does not contain any USB interface. Also note that LPC11U14 has a mini-B USB connector on the LPCXpresso target 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.
LPCXpresso Base Board rev B - User’s Guide 4.6 Page 42 Direct Digital IO The LPC1xxx is connected to a number of peripherals directly via the general purpose digital input/output pins: 5-key joystick), see schematic page 6, SW2. Directly connected to GPIO_8, GPIO_9, GPIO_10, GPIO_31 and GPIO_32 Push button (BL), see schematic page 6, SW3. See subsection 4.6.1 Push button (Wakeup), see schematic page 6, SW4. Directly connected to GPIO_16WAKEUP. See subsection 4.6.
LPCXpresso Base Board rev B - User’s Guide 4.6.4 Page 43 Temperature Sensor – U7 The output signal from U7 (schematic page 6) can be connected to either GPIO_4 or GPIO_17. J25 selects which. See Figure 45 for jumper details. J26 can set the TS0/TS1 configuration inputs of the temperature sensor. An inserted jumper pulls the respective signal low. The signal is high when leaving the jumper position open. Upper pos.: U7 to GPIO_4 Lower pos.
LPCXpresso Base Board rev B - User’s Guide 4.7.2 Page 44 PWM Low Pass Filter to Analog Signal, U9 Insert a jumper in J31 to connect signal GPIO_14 to the low pass filer implemented around U9. The PWM input signal and the low pass filtered result are available on pads. See Figure 47 for details. The low pass filtered signal, which is an analog signal (as opposed to the digital PWM signal) can be connected to an audio amplifier. See section 4.8 for details about this.
LPCXpresso Base Board rev B - User’s Guide 4.9 Page 45 Direct Analog IO The LPC1xxx is connected to a number of peripherals directly via analog input pins: Trimming potentiometer (R105), see schematic page 7. See subsection 4.9.1 BNC input (X2 and U8), see schematic page 7. See subsection 4.9.2 4.9.1 Trimming Potentiometer – R105 Insert jumper in J27 to connect the analog signal from the trimming potentiometer to GPIO_11, which is an analog input of the LPC1xxx. See Figure 49 for details.
LPCXpresso Base Board rev B - User’s Guide Page 46 Left: DC coupling Right: AC coupling J30 insert: x10 J30 open: x1 Figure 50 – Jumper Setting: BNC analog input, U8 Copyright 2013 © Embedded Artists AB
LPCXpresso Base Board rev B - User’s Guide Page 47 4.10 LPC176x and mbed: USB Host, CAN and Ethernet There are three peripherals that are only valid for the LPC176x and mbed module: USB Host (J60), see schematic page 5. See subsection 4.10.1 CAN (U4), see schematic page 5. See subsection 4.10.2 Ethernet connector (J19), see schematic page 5. See subsection 4.10.3 4.10.1 USB Host – J60/J61 The LPC176x and mbed module have USB Host functionality.
LPCXpresso Base Board rev B - User’s Guide 4.10.3 Page 48 Ethernet – J19 The Ethernet connector (J19, schematic 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.
GPIO_12 GPIO_13 GPIO_14 GPIO_15 GPIO_16-WAKEUP GPIO_17 GPIO_6-RXD GPIO_5-TXD GPIO_18 GPIO_28 GPIO_29 GPIO_30 GPIO_8 GPIO_9 GPIO_10 GPIO_31 GPIO_32 GPIO_33 GPIO_34 GPIO_35 GPIO_36 GPIO_37 GPIO_38 GPIO_3-SCK GPIO_21 GPIO_22 GPIO_23 GPIO_39 PIO1.0 PIO1.1 PIO1.2 PIO1.3 PIO1.4 PIO1.5 PIO1.6 PIO1.7 PIO1.8 PIO1.9 PIO1.10 PIO1.11 PIO2.0 PIO2.1 PIO2.2 PIO2.3 PIO2.4 PIO2.5 PIO2.6 PIO2.7 PIO2.8 PIO2.9 PIO2.10 PIO2.11 PIO3.0 PIO3.1 PIO3.2 PIO3.
LPCXpresso Base Board rev B - User’s Guide 5.1 Page 50 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.
LPCXpresso Base Board rev B - User’s Guide Page 51 Note that the pin names/text is valid for the LPC1343 (for which the LPCXpresso Base Board was originally designed). Gradually more and more LPCXpresso target boards have been added and signal names on the schematic have changed to generic names. Be sure to understand the connection between the two naming conventions. All PIO-pins have 270 ohm series resistors to provide some protection for short circuits and to some extent also ESD.
LPCXpresso Base Board rev B - User’s Guide Page 52 6 mbed and LPC1xxx Differences There are small but important differences between the mbed module and the LPCXpresso boards, and there are also small differences between the different LPCXpresso boards. This chapter explains the differences. Note that the signal names printed in the PCB of the LPCXpresso Base Board follow the LPC1343 board since this was the first one created.
LPCXpresso Base Board rev B - User’s Guide - USB Host connector (J60, see schematic page 5) - CAN transceiver (U4, see schematic page 5) - Ethernet connector (J19, see schematic page 5) Page 53 The following limitations apply to the mbed module: - Cannot control the audio amplifier (U10). Lack signals GPIO_21, GPIO_22, GPIO_23. - No card detect signal from SD/MMC memory card interface. Lack signal GPIO_38. - J58 must be inserted when accessing the OLED in SPI mode.
LPCXpresso Base Board rev B - User’s Guide 6.2 Page 54 LPCXpresso LPC11C24 The LPC11C24 has fewer available GPIO pins since the on-chip CAN transceiver requires some pins. There is an Excel sheet that can be downloaded with the pinning of all LPCXpresso modules. This together with the table in the beginning of chapter 5 gives the differences (compared to the LPCXpresso LPC1114 Board) that must be considered when using the LPCXpresso LPC11C24 Board: Pin 42: Is P1.9 on LPC1114 but P3.3 on LPC11C24.
LPCXpresso Base Board rev B - User’s Guide Page 55 7 Mechanical Dimensions Figure 57 below contains a drawing of the board that includes mechanical measures. Important holes or center lines are marked with x,y coordinates in mil and mm. X1 center line (795, -) mil [20.19, -] mm J60 center line (1170, -) mil [29.72, -] mm J19 center line (1695, -) mil [43.05, -] mm Pin 1 of J5 (2327, 6548) mil [59.10, 166.32] mm Pin 1 of J6 (2327, 6168) mil [59.10, 156.67] mm Mounting hole (248, 6747) mil [6.30, 171.
LPCXpresso Base Board rev B - User’s Guide Page 56 8 Troubleshooting 8.1 The Board is Always in Reset Reason 1: If a terminal application, such as Tera Term, is connected to the COM port associated with the board and at the same time have the J54 jumpers (see Figure 21) inserted, the terminal application might be the cause of this problem. If the terminal application is pulling DTR low the board will be reset and if it pulls RTS low it will control the bootload enable functionality.
LPCXpresso Base Board rev B - User’s Guide Page 57 9 Further Information The LPC1xxx microcontrollers are complex circuits and there are a number of other documents with more information. The following documents are recommended as a complement to this document. [1] NXP 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.