Home
User`s Manual - Embedded Artists
Contents
1. User s Guide 4 23 SP13 Power Supply The power supply on the board is straight forward There are three powering sources 1 5V DC via 2 1mm power jack J24 Center pin positive There is also an alternative connector J23 for this powering option 2 USB powering via the USB to UART Bridge connector J25 3 5V DC power form the PoE Power over Ethernet connector J12 In all cases a stable 5V DC voltage powers the board Current consumption depends on USB Host usage If USB Host is not used or used with very low external current consumption a 1 Amp power supply 5W is all what is needed If USB Host is used with high external current consumption a 2 2 5 Amp power supply 10 12 5W is needed The second powering option via the USB to UART connector will work in most cases Note however that not all PC s and laptops can provide this amount of current An external USB Hub can be used in that case or an external power supply U21 is a 1 5A 3 3V linear regulator LED36 signals presence of regulated 3 3V Three voltage measurement pads exist for verifying correct voltage levels on the board See picture below for locating relevant components The table below lists signal connections h PoE Connector o d J12 pin I leftmost T LO 11 Ejsicieie Biel t M ig gio LT HC p s ESI B d 00 iua nO ug LH x Ti muB oj E18C 1 A d ri E w g HE sooo li bdo iil A p i Cl
2. z pem Same EBEE EUR r zE BEER Op H c BE d ema pum a 2x ALARM LED LED21 EB E us EB n nu d 0 pup 14 Figure 8 VBAT and ALARM circuit Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 10 SP7 12C Peripherals There are several 12C peripherals on the board See picture below for locating the different components on the board The 12C addresses for the individual components are given in the schematic e Configuration E2PROM 64kbit This chip contains version information about the OEM Base Board e LM 5 Temperature sensor e 3 axis Accelerometer MMA 455 Note that the two interrupt outputs are not connected but available on JP5 e Port expander PCA9532 with 8 LEDs and 4 pushbuttons The Card Detect and Write Protect signals from the SD MMC memory card connector are also connected to this chip LED22 23 are positioned above SW2 LED24 25 are positioned above SW3 LED26 27 are positioned above SW4 and LED28 29 are positioned above SW5 B s ouuu UU E U9 S 3 gc E 31 1 31 afar RER Bn E Figure 9 2C Peripherals I2C SDA P0 27 I2C SCL P0 28 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 11 SP8 Analog Input The board contains a trimming potentiometer R94 for manually generating an adjustable voltage between GND and VREF See picture below where to loc
3. 4 18 SP10 CAN 30 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide Copyright 2013 Embedded Artists AB 4 19 SP10 IrDA 4 00 SP11 USB Channel 1 4 20 1 USB Channel 1 as USB Host 4 20 2 USB Channel 1 as USB Device 4 20 3 USB Channel 1 as USB OTG 4 04 SP12 USB Channel 2 4 21 1 USB Channel 2 as USB Host 4 21 2 USB Channel 2 as USB Device 4 21 3 USB Channel 2 as USB OTG 4 22 SP13 UART to USB Bridge 4 23 SP13 Power Supply 4 24 SP14 LCD Expansion Interface 4 25 SP15 12S Audio Codec 4 26 Default Jumpers Positions 4 26 1 Illegal Jumper Pin Usage Combinations 4 27 Usage of CPU Pins 5 Getting Started 9 1 Powering 5 2 Demo Application 5 3 Installing USB Driver 5 4 Program Download 5 4 1 ISP over UART Program Download 5 5 Handling SO DIMM Boards 5 6 Things to Note 5 6 1 Humming in Speaker 5 6 2 Current Consumption and Limits of USB Ports 5 0 3 LCD flickering 5 6 4 Initialization of External Memory Bus 5 6 5 USB OTG Transceiver 5 6 6 Rev PB1 of OEM Base Board 6 LCD Expansion Connector 7 Troubleshooting 71 1 Powering 7 2 Contact with OEM Board MCU 7 3 Using Test Program to Verify Correct Operation 8 Further Information 31 32 33 33 33 34 35 35 35 36 37 38 39 40 40 41 47 47 47 49 49 49 53 53 53 54 54 55 DD 56 57 60 60 61 61 63 LPC1788 Developer s Kit User s Guide 1 Document Revision History
4. OTG or Host interface amp connector Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide USB2 Device or Host interface amp connector Provision for NXP JN5148 RF module former Jennic interface RF module not included Full modem RS232 cannot be fully used on 32 bit databus OEM boards RS 422 485 interface amp connector Provision for IrDA transceiver interface transceiver not mounted 2 audio codec mic in line in line out headphone out SWD JTAG connector race connector e Power Power supply either via USB or external 5V DC Coin cell powering supported CR1025 battery not included for RTC and LED on ALARM output e Other OEM Board current measuring Parallel NOR flash on external memory bus 16 bit register and LEDs on external memory bus b key joystick 9 axis accelerometer I2C connected LM 5 temperature sensor I2C connected 5 push button keys four via I2C and one on P2 10 OQ LEDs 8 via I2C and one on P2 10 Analog input USB to serial bridge on UART 0 FT232R and ISP functionality Reset push button and LED Speaker output on analog output from OEM Board or from 12S audio codec Compact size 160x150 mm 2 2 ESD Precaution Please note that the LPC 1788 OEM Board and OEM Base Board come without any case box and all components are exposed for finger touches and therefore extra attenti
5. if connector mounted GPIO6 P2 6 LCD databit 4 Connects to trace connector Not for LPC1788 OEM Board also connects to ETM pads if connector mounted GPIO7 P2 7 LCD databit 5 Not for LPC1788 OEM Board also connects to ETM pads if connector mounted GPIO8 P2 8 LCD databit 6 Not for LPC 7788 OEM Board also connects to ETM pads if connector mounted GPIO9 P2 9 LCD databit 7 Not for LPC1788 OEM Board also connects to ETM pads if connector mounted GPIO10 P2 10 Connected to push button for enabling bootloader during reset or EINTO input Also connects to LED active low GPIO11 P2 11 LCDCLKIN an external clock signal can be feed to this pin Connects to USB to serial bridge for automatic ISP functionality GPIO12 P2 12 LCD databit 18 GPIO13 P2 13 LCD databit 19 GPIO14 Connects to RD1 for CAN channel 1 can also connect to IrDA transceiver GPIO15 P0 1 Connects to TD1 for CAN channel 1 can also connect to IrDA Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide transceiver GPIO16 Connects to USB to serial bridge TxD on UART 0 GPIO17 Connects to USB to serial bridge RxD on UART 0 GPIO18 LCD databit 0 can also be connected to RD2 for CAN channel 2 GPIO19 LCD databit 1 can also be connected to TD2 for CAN channel 2 ee ee LCD databit 16 GPIO23 P09 LCD databit 17 P0 10 GPIO24 Connects to UART multiplexing TxD further to LCD expansion connector seri
6. io x Oge ogi ar a paio Ch EL Go ADBANBAG FII O ran ie LO 4 E mii onn og E so poon BB DER mjm us Bo BE 20 1 oo 1 LE 1 DIEI BPIGEIE UUUUUUUL UUUUUUL d Remove R163 ost Lili l i Take 1 Note that R163 has been removed on all boards shipped out from Embedded Artists after May 15 2012 Since there is a transition period and stock at distributors there is no guarantee that the resistor has been removed on boards delivered after this date Please always check if the board has R163 removed If not remove R163 IE e rr uL UD UD LJ X P Figure 34 Identifying R163 9 6 4 Initialization of External Memory Bus The databus buffers U13 U15 to the external memory bus are controlled by the OE and BLSx signals Even though the external memory bus is not used OE and BLSx are reserved and cannot be used for other purposes This is also true if only the SDRAM is used but not the static memory areas The BLSO BLS1 BLS2 and BLS3 P4 26 P4 27 P4 28 P4 29 must be set as outputs and set high in order not to enable the databus buffers It is recommended to initialize the EMC peripheral and associated pins fully for both SDRAM and static memory regions 5 6 5 USB OTG Transceiver The USB OTG transceiver U31 MIC2555 exists in two versions OYML and 1YML Either one can be mounted on the OEM Base Board The difference is the I2C address that the chi
7. 2011 08 23 First official revision Bo 2011 09 19 Added description about how to solve LCD flickering section 5 6 3 2011 12 19 Added note about CE marking Added note about how the external memory bus must be initialized section 5 6 4 2012 01 23 Added information about migrating to LPC1788 OEM Board from LPC2478 section 3 5 2012 03 14 Added information about pre loaded demo application 2012 03 29 Minor corrections spelling and demo image Added information about rev PB1 of the OEM base Board 2012 07 03 Added information how to solve humming in speaker A C PD1 PE1 2012 05 03 Minor clarifications PE3 2012 11 08 Clarified information in section 3 4 configuration E2PROM 2012 12 04 Added information about warm reset and the Ethernet PHY 2013 06 04 Correction about which connector to use for USB Device on USB2 E7 08 2013 08 08 Corrected table on page 24 for GPIO_77 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 2 Introduction Thank you for buying Embedded Artists LPC1788 Developer s Kit based on NXP s ARM Cortex M3 LPC1788 microcontroller This document is a User s Guide that describes the LPC1788 OEM Board and the OEM Base Board hardware design which together form the LPC1788 Developer s Kit 2 1 Features Embedded Artists LPC1788 OEM Board lets you get up and running quickly The small form factor OEM board offers many unique features that ease your lea
8. 4 BH E pais E Aja RC SD MMC B sS 200 X connector B E m OS amp EChJBH 2 E E gi aimn 5 p ce nl Gos E ES e Dy l fol ae ES H ICI sg a 54 2 c 199 ES ES 200 E Ey TIDOIDOOOONOOODDOOOOOI 2 oL Hsr Ga O 360 I EG O tB C Expansion 7b bep po pg p peppen Ghebepe CL LI BB 3 2 SIGISI S615 SIS S1S E16 61616 ojo oe Pd Connectors Ege IET T Ta TT mu B D rh CIE Sooo oo colo ojo ooo ae co E a a pees DOOR f Oyo Hl l mU mimant DUBIO od _ HE Dj E_E n DSA PERRE 7 rem HOCU T oo T 2 EFE B EE Eel EET ESTEE LCD Expansion Connector Memory Bus Pushbuttons Reset Push button Expansion and LEDs SWI Figure 1 OEM Base Board Overview 4 1 Modifications to OEM Base Board The OEM Base Board has been designed to be flexible Most options can be controlled via jumpers but some options might need soldering Note that modifications to the board are done at own risk and void all warranties Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 2 SP2 OEM Board Connector The LPC1788 OEM board connector is a standard DDR2 SO DIMM socket with 200 positions and 0 6mm pitch It has 1 8V keying which is what DDR2 stands for The signal names are general and represent the OEM base board functionality rather than the LPC1788 signal names This
9. 4 a nooo EE SO eurun B OE E re PBB 58 Bn 3 E E 1 ern cg gue foo B c EODUES B E ninm E PE E ch B l m ey B B EE QD pe c wS E A gt IT ib o f m Hih Bs inm ms E Reb us Ejeljeljeielelelleie 2 i oLILI 71 SRSA ae a E E COS ga pn Seele secl els Bg E Ot zi nondom nm llis BI cu E 63 54 64 64 3 lem CRDI Bars oo o arem m 0m am en en omr er r r e inj NN m EB a te Amt BI O IL L1 1 OOO coo ooo ood OOQ 7 z 4 24 24 24 24 2 3 4 Figure 25 OEM Base Board Default Jumper Positions 4 26 1 Illegal Jumper Pin Usage Combinations Note that some jumpers are mutual exclusive and should not be inserted simultaneously e USB1 OTG transceiver and LCD interface P1 27 P1 29 are used by both interfaces so they cannot be active at the same time e When using the 32 bit data bus version of the LPC1788 OEM Board all jumpers in connectors JP11 should always be removed Also JP12 JP13 should not be in position 1 2 The UART signals in signals P3 xx else collide with the upper 16 data bits of the data bus JP12 JP13 can be in position 2 3 to connect UART 2 RxD TxD to the RS232 interface e GPIO68_I2S MCLK generates the SYSCLK for the 12S audio codec UDA1380 This is pin P1 16 The same pin is used for Ethernet PHY communication Therefore 12S audio and Ethernet cannot be used at the same time some signals are used on different interfaces that canno
10. Eni L1 E USB mini B Connector ao Q MOOR J25 Q v eri r ME Voltage Measuring Pads Left to right GND 5V 3 3V a al 8 Figure 22 Power Supply Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 24 SP14 LCD Expansion Interface The board contains a buffered LCD expansion interface via a 50 pos IDC connector The expansion interface also includes UART see UART multiplexing 12C and SPI interfaces These additional interfaces are for identifying external displays via configuration I2C E2PROM as well as touch screen controllers An external LCD pixel clock can also be supplied via the expansion connector The LCD expansion connector carries 18 data bits per pixel by default 6 per RGB color The LPC1788 LCD controller can produce 24 data bits per pixel and it is possible to output all these signals on the LCD expansion connector The trade off is that the UART and 12C serial interfaces have to be removed Via SJ6 SJ11 it is possible to select what signals to make available on the LCD expansion connector By default pad 1 2 are connected on SJ6 SJ11 For performance reasons on the LPC1788 a system with 16 bit color information per pixel is typically what is implemented See picture below for locating relevant components The table below lists signal connections ES E Du EN l a og n k E hmmm 3 Expansion Connector Options Left to right SJ11 SJ6 SJ10 SJ7 SJ8
11. Note that J4 has gathered all needed signals for expanding the memory bus 16 bit bus expansion J4 is the expansion connector closest to the board edge Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide I pore SINGIN Expansion Connectors left to right J4 J3 J5 4 5 m Figure 3 Expansion Connectors J3 J4 J5 4 5 SP4 External Memory Bus This part of the OEM Base Board demonstrates how the external memory bus can be used for expansion of custom circuits Two different devices are connected to the memory bus a 16 bit parallel NOR flash and a 16 bit register In order to be universal between 16 and 32 bit databus width OEM Boards only the lower 16 bits are connected The 16 bit parallel NOR flash is enabled when JP1 is inserted see picture below for guidance where to find JP1 on the OEM Base Board Note that the signal name is cryptic since the OEM Base Board is compatible with many different OEM Board For the LPC1788 OEM Board the signal BDQMO BCSY is actually signal BCSO This means that the NOR flash is accessible in memory region 0x8000 0000 Ox83FF FFFF Also a 16 bit register is connected to the external memory bus The 16 bits in the register directly drives 16 LEDs a high signal light a LED The signals are also available on an expansion connector J6 It can for example connect to a logic analyzer for high bandwidth logging The upper and lower 8 bi
12. S9 EE ajc pur Aen y g nininini CO Qi M 2 cea A I ao u E piojo S o AAEL A E S b 3 EES ET om om fom fom fom om DIETE L ci eenma mie mia a L I TRCT ODODO 53 A b d ol EE qup Figure 23 LCD Expansion Interface I2C SDA P0 27 P2 15 note also used as CS3 GPIO42 P1 18 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 25 SP15 12S Audio Codec The board contains an 12S audio codec based on UDA1380 from NXP The codec is controlled via I2C and audio data is transferred over the 12S bus The OEM Base Board supports different OEM Boards and the 12S signals can be located at two different groups of signals from the OEM Board Jumper JP22 JP27 selects which group of signals to connect to the 12S interface of the UDA1380 For LPC1788 OEM Board set all jumpers in upper position see picture below The audio codec provides a mono microphone input a stereo line input a stereo line output and a stereo headphone output The board also has an on board speaker The right line output can be used to drive the speaker The analog output from the LPC1788 as well signal GPIO40 See picture below for locating relevant components The table below lists signal connections MEN PME Fo 5H Audio Connectors Left to right J27 J28 J29 J30 E A rly Mic in Line in Line out Headphone out a 1 O 10000
13. interfaces can look complex but that is just because the board supports many different OEM Boards The connectors are e J this is the new and smaller footprint standard ARM debug connector It has 2x5 pins in 50 mil pitch The connector supports both the SWD and JTAG interfaces Note that not all and in particular older JTAG debug probes do not support the SWD interface standard Note where pin 1 is found see picture below for this connector e J8 this is the old and big footprint standard ARM debug connector It has 2x10 pins in 100 mil pitch The connector supports both the SWD and JTAG interfaces Note that not all and in particular older JTAG debug probes do not support the SWD interface e J9 this is the old and big footprint 38 pin Mictor connector for ETM trace for the LPC2478 This connector is not mounted It is not used when working with the LPC1788 OEM board The connector can be soldered to the board if needed The connector can be bought from Tyco Electronics Amp and is a 38 way receptacle Mictor connector 0 025 pitch part number 767054 1 or 2 5767004 2 RoHS compliant e J10 this is the new and smaller footprint standard ARM Cortex M3 connector for trace It carries the trace signals as well as the debug signals found on J7 Note where pin 1 is found see picture below for this connector Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide When working with the LPC1788 OEM Boa
14. is because the OEM base board also supports other OEM boards 4 3 SP2 Current Measurements It is possible to accurately measure current consumption of the LPC1788 OEM board This can be very valuable when working with applications that make use of the low power modes of the LPC1788 processors The circuit is based on the chip ZXCT1010 from Diodes Zetex This chip generates a voltage output proportional to the current through R2 This voltage can be measured over J2 100mA gives a 500mV output voltage or expressed differently 1mV correspond to 0 2mA It is possible to remove R1 R2 and or R3 for measuring current with an external multimeter Note that VCC MAIN and VCC BUFFERS are connected on the LPC1788 OEM board so there is no difference between these supplies This division has been done for compatibility with other OEM boards ZH sooo JH deer o CT 2 B 8 um i m TERRE C C Cc uem E E Current Measurement J2 left signal right gnd Figure 2 Current Measurement J2 44 SP3 Expansion Connectors All relevant OEM board signals are available for external use via three 64 pos IDC expansion connectors J3 J4 and J5 The expansion connectors are close to the SO DIMM connectors to minimize signal distortion Note that some OEM board circuits may need to be disconnected before externally used Carefully investigate the need for this before using a signal for external expansion
15. is entered Download and install Flash Magic htto www flashmagictool com This application directly supports application download via ISP and can automatically enable ISP also Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide some settings must be changed in Flash Magic in order to enable automatic enabling of ISP Figure 29 illustrates where the Advanced Options selection can be found Select Devi emLEC 1728 7 Erase block 0 0x000000 0K000F FF Erase block 1 0x001 000 0001 FFF COM For COM 6 Erase block 2 0x002000 0002FFF Erase block 3 Ox003000 0 003F FF Baud Rate 57600 Erase block 4 0x004000 0 004FFF Interface Nome ISF Baseballs Sed Moser ts dal Erase all Flash Code Ad Prot Oscillator MHz _ Erase blocks used by Hex File Step 3 Hex File Hes File C Snspsdema hes Modified onsdag mai 4 201 1 10 12 25 more infa step 4 Options Verify after programming Fill unused Flash Gen black checksums _ Execute Technical on line articles about 8051 and 24 programming Www esacademuy cam Fag dacs Figure 29 Flash Magic Advance Options Then select the Hardware Config tab end set checkboxes and T1 T2 numbers according to Figure 30 it Flash Magic NON PRODUCTION USE ONLY File ISP Options Tools Help GHoas34wvE jwmHOZS Step 1 Communications Step 2 Erase Erase block O Ox000000 0 0100FFF ae Use DTA and ATS to co
16. is quite wide Being outside this does not necessarily mean that something is LPC1788 Developer s Kit User s Guide wrong More symptoms than this is needed to judge if a board is wrong or not Do not forget to press the reset push button all the time during this measurement Redo the test in case of uncertainty 8 Now measure the current consumption of the OEM Board when it is running an application It is a problem to not have a specified application running because the current consumption can vary widely between different applications The current consumption shall increase compared to the previous test in case an application is running It is recommended to download one of the precompiled sample applications from the LPC1788 Developer s Kit support page on the Embedded Artists web site How to download is explained in next section The sample application s sdram hex has for example a known current consumption range The valid range is 650 900m V which corresponds to 130 180mA The current consumption varies between different sample applications depending on which peripherals that are active A running application will in general give a range of 400 700mV which corresponds to 80 140mA 9 In most cases it is possible to power the board via the USB interface J25 the UART to USB bridge mini B USB connector Redo tests 3 to 8 above again with USB powering Connect J25 directly to a PC with the USB cable included in the Developer s
17. that case the I2C GPIO expansion chip can be used to create this signal Alternatively a free GPIO signal in the LCD Expansion Connector can be used All TFT LCDs must have a control for backlight A constant current source is needed Some displays have one LED string while others have 2 4 strings making control slightly more complicated o OLEDs do not require separate backlight since the pixels transmit light themselves As a final step a touch screen interface is typically needed o Embedded Artists display boards often use the TSC2046 from Tl It has a simple SPI interface o Capacitive touch screen controllers typically have 12C or SPI interfaces Do not forget that some displays have configurations pins for selecting interface type functionality LPC1788 Developer s Kit User s Guide 7 Troubleshooting This chapter contains information about how to troubleshoot boards that does not seem to operate properly It is strongly advised to read through the list of tests and actions that can be done before contacting Embedded Artists The different tests can help determine if there is a problem with the board or not For return policy please read Embedded Artists General Terms and Conditions document can be found at htto Mwww embeddedartists com shop 1 1 Powering The first step is to make sure that powering works properly The input power interface is described in section 4 23 ls Copyright 2013 Embedded Artis
18. 1788 has many options for routing the pixel data to different pins and there are differences depending on the display mode selected The OEM Base Board supports the default settings when using TFT 4 4 4 or TFT 5 6 5 mode For 24 bit systems the extra serial interfaces on the LCD Expansion Connector must be traded off o Many displays have 24 or 18 bit color interfaces i e 8 or 6 bits per color This means that some color information is missing when using TFT 4 4 4 or TT5 6 5 mode Always connect the available color bits from the LPC1788 to the MSB bits A common solution is to connect the most significant color bit to the missing LSB bits Alternatively just ground the LSB bits o The table below lists where the pixel color information can be found when working in TFT 4 44 or TFT 5 6 6 mode LCD VD bit in TFT 4 4 4 mode TFT 5 6 5 mode LCD Expansion Connector J26 LCD VD4 REDO LSB RED1 RED1 RED2 ww fe Wo o Reo RN o RED3 MSB RED4 MSB e LCD_VD7 LCD_VD10 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide Copyright 2013 Embedded Artists AB LCD VD12 GREENO LSB GREEN2 LCD VD13 LN GREEN1 GREEN3 LCD VD14 LM GREEN2 GREEN4 LCD VD15 LINE GREEN3 MSB GREEN5 MSB LCD VD20 PN BLUEO LSB BLUE1 LCD VD21 989 BLUE1 BLUE2 LCD VD22 BLUE2 BLUE3 LCD_VD23 BLUE3 MSB BLUE4 MSB The HSYNC VSYNC DEN control signals and the DOTCLK pixel clock signals must be connecte
19. 2C E2PROM as well as touch screen controllers An external LCD pixel clock can also be supplied via the expansion connector The LCD expansion connector carries 18 data bits per pixel by default 6 per RGB color The LPC1788 LCD controller can produce 24 data bits per pixel and it is possible to output all these signals on the LCD expansion connector The trade off is that the UART and 12C serial interfaces have to be removed Via SJ6 SJ11 it is possible to select what signals to make available on the LCD expansion connector By default pad 1 2 are connected on SJ6 SJ11 For performance reasons on the LPC1788 a system with 16 bit color information per pixel is typically what is implemented A 565 system is most commonly used This means 5 bits for red 6 for green and 5 for blue 16 bits in total 24 bit systems will double to load on the external memory bus since each pixel is stored as 32 bits instead of 16 bits or fewer Note that the LCD Expansion Connector only supports connecting to a display via the RGB interface Some lower resolution displays have the option to connect via a memory bus like interface typically 8 or 16 bit If a memory bus like interface shall be used use the external memory bus available via expansion connector J4 instead There are many steps to consider when connecting a custom LCD to the LCD Expansion Connector e Asafirst step the pixel color signals must be matched between the LPC1788 and display The LPC
20. 3 5 Migrating to LPC1788 from LPC2478 The LPC1788 can be viewed as the Cortex M3 version of LPC2478 ARM TMDI core NXP have in general made the chips very compatible The LPC1788 is newer design and recommended for new designs The maximum clock frequency is also higher allowing for more tasks to be handled Below are the things to consider when migrating to an LPC1788 OEM boards from an LPC2478 OEM board e There is an application note from NXP describing the general issues when migrating AN10878 Migrating to the LPC1700 series There are both hardware and software issues to consider It involves more than just recompiling the code e he LPC1788 OEM board is physically 7 mm higher 55mm instead of 48 mm e The Ethernet PHY on the LPC1788 OEM board is different LAN8720 from SMSC instead of DP83848 from National Tl e There are LEDs connected to pins P2 26 and P2 27 on the LPC1788 OEM board This is normally not a problem since the LEDs can be disabled also e hereis no 4 MByte NOR FLASH on the LPC1788 OEM board e he LPC1788 OEM board only allows static memory region expansion as opposed to the LPC2478 OEM board that allows both static and dynamic memory regions to be expanded on the external memory bus This change has the benefit of simplifying expansion of static memories which is the most common anyways On the LPC2478 OEM boards the databus buffers has to be controlled by an external circuit to enable the buffers Copyrigh
21. 31 No special usage on OEM Base Board Note that P2 30 is not available on 32 bit databus LPC1788 OEM Boards only on 16 bit databus versions GPIO80 Direct P4 28 LCD databit 2 BBLS2 Buffered BBLS2 Note that direct P4 28 is not available on 32 bit databus LPC1788 OEM Boards only on 16 bit databus versions GPIO81 Direct P4 29 LCD databit 3 BBLS3 Buffered BBLS3 Note that direct P4 29 is not available on 32 bit databus LPC1788 OEM Boards only on 16 bit databus versions Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide BDO BD15 P3 0 P3 15 Occupied for 16 bit databus versions Connects to parallel NOR flash and 16 bit register BD16 DB31 P3 16 P3 31 Also occupied for 32 bit databus versions No special usage on OEM Base Board GPIO97 P3 16 Can be connected to RS232 interface if 16 bit databus version used GPIO96 Pee lit Can be connected to RS232 interface if 16 bit databus version used GPIO95 P3 18 Can be connected to RS232 interface if 16 bit databus version used GPIO94 P3 19 Can be connected to RS232 interface if 16 bit databus version used GPIO93 P3 20 Can be connected to RS232 interface if 16 bit databus version used GPIO92 P3 21 Can be connected to RS232 interface if 16 bit databus version used GPIO91 P3 22 Can be connected to RS232 interface if 16 bit databus version used GPIO90 P3 23 No special usage on QVGA Base Board if 16 bit databus version used GPIO89
22. Artists com Trademarks All brand and product names mentioned herein are trademarks services marks registered trademarks or registered service marks of their respective owners and should be treated as such Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide Table of Contents 1 Document Revision History 5 2 Introduction 6 2 1 Features 6 2 2 ESD Precaution 7 2 3 General Handling Care 8 2 4 Code Read Protection 8 2 5 CE Assessment 8 2 6 Other Products from Embedded Artists 8 2 6 1 Design and Production Services 8 2 6 2 OEM Education QuickStart Boards and Kits 9 3 LPC1788 OEM Board Design 10 3 1 Memory Layout 10 3 1 1 NAND Flash 11 3 2 LEDs 11 3 3 Board Options 11 3 4 Configuration EZPROM 11 3 5 Migrating to LPC1788 from LPC2478 11 3 6 Things to Note 13 3 6 1 Trace Connector 13 3 6 2 Warm Reset and Ethernet PHY 13 4 OEM Base Board Design 14 4 1 Modifications to OEM Base Board 14 4 0 SP2 OEM Board Connector 15 4 3 SP2 Current Measurements 15 44 SP3 Expansion Connectors 15 45 SP4 External Memory Bus 16 4 6 SP5 Debug Interfaces 17 4 7 SP6 Ethernet Interface 19 48 SP6 SD MMC Memory Card Interface 20 4 9 SP6 VBAT ALARM Handling 21 4 10 SP7 12C Peripherals 22 4 11 SP8 Analog Input 23 4 12 SP8 Digital IO 24 4 13 SP8 Serial Expansion Connector 24 4 14 SP8 NXP Jennic RF Module Interface 26 4 15 SP9 UART Multiplexing 27 4 16 SP9 RS232 Interface 28 4 17 SP9 RS422 485 Interface 29
23. BAT VBAT ouper capacitor on vbat signal ALARM ALARM Connected to alarm LED active high VREF VREF Can be connected VDDA V3A VDDA VDDA Used to generate reference voltage for trimpot analog inputs VSSA VSSA SWD JTAG SWD JTAG Connected to SWD JTAG connectors signals signals JTAG_DBGEN JP4 can pull signal high RESET RESET Connects to RESET push button and USB to serial bridge for automatic ISP functionality RSTOUT RSTOUT Connects to RESET LED indicator Used to reset PCA9532 UDA1380 FT232RL MIC2555 RF module and LCD expansion connector Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 9 Getting Started This chapter contains information about how to get acquainted with the LPC17688 Developer s Kit Please read this section first before you start using the board it will be well spent time 5 1 Powering The board can normally be powered from a PC laptop via the included USB cable mini B to A cable This is done via the USB to UART connector and will work in most cases Note however that not all PC laptops can provide the needed current An external USB hub can be used in this case or an external power supply A separate power supply is always needed in stand alone situations or when running USB Host application when powering external USB devices If USB Host is not used or used with very low external current consumption a 5VDC 1 Amp power supply 5W is all what is need
24. C1788 contains a bootloader in ROM that can be enabled by pulling pin P2 10 low during reset The application can then be downloaded over UART O serial channel An application is needed on the PC for downloading the application code AP over Ethernet or USB IAP is short for In Application Programming In this case the LPC1788 flash must have a small bootloader installed that allow application code to be downloaded over Ethernet USB or some other communication channel The bootloader must be created by the user and is typically specific for the application NXP has published some application notes related to this SWD JTAG There are many different SWD JTAG interfaces on the market NXP has created LPC LINK Keil has ULINK IAR Segger has JLINK Code Red has Red Probe etc There is also OpenOCD which is an open source project Consult the respective manual for the SWD JTAG interface used to get instructions how to download a hex binary file via SWD JTAG The application code is typically downloaded to the internal flash of the LPC1788 but it is not the only way An application can also be downloaded to the internal ram of the LPC1788 Application code can also be downloaded into external memories outside of the LPC1788 In these cases a bootloader that supports this must be used Embedded Artists support site contains sample applications for the LPC1788 Developer s Kit Source code and pre compiled binary images hex files can be dow
25. E 3 MONDO iE B eo Di Serial Expansion Connector E IEEE O Cue IEEE BgOOOnn St Ea HOU es 2 P n AN ora piti tmm E mI of 000000 mog O pes qu Joc B E pq Goo AS o eS Figure 12 Serial Expansion Connector GPIO29 SPI CLK P0 15 GPIO31_SPI MISO P0 17 GPIO32 SPI MOSI P0 18 GPIO69 P2 14 note also used as CS2 SIE UART RXD P0 11 via multiplexor SIE UART TXD P0 10 via multiplexor GPIO37 AINO GPIO38 AIN1 Note that GPIO69 is also used as CS2 Chip Select 2 This signal is also used for the 16 bit register for external memory bus expansion Make sure not to use these two functionalities simultaneously Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 14 SP8 NXP Jennic RF Module Interface There are pads on the backside of the OEM Base Board for soldering a JN5148 NXP former Jennic RF module These pads are opposite of the SD MMC memory card interface connector There is also provision on the board for programming the RF module This is done via 6 pos pin list J31 where a FTDI programming cable is connected TTL to USB Serial Converter cable TTL 232R 3V3 see for example Digikey 768 1015 ND During programming multiplexor U29 and U30 connects the UART channel directly to the programming cable via J31 The RF module can be reset via SW1 Program mode is entered by pressing SW9 during and shortly after
26. IO43 and is by default half duplex i e no simultaneous transmit and receive A high level enables the transmitter while a low level enables the receiver It is possible to remove R135 and R136 and control the transmitter and receiver individually via JP7 and JP8 The interface component used SN65HVD35 has built in ESD protection See picture below for locating relevant components The table below lists signal connections JP8 31 1 terega o Transmit Control ld E JP7 RS422 485 part of Connector From top pos 1 to bottom GND TX TX RX RX Figure 16 RS422 484 Interface P0 11 via multiplexer P0 10 via multiplexer GPIO43 P1 19 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 18 SP10 CAN There is one CAN interface mounted on the board The board is also prepared for a second CAN interface if needed Via JP16 it is also possible to add termination resistors if needed The interface has on board ESD protection See picture below for locating relevant components The table below lists signal connections D90 yo yo n CAN part of Connector O00 P ET ga From top pos 6 to bottom 2 mm GND 3 LI CANI L D CAN1 H CAN2 L CAL2 H 1 ee Be Eg Erro oe exc gt 2020 Figure 17 CAN Interface Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 19 SP10 IrDA The board is prepared
27. Instead the CS3 signal is available for external static memory region expansion ABUF EN but ABUF EN There is no need to control the address connected to GND on buffers on the LPC1788 OEM board OEM board They are always enabled 3 6 Things to Note 3 6 1 Trace Connector The first production batch of the LPC1788 OEM Board has the SWD JTAG and trace connectors soldered These will not be soldered in later production batches of the board The SWD JTAG and trace interfaces are normally connected to the OEM Base Board 3 6 2 Warm Reset and Ethernet PHY The RSTOUT RESET OUT signal from the LPC1788 controls the reset input to the Ethernet PHY LAN8720 If the reset condition for the LPC1788 is internal for example a watchdog reset or forced reset via CMSIS NVIC_SystemReset function call the length of the reset pulse on RSTOUT RESET OUT is very short as low as 1 5 us This is too short for the LAN8720 to get a proper reset If warm resets are implemented as part of the application then external hardware must be added that supports triggering the RESET IN signal to get a proper reset signal for the Ethernet PHY LAN8720 Whenever a warm reset event occurs the RESET IN signal must be pulled low via for example a GPIO The reset generator on the LPC1788 OEM board will then generate a proper length reset signal Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 OEM Base Board Design This chapt
28. Kit Note that not all PC s and or laptops can power the board In such cases a USB hub with independent powering can work In this case connect J25 to a USB Hub which in turn is connected to a PC 7 2 Contact with OEM Board MCU The second step is to make sure that the LPC1788 MCU on the OEM Board is working Test that it is possible to download one of the precompiled test programs that exist on Embedded Artists support site Use FlashMagic to download code over the UART to USB bridge See section 5 4 1 for details how to download Make sure both jumpers in JP20 are inserted and that correct settings in FlashMagic are used Optionally test that it is possible to download via the JTAG SWD interface A JTAG SWD debug interface us then needed The low cost LPCXpresso target board series from NXP contains a JTAG SWD debug interface called LPC LINK that can be used for this Other brands will also work 7 3 Using Test Program to Verify Correct Operation The third step is to utilize the just downloaded precompiled sample applications one after one to verify correct operation of individual parts of the OEM Board as well as the OEM Base Board While doing these tests be sure to not have anything connected to the system There are sample applications for testing verifying operation of 1 Analog input I2S E2PROM NAND flash Accelerometer I2S audio via codec Ethernet SD MMC memory card interface Joystick LEDs and push buttons via the
29. LPC1788 Developer s Kit User s Guide Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide j TUU Es B cco e Qr a ur w O4 M O89LLE6AH unyueH 3 ETITTITLIT LE PTT iii iii III IL TITITTI HIHIH OOTTE E Een Mini ee WM Embedded Artists Get Up and Running Quickly and Start Developing Your Application On Day 1 Embedded Artists EA2 USG 1104 Rev E LPC1788 Developer s Kit User s Guide Embedded Artists AB Davidshallsgatan 16 211 45 Malm Sweden info EmbeddedArtists com http www EmbeddedArtists com Copyright 2013 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
30. OEM Base Board can connect a 16 bit parallel register to this chip select Available for external use Dynamic memory 0 DYCSO OxA0000000 SDRAM 256 MBit 32 Cannot be accessed on OxAFFF FFFF MByte in size external memory bus Static memory 3 C 0x9C00 0000 Ox9FFF FFFF Dynamic memory 1 DYCS1 0xB000 0000 Cannot be accessed on OxBFFF FFFF external memory bus Dynamic memory 2 DYCS2 0xC000 0000 Cannot be accessed on OxCFFF FFFF external memory bus Dynamic memory 3 DYCS3 0xD000 0000 Cannot be accessed on OxDFFF FFFF external memory bus As seen in the table above it is only the static memory regions that are available on the external memory bus from the LPC1788 OEM Board The data bus buffers on the LPC1788 OEM Board are controlled automatically and only enabled when a static memory region is accessed The address and control bus buffers are always enabled Note that the BLSO BLS1 BLS2 and BLS3 pins must be initialize for these functionalities Else the buffer control will not work correctly Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 3 1 1 NAND Flash Note that the NAND flash is connected after the memory bus buffers i e on the same side as the LPC1788 OEM Board expansion signals This is to allow flexibility in NAND flash usage and reduce loading on memory bus that is directly connected to the SDRAM The NAND FLASH has an optional busy output that c
31. P3 24 No special usage on QVGA Base Board if 16 bit databus version used GPIO88 P3 25 No special usage on QVGA Base Board if 16 bit databus version used GPIO87 P3 26 No special usage on QVGA Base Board if 16 bit databus version used GPIO86 P3 27 No special usage on QVGA Base Board if 16 bit databus version used GPIO85 P3 28 No special usage on QVGA Base Board if 16 bit databus version used GPIO84 P3 29 No special usage on QVGA Base Board if 16 bit databus version used GPIO83 P3 30 Can be connected to RS232 interface if 16 bit databus version used GPIO82 P3 31 No special usage on QVGA Base Board if 16 bit databus version used BAO BA23 P4 0 P4 23 The address bus buffered signals from OEM Board Connects to parallel NOR flash and 16 bit register P4 24 OE buffered signal from cpu board Connects to parallel NOR flash BWE P4 25 WE buffered signal from cpu board Connects to parallel NOR flash and 16 bit register Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide BBLSO Buffered P4 26 BLSO controls lower 8 bits of external memory databus 16 bit parallel register Connects to 16 bit register BBLS1 Buffered P4 27 BLS1 controls upper 8 bits of external memory databus 16 bit parallel register Connects to 16 bit register P4 30 Direct P4 30 CS0 chip select for parallel NOR flash BDQMO BCSY Buffered BCSO BCS1 Buffered P4 31 No special usage on OEM Base Board V
32. PCA9532 10 Audio via analog output O qe cx 0 Qv ie e Tw Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 11 12C temperature sensor 12 UART 13 USB Device HID example Make sure the jumper settings are correct when doing this test 14 USB Host Make sure the jumper settings are correct when doing this test 15 External SDRAM Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 8 Further Information The LPC1788 microcontroller is a complex circuit and there exist a number of other documents with a lot more information The following documents are recommended as a complement to this document 1 2 3 4 9 6 7 8 9 NXP LPC1788 Datasheet http ics nxp com products Ipc1000 datasheet Ipc1 7 7x lpc178x pdf NXP LPC1788 User s Manual http ics nxp com support documents microcontrollers pdf user manual lpc17 7x lpc1798x pdf NXP LPC1788 Errata http ics nxp com support documents microcontrollers pdf errata lpc177x lpc178x pdf ARM Processor Documentation Documentation from ARM can be found at http infocenter arm com Information on different ARM Architectures http www arm com products processors technologies instruction set architectures php ARMv7 M Architecture Reference Manual Document identity DDI 0403D http infocenter arm com help index jsp topic com arm doc ddi0403c index html Cortex M3 Technical
33. PIO42 P1 18 GPIO51 P1 27 dual Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide functions GPIO52 P1 28 GPIO53 P1 29 GPIO46 P1 22 normally not connected GPIO43 P1 19 normally not connected 4 20 1 USB Channel 1 as USB Host When USB channel 1 is used as USB Host 15Kohm pull down resistors are needed on the USB data signals These are activated inside the USB OTG chip U31 and this has to be done via the 12C interface of GPIO52 GPIO53 J20 is the connector to use when USB Host is used In order to provide 5V to the external USB device connected to this connector J20 channel A of U20 must be enabled It is enabled by default since SJ5 is normally connected between pin 1 2 LED34 lights green when 5V is available on J20 JP15 shall not be inserted JP16 has no effect 420 2 USB Channel 1 as USB Device When USB channel 1 is used as USB Device a 1 5Kohm pull up resistor is needed on the USB DP data signal There are two methods to create this JP15 is inserted and the pull up resistor is always enabled Alternatively the pull up resistor is activated inside the USB OTG chip U31 and this has to be done via the 12C interface of GPIO52 CPIO53 In the latter case JP15 shall not be inserted J19 is the connector to use when USB Device is used Normally it should be a USB B connector for creating a USB Device interface but the mini AB connector can also be used in this case The status of
34. PUE PEED 05 T Tom g HR 3 P poe p IE 1j 10 E 5 10 re BBB decus co i BE 12S Select mr Pir Left to right JP22 JP23 n p JE n n zm UE IP24 IP25 P26 JP27 PO8 EL BI LEN Tx z rilii a seep oo E EN z I 4 m RIT oag Thali 3 BIS AOS ES O ID 7 is B EIN ia II B CX am Q wia l m Audio Select JP29 Figure 24 12S Audio Codec Interface Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 26 Default Jumpers Positions Figure 25 illustrates the default jumper positions as mounted when the board is delivered from Embedded Artists 7 ON SCIT e Fla md s B uma 20 19 pan d i cg Lc Vus 939 598 uud x ud ES FC am jE rr A ee E B ne ve LIODEODUDU LODEIDEDO EERERERERER mja mr ete o m B S 0 DT ag E E Dog Gu g HI mar t nit m se ET PURGE aw Sop TTT a te Lc IC 38 m Tag ilz 5 O Oa AoC zh EXE ea ue C HH Joogi xm eS EN E Mmm o ag pitt B i ST op g co GO ie o e ZH l 5 Seng DOLOR 1 21 21 23000 6 i 00 S ei tt B E B8 B EB C B 002 40 14 En H 42 HE Fo zZ ES 8 D 2200 E E n IBN B rur mn E i 2 dg m c c ES iini fal B DH e z3 ad o s 20 a B B yg yo OOO gE sO E E a em Boda BABS oo pij 03 0 gt B E
35. Reference Manual Revision r2p1 http infocenter arm com help index jsp topic com arm doc ddi033 7i index html LPCXpresso IDE NXP s low cost development platform for LPC families which is an Eclipse based IDE http ics nxp com Ipcxpresso LPC1000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC1xxx series of microcontrollers http tech groups yahoo com group Ipc1000 10 LPC2000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC2xxx series of microcontrollers This group might be more active than the LPC1000 group http tech groups yahoo com group lpc2000 Note that there can be newer versions of the documents than the ones linked to here Always check for the latest information version Copyright 2013 Embedded Artists AB
36. S222lnterface The multiplexing is static in the sense that a change in the multiplexor setting requires jumpers to be moved It is not controlled from the OEM Board The picture below shows where to find the pin list to control multiplexing and the different settings The table lists signal connection lololololo Y Hg mun Jumper settings for JP6 JO t UU OOONNUUUL ioe ae E 2 o Serial Interface a Expansion Connector RF module default M 9 UART to LCD Expansion oso Connector Di0 on mr TR m E FEEL D0 2 ES oa UART to RS422 485 s OO i a OE noB transceiver 00 co 3 DnnnODD cas iO 858 ERE 1 Form fe EAS 1L gj 8 15 oo i UART to RS232 Interface EB SO a 2 6 D p5gg Goo Oo OS y 11 ofo Figure 14 UART Multiplexing GPIO25 RXD P0 11 GPIO24 TXD P0 10 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 16 SP9 RS232 Interface There is a RS232 interface with all modem signals on the board The RS232 interface is available on a 9 pos male DSUB The OEM Base Board is a DTE Data Terminal Equipment An external device can be a DCE Data Communications Equipment For connecting DTE to DCE a straight thru cable shall be used An external device can also be a DTE For connecting DTE to DTE a null modem cable shall be used also called a crossover cable See picture below for locating relevant components on the board The table below lists signa
37. VBUS can be read via U31 JP16 shall not be inserted LED34 is has no meaning 4 20 3 USB Channel 1 as USB OTG When USB channel 1 is used as USB OTG pull up and pull down resistors are controlled via the USB OTG chip U31 and this has to be done via the I2C interface of GPIO52 GPIO53 Note that some LCD signals interfere with the I2C signals to the USB OTG chip In particular note that R163 is typically not mounted on the OEM Base Board J19 is the connector to use when USB OTG is used VBUS is controlled via U31 JP15 shall not be inserted LED34 is has no meaning JP16 can be inserted in order to force USB Host behavior on the interface if the external device connected to J19 cannot pull the ID signal low Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 21 SP12 USB Channel 2 This section describes the second USB interface on the board This interface has a USB Host connector USB A a USB OTG USB mini B and a USB Device connector USB B One of these interfaces can be used at a time i e both cannot be used simultaneously The software on the LPC1788 OEM Board is also different between the two interfaces For USB Device operation insert jumpers in position 1 2 in JP17 JP18 JP19 GPIO28 controls USB connect functionality and LED32 lights when the USB Device is connected SJ4 has pads 1 2 shorted by default LED33 is controlled by GPIO27 and signals USB up state GPIO54 is used f
38. al expansion connector RF module RS232 and RS422 485 GPIO25 P0 11 Connects to UART multiplexing RxD further to LCD expansion connector serial expansion connector RF module RS232 and RS422 485 GPIO26 P0 12 Connects to USB2 VBUS power enable GPIO27 P0 13 Connects to USB2 up LED active low GPIO28 P0 14 Connects to USB2 connect functionality for USB device operation GPIO29 P0 15 SPI SCK Connects to LCD expansion connector via buffer Connects to serial expansion connector GPIO30 P0 16 SPI SSEL Connects to LCD expansion connector GPIO31 P0 17 SPI MISO Connects to LCD expansion connector Connects to serial expansion connector GPIO32 P0 18 SPI MOSI Connects to LCD expansion connector via buffer Connects to serial expansion connector GPIO33 P0 19 Connects to LCD expansion connector GPIO function GPIO34 P0 20 Connects to LCD expansion connector GPIO function touch controller spi ssel GPIO35 P0 21 No special usage on OEM Base Board GPIO36 P0 22 No special usage on OEM Base Board GPIO37 P0 23 Connects to serial expansion connector GPIO38 P0 24 Connects to serial expansion connector GPIO39 P0 25 Connects to trimming potentiometer GPIO40 P0 26 Connects to speaker output on AOUT signal I2C SDA P0 27 I2C SDAO connects to PCA9532 E2PROM LM74 3 axis Accelerometer audio codec serial expansion connector lcd expansion connector Copyright 2013 Embedded Artists AB LPC1788 Developer
39. an be used for controlling the erase program operations with better precision The signal is available on the expansion connector If needed the signal can be routed to a suitable i e free input pin The OEM Base Board can connect the signal to GPIO72 by inserting a jumper between pin 3 4 on JP2 The busy status of the chip is also available under software control 3 2 LEDs P2 26 and P2 27 controls two LEDs on the LPC1788 OEM Board This control can be disabled via SJ4 shorting pad 2 3 instead of the default 1 2 There is no real need to disable this control unless the reason is to save power The LED driving is isolated via buffers so P2 26 and P2 27 are not loaded because of this 3 3 Board Options The schematic for the LPC1788 OEM Board show many options The design has been prepared for customized versions for different needs The board exists for example in both 16 bit and 32 bit databus width versions The SWD JTAG and trace connectors are not soldered by default but can be for custom orders It is also possible to mount a uSD memory card connector instead of the NAND flash controlled by CS1 3 4 Configuration E2PROM The LPC1788 OEM Board contains a configuration e2prom that can be accessed via 12C The memory is write protected so that the information is not deleted by accident The memory is empty when delivered but it can be used to store information about the design revision board configuration and Ethernet MAC address
40. ard is in the region of 450 525mA This is very close to what a normal USB A port can supply If the boards are powered from a USB A port for example a PC or laptop and there are problems like spontaneous resets or other strange things it is likely that an external power supply is needed When using the 7 inch LCD Board and external power supply is always needed 9 6 3 LCD flickering When using the LCD expansion interface R163 must be removed on the OEM Base Board If not the LCD can start flickering and the blue component of the pixel color can disappear for short time periods 7 the flickering If the picture is mainly blue it will look like a black row on the display If other colors are dominating on the picture shown it can also look like yellow lines white minus block color component result in a yellow color The reason for this problem is that the 2C interface of the MIC2555 USB OTG transceiver is connected to the two MSB signals of the blue color component Even though the pixel data is very much out of spec for the I2C interface the MIC2555 reacts on some sequences and start driving the MSB signal low which is the flickering that is seen The solution is to remove resistor R163 The LCD interface and the USB OTG transceiver cannot be used at the same time on the OEM Base Board Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide C Ol v ol CLO ww o ol CIM 4 3 5
41. ase blocks used by Hex File Step 3 Hex File Hes File C nepdemao hex adified onsdag maj 4 2011 10 12 25 Step 4 Options Verify after programming E Fill unused Flash Gen block checksums F Execute Download free 8057 and 24 code examples using F2L CAM Flash ete WWI esacademy com tag progs Figure 31 Flash Magic Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 5 9 Handling SO DIMM Boards See picture below for instructions about how to mount remove the LPC1788 OEM Board To install the OEM Board align it to the socket 1 Push the board gently and with even force between the board edges fully into the socket 2 Then push the board down in a rotating move 3 until it snaps into place 4 The OEM Board shall lie flat and parallel to the base board To remove the OEM Board spread the two arms of the SO DIMM socket apart slightly The board will pop up 5 Gently rise the board in a rotating move 6 and then extract the board from the socket 7 Apply even force between board edges when removing so that the board is removed parallel to the locking arms Jc ON HOW TO MATE UNMATE AND MATING ae d RISE UP DUM ss UM MODULE HEICHT 412 4 0 LEVER EJECT Figure 32 Instructions how to Mount Remove the LPC1788 OEM Board Do not forget to follow standard ESD precaution routines when mounting remov
42. ate the trimming potentiometer on the board The table list which pin the adjustable voltage is connected to E EET enr a m icc EIE o mr r Pam Figure 10 Analog Input GPIO39 AIN2 P0 25 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 42 SP8 Digital IO There is a push button SW6 that is connected to a signal that enable the ISP mode after reset on the OEM Board For the LPC1788 this is pin P2 10 If this pin is sampled low after reset the ISP mode for the LPC1788 is entered LED30 is positioned above SW6 and will light when SW6 is pressed It is also possible to control LED30 as an output from the OEM Board without damaging the output driver when SW6 is pressed R110 limits the current There is also a 5 key joystick that directly connects to five general purpose input output pins See picture below for locating SW6 and SWT yp er T ego po go pe gj po goi por Gg ETE TETETEETETI ES SIISISIS IIIS ESI L Em RLE AA DODORERDRDR ID aera H00 O o0 LI 3 al m IJ a LHO mim mim mu Figure 11 Digital IO GPIO 10 P2 10 GPIO 73 P2 22 GPIO_74 P2 23 GPIO 75 P2 25 GPIO 76 P2 26 GPIO 77 P2 27 4 13 SP8 Serial Expansion Connector The Serial Expansion Connector is a standardized serial interface connector that is included on many boards from Embedded Artists including the OEM Base Board The purpose is to provide a simple expansi
43. d to the display All displays typically require the DOTCLK signal but there are variations on the control signals o Some displays require all three control signals HSYNC VSYNC DEN o Some displays require only HSYNC and VSYNC o Some displays require only DEN control signals o Some displays require that HSYNC is delayed compared to VSYNC i e VSYNC must have a falling edge before HSYNC assuming that HSYNC VSYNC are active negative If this is needed HSYNC can be delayed one DOTCLK cycle with two D type flip flops In most cases the LPC1788 can generate the appropriate DOTCLK frequency The higher the frequency needed the fewer available frequencies can be selected when dividing the core clock If a specific frequency is needed the LCDCLKIN signal can be used It is an input to the LPC1788 o Most displays can accept a quite wide range of frequencies on the DOTCLK signal o Embedded Artists has successfully used LCDCLKIN signals up to 36MHz Above this it does not work It is typically related to the core clock frequency If not used leave this signal unconnected i e LCDCLK is generated by the LPC1788 some displays has a serial interface typically SPI like for initialization of the controller chip inside the display This is relatively common for smaller QVGA sized displays but larger resolution above QVGA 320x240 displays typically do not require this initialization o The LCD Expansion connector has an SPI inte
44. de Read Protection function specifically CRP3 see datasheet for details that if enabled will make the LPC1788 impossible to reprogram unless the user program has implemented such functionality Note that Embedded Artists does not replace LPC1788 OEM boards where the LPC1788 has CRP3 enabled It s the user s responsibility to not invoke this mode by accident 25 CEAssessment The LPC1788 Developers Kit consisting of the LPC1788 OEM Board and OEM Base Board is CE marked See separate CE Declaration of Conformity document The LPC17688 Developers Kit 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 LPC1788 Developers Kit Standard interfaces like Ethernet USB serial have been in use General expansion connectors where internal signals are made available for example processor pins have been left unconnected Connecting other devices to the product via the general expansion connectors may alter EMC emission It is the user s responsibility to make sure EMC emission limits are not exceeded when connecting other devices to the general expansion connectors of the LPC1788 Developers Kit Due to the nature of the LPC1788 Developers Kit an evaluation board not for integration into an end product fast transient immunity tests and conducted radio frequency immunity tests have not been exec
45. ed If USB Host is used with high external current consumption a 5VDC 2 2 5 Amp power supply 10 12 5W is needed A 2 1mm standard power plug is used to interface the board Center pin is positive See Figure 26 below for locating the USB connector and or the 2 1mm power connector It is possible to have both the USB cable and external powering connected to the board at the same time Your PC Laptop Optional 8 alt 1 4l Z N KA Power Pa Supply OO e i al I USB cable i o ooee occceneeneoeoeeoeooo o one d e aan A t 00 U J Pi Ne gt noo a 4 rd e o N boN Pd E Seitan v pud mL snyeew U ud m E a 3 b a Tl y i enin AK nidis uh 7 S ru d aa XN A 2 R d 7 Q v JR CU UE 7 TE e N gt Tew ea ap EHE A m vit Figure 26 Powering of OEM Base Board 5 2 Demo Application As of March 2012 the LPC1788 Developer s Kit comes pre loaded with a demo application Since there is a transition period and stock at distributors there is no guarantee that the demo application is pre loaded after this date If not just follow the guidelines for how to download a program to the LPC1788 see section 5 4 The source code and pre compiled hex file is available on the support site The demo application demonstrates some features of the LPC 1788 Developer s Kit Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide e The accelerometer and
46. eloper s Kit User s Guide LPC1000 2000 3000 4000 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 6 2 OEM Education QuickStart Boards and Kits Visit Embedded Artists home page www EmbeddedArtists com for information about other OEM Education QuickStart boards kits or contact your local distributor Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 3 LPC1788 OEM Board Design Please read the LPC1788 OEM Board datasheet and associated schematic for information about the board Some additional information about the LPC1788 OEM Board is presented below 3 1 Memory Layout The external memory controller on the LPC1788 defines eight memory regions See table below for details about usage Control Address range Memories on LPC1788 External memory bus signal OEM Board comment Static memory 0 0x8000 0000 Available for external Ox83FF FFFF use OEM Base Board can connect a parallel NOR flash to this chip select Static memory 1 CS1 0x9000 0000 NAND FLASH 1 GBit Not available for Ox93FF FFFF 128 MByte in size external use It is however possible to disable NAND flash chip by removing R90 on LPC1788 OEM Board S3 Static memory 2 0x9800 0000 Available for external Ox9BFF FFFF use
47. er contains information about the peripherals and general design of the OEM Base Board and how to set the different jumpers on the board The schematic can be downloaded in pdf format from the support page and is recommended to have printed out while reading this chapter Section naming begins with SPx which is short for Schematic Page x The picture below gives an overview of the OEM Base Board design USB Interfaces Audio Interfaces Ethernet Interface o o C00 L 8 mini ZI MEM JJ D MI m m Or mmm oo T ba o L 2 oot te 7 m mm mm Oligo pagg a Lo PRBBDAA SG Eje BG 9 10 11 12 ES Boios IEEE eu Banon po Bid n Bem Be EG Ge ao cul lg ZH BESEBEE Y EE oo umm mo 7 Lc cO E BE ICI C EE a aa m j ER Lu th Sn 2 1 E foto 2 4 10 9 E Di s E QUUD US m J Q E ETE 3 Selle 5 ER m C Co JEJE oo 1 Q 1 ier 4 Mm O LO Bieb EX DUUDUROOOUE gy P oo 3 C IMEE i m B jo o m o i T E ge Bog 8 Ss mum s ke B B bug BEBE z oo 2 SSE E B EB DoS 40 Er a El ae n Er BE Ro X E OEM Board E e mI Connector Di E ial Serial ES ES mi _ E E mi Interfaces et 1 o gt d X BgooOoun Sonn B BUM 4 Boo c EB 4 mp EDD BB SO ii B End 3 ts ES E LII ES 5 ho oo 5 ol0OOOOD BUB Q
48. fered version of CS0 in case the pin shall be an input and CSO no used P1 16 carries I2S MCLK signals for I2S audio applications This signal can be used by the OEM Base board P4 28 carries BLS2 which is a critical signal on 32 bit boards On LPC1788 boards this unbuffered signal is not available off board Only the buffers signal is available P4 29 carries BLS3 which is a critical signal on 32 bit boards On LPC1788 boards this unbuffered signal is not available off board Only the buffers signal is available 132 P2 14 via buffer CS2 P2 29 via buffer DQM1 Expansion with dynamic memory bus not supported DQM1 signal replaced by Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide buffered CS2 for static memory bus expansion P4 30 via buffer CSO P2 28 via buffer DQMO Expansion with dynamic memory bus not supported DQM1 signal replaced by buffered CSO for static memory bus expansion P4 29 via buffer P2 16 via buffer CAS Expansion with dynamic memory bus not BLS3 supported CAS signal replaced by buffered BLS3 for static memory bus expansion when 32 bit bus used P4 28 via buffer P2 17 via buffer RAS Expansion with dynamic memory bus not BLS2 supported RAS signal replaced by buffered BLS2 for static memory bus expansion when 32 bit bus used P2 15 via buffer CS3 DBUS_EN There is no need to control the databus buffers on the LPC1788 OEM board
49. for an IrDA interface but the IrDA transceiver TFBS4652 is not mounted To enable the IrDA interface mount U18 TFBS4652 and adjust SJ2 and SJ3 connect 2 3 pads See picture below for locating relevant components The table below lists signal connections o s Toa IrDA Transceiver pa mu BES obe n ET oo m a DIL y OW OW Li goo ama lo Apo Bm o p FE cus Ep 1 INE E ri Lili r1 C I B Dij DH EH EH le l I A sacs E B nici ol 5 AURI m pm Big B io o n 0 m ac Lr red LI poo m 14 mE ociirra Lu oo r3 mum Boa E Be zE m TR 00 7 a 2 o goe E c oo 8 Ca L 1 c oO fsi abo H ad 3 Ua HOOD OOF B B Li Figure 18 IrDA Interface GPIO69 P2 14 note also used as CS2 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 00 SP11 USB Channel 1 The board contains two USB interfaces This section covers the first 1 that offers a USB Host or USB OTG interface Only one of these interfaces can be used at a time i e both cannot be used simultaneously The software on the LPC1788 OEM Board is also different between the two interfaces There is an external USB OTG transceiver U31 This transceiver is used for OTG specific signaling but also for controlling the 1 5Kohm pull up and 15Kohm pull down resistor control that is needed for USB Host Device If just USB Device is needed it is pos
50. ing the OEM Board Most signals exposed on the 200 edge contact fingers on the SO DIMM board are unprotected Maintain the same electrical potential of the OEM Board to be mounted and the base board Do not touch the OEM Board edge connectors Handle the OEM Board only by the three other edges Also do not touch the components on the board 5 6 Things to Note This section lists things to note when using the LPC1788 OEM Board and the OEM Base Board 9 6 1 Humming in Speaker In some situations there can be a humming sound from the on board speaker This is because of high frequency noise on signal GPIO40 AOUT The layout in the base board has not been design for lowest possible noise If the sound is disturbing just remove both jumpers in JP29 see section 4 25 for locating the jumpers Alternatively add a 100nF ceramic capacitor in parallel to R239 See Figure 33 below where to locate R239 The capacitor will create a low pass filter removing the noise in the audible region Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide L0 CT ii l Veg LI IL OOIc pil 000m IO Cll OO rr 760 p E Eg m 5 m OC o E JE EIE p b m LT LT n E Cun ciluEd in parallel A T Oo A cim o2 OE Hj um LI Li Figure 33 Speaker Amplifier U28 5 6 2 Current Consumption and Limits of USB Ports The current consumption of LPC1788 OEM Board OEM Base Board and the 4 3 inch LCD Bo
51. l connections Note that for a 32 bit databus LPC1788 OEM Board the UART signals are not available Rx Tx and modem signals The upper half of the databus occupies the signals used in this interface Therefore J18 has been added to allow for custom connection of the signals needed It is also possible to connect just the RxD TxD UART signals to the UART multiplexor In this case it will not be a full modem RS232 interface See the schematic for details The interface component used SP3243E has built in ESD protection RS232 Modem Connection JP11 RS232 DSUB 9 Connector RS232 Modem Connection b E Upper JP12 E Lower JP13 Left pos 1 2 Right pos 2 3 us 1 2 459 Goo oo race carp Er Figure 15 RS232 Interface GPIO24 TXD GPIO83 RTS BD30 GPIO92 DTR BD 1 GPIO94 DCD BD19 GPIO93 DSR BD20 GPIO95 CTS BD18 GPIO91 RI BD22 GPIO97 TXD BD16 GPIO96 RXD BD17 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 17 SP9 RS422 485 Interface There is a RS422 485 interface on the board RS422 has individual transmit and receive pairs while RS485 share the same signal pair and is hence half duplex By inserting both jumpers in JP9 the two signal pairs are connected and a RS485 interface is created By removing the jumpers in JP9 a RS422 interface is created Via JP10 it is also possible to add termination resistors if needed Direction is controlled via signal GP
52. lly not on laptops The USB port also offers the possibility to power the board It is UART O0 that is connected to the USB channel This UART is commonly used as the console channel for applications Printf output is for example typically directed to this UART channel The UART to USB bridge is based on the chip FT232RL from FTDI A driver is typically needed to be installed on the PC side The driver creates a virtual COM port on the PC that represents the UART channel Any program on the PC can connect to this COM port for communication with the LPC1788 UART channel There are two LEDs Transmit LED38 and Receive LED37 that signal communication activity It is possible to automatically enable ISP mode for program download via UART By inserting two jumpers in JP20 the RTS signal can control signal P2 10 and DTR can control reset By pulling P2 10 low during a reset cycle ISP mode is entered Note that some terminal programs controls the DTR RTS signals so that the board is always in reset and or always enter ISP mode It this is the case just remove both JP20 jumpers See picture below for locating relevant components The table below lists signal connections m m 4 10 m m m Inga ora ipe al E e E H ET Oo Ff nl Br BI Oo oO og fe Ole goa alo pllm Li Transmit LED LED38 ELA umy EXPIRES Figure 21 UART to USB Bridge Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit
53. memory mapped register the row of LEDs LED16 to LED1 are controlled by tilting the board e Buttons and PCA9532 port expander there is a running light pattern on the 8 LEDs controlled by the I C port expander By pressing the push buttons also on the 12C port expander the pattern can be changed e Joystick and GPIO the 5 key joystick can also control the running lights pattern UP key increases the speed CENTER key returns it to normal and DOWN key decreases the speed LEFT key changes to the previous pattern for the running lights and RIGHT key changes to the next pattern e Speaker and DAC the melody played at startup demonstrates the use of DAC and DMA to output a sinus wave at different frequencies e UART and USB to UART bridge a message is printed on the UART It will look like this ACAkCkC Ck ck ck ck k ck k ck k k k k k k k k k k k k k ck k ck k ck k k kkkkkkk k k amp k amp k amp k k amp k amp k amp k amp kkk kx Demo Application for the LPC1788 OEM Board C Embedded Artists AB 2001 2012 Thank you for buying Embedded Artists LPC1788 Developer s Kit and congratulations on your choice of microcontroller Xo oc ox FF FF F Xo X o oto oc FF FF F Xo X KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK Version 1 0 build Mar 13 2012 e LCD controller the program will detect if a display one of Embedded Artists LCD boards is connected on the LCD Expansion Connector and display an image on i
54. nal USB device connected to this connector J20 channel B of U20 must be enabled VBUS2 is enabled by GPIO26 active low Over current status back is provided via GPIO55 LED35 lights green when 5V is available on J22 The VBUS2 signal is also feed back to GPIO54 JP31 has no effect LED33 can signal that an external USB device has been connected 4 21 2 USB Channel 2 as USB Device When USB channel 2 is used as USB Device JP17 JP18 JP19 shall all be set in position 1 2 Also a 1 5Kohm pull up resistor is needed on the USB DP data signal GPIO28 controls this Alternatively 9J4 pin 2 3 can be connected to always enable this pull up resistor LED32 lights when the pull up resistor is enabled J21 is the connector to use when USB Device is used This is a USB B connector The VBUS signal is also feed back to GPIO54 LED35 is has no meaning JP31 has no effect 4 21 3 USB Channel 2 as USB OTG The LPC1788 does not support USB OTG directly If this is needed USB channel 1 must be used This interface is provided for compatibility with other OEM boards The mini AB connector can however be used instead of J22 USB B connector but the interface still only supports USB Device Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 22 SP13 UART to USB Bridge There is a UART to USB bridge on the board This is to simplify connection to a PC because serial ports are not so common any more especia
55. nloaded from there 9 4 1 ISP over UART Program Download There are two jumpers on the OEM Base Board related to the USB to UART serial channel control signals and automatic ISP functionality See Figure 28 for details about where the jumpers are located Normally the two jumpers in JP20 shall not be inserted i e open If inserted there is a risk that the terminal program on the PC laptop resets the board and or enable ISP mode by accident Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide L o HH o hH o Gillon J 3 O POS O E29 OS Bg P of T fio aof mc JE Cs EHE s R Automatic ISP CE U Lj JP20 rm Ca USB mini B Connector Default not inserted Shall however be inserted when O downloading application code via ISP o 4l O ERE J c CNC r1 p 134 Gig T O 1 J Transmit LED from board to PC _ LED38 m s O98 Receive LED to board from PC LED37 H a E O E H Figure 28 UART to USB Bridge When downloading code via ISP mode the two jumpers in JP20 shall however be inserted This way the application on the PC for downloaded the application code can automatically enable ISP mode It is also possible to enable ISP mode without the two jumpers on JP20 inserted Keep key P2 10 pressed while pushing and releasing the reset push button This way signal P2 10 is sampled low after reset and ISP mode
56. nnector must added See picture below for where to find the relevant components on the board NL on Ps j nl Qum 1 2m a B O damo s 4 Ic Eo C 1 fi Mi E Isolation Resistors 20 Bui so 1 B co C a m BI mom aig cc co xmi PO iq R51 52 53 56 57 D aa 2g Ba m B m SEa L 1 L 1 CJ C rm Hr im i Lir imi EEEEEISEE ESSI ri n 4 i HHE isis PoE Connector J12 pin 1 leftmost i S TI Umi N lid 4 D BEE s Figure 6 Debug Interfaces TE CHO T ll PoE modules that can be used for testing can for example be found at http www silvertel com poe products htm Select a version delivering 5V with enough current capability for the specific application in mind For example using USB Host with power hungry external devices will require more current In most situations a 9 10W module will be sufficient Besides the PoE module a RJ45 capable of handling PoE is also needed Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 48 SP6 SD MMC Memory Card Interface The board has a SD MMC memory card interface J13 Supply voltage to the external memory card is controlled via Q1 The Card Detection CD and Write Protect WP signals are connected to the I2C port expander on schematic page 7 There is also visual indication of supply voltage and the CD and WP signals via LEDs see picture bel
57. ntrol AST and ISP pin Keep ATS asserted while COM Port open T1 400 ms T2400 ms Assert DTA and ATS while COM Port open Execute four Training or Consulting Partner Embedded Systems Academy Www esacademuy Com po Figure 30 Flash Magic Hardware Config Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide After this Flash Magic is ready to be used Start by selecting the correct device LPC1788 in this case Then select the correct COM port Note that the OEM board contains a UART to USB bridge UART 0 of the LPC1788 is connected to this See section 5 2 how to install the driver for this bridge chip When the OEM board is connected to the PC a COM port will be created It is this COM port that shall be selected Baud rate shall be set to 57600 Interface to None ISP and Oscillator to 12 Sometimes the baud rate must be lowered to 38400 to get it working If there is problem to communicate with the board test to lower the baud rate first After this select the hex binary file to be downloaded Finally press the Start button to start downloading the application Flash Magic NON PRODUCTION USE ONLY File ISP Options Tools Min Eee block D Os000000 D DDDFFF E COM Port Satan E Baud Hate 57600 g Interface None ISF rase block 5 UsOOSOCICTRDCSFFF e Erase all Flash Code Ad Prot Er
58. on connector for smaller expansion modules Such modules are typically sensors of different kinds and communication modules but can also be smaller displays The connector contains 14 pins that support SPI UART and 12C communication Four additional pins exist for specific functionality like module reset interrupt pins analog signals and pwm signals Power 3 3V is also provided Maximum current consumption of the external module is 250mA All signals are protected with 470 ohm series resistors to minimize current in case of shorts to ground 3 3V or similar Usage of the different signals is specific for each module connected All signals can be configured as either main function or alternatively as a general purpose input output signal GPIO The picture below show where the connector can be found and the table lists which pins are connected The application program has the responsibility to program the individual pins to correct state function Note that the UART channel is not directly connected to a UART channel on the LPC 1788 It is multiplexed with other UART channels see section 4 15 for details Also note that the Serial Expansion Connector and the RF module see section 4 14 share the same UART channel Once the RF module is soldered the Serial Expansion Connector cannot be used for UART communication Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide f 4 y g EE olojojolojo LOOKS 4
59. on must be paid to ESD electrostatic discharge precaution A Make it a habit always to first touch the metal surface of one of the USB or Ethernet connectors for a few seconds with both hands before touching A any other parts of the boards That way you will have the same potential as the board and therefore minimize the risk for ESD Never touch directly on the LPC1788 OEM Board and in general as little as possible on the OEM Base Board The push buttons on the OEM Base Board have grounded shields to minimize the effect of ESD Note that Embedded Artists does not replace boards that have been damaged by ESD Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 2 3 General Handling Care Handle the LPC1788 OEM Board and OEM Base Board with care The boards are not mounted in a protective case box and are not designed for rough physical handling Connectors can wear out after excessive use The OEM Base Board is designed for prototyping use and not for integration into an end product For boards with LCD do not exercise excessive pressure on the LCD glass area That will damage the display Also do not apply pressure on the flex cables connecting the LCD touch screen These are relatively sensitive and can be damaged if too much pressure is applied to them Note that Embedded Artists does not replace boards where the LCD has been improperly handled 2 4 Code Read Protection The LPC1788 has a Co
60. or VBUS sensing For USB Host operation insert jumpers in position 2 3 in JP17 JP18 JP19 USB Host power is controlled via distribution switch U20 found in schematic page 11 Signal GPIO26 is active low and enables 5V on VBUS2 LED35 light whenever 5V is present on VBUS2 GPIO55 is connected to status feedback from the distribution switch GPIO54 is used for VBUS sensing 15Kohm pull down resistors are always active See picture below for locating relevant components The table below lists signal connections Mini B USB Connector USB A Connector J32 USB B Connector Host Device Select JP19 JP18 Left USB Device Right USB Host 47 3 12 2 Li z a l n SoBe IE 1 A oo n 20 mE a let sie ats Jo i 9 10 11 12 oO i 19 B2 LED zum ma LOO eo Gg J acy Be Up a Jc e DE datos BIS Bi LED33 l mje jaama 2 E BEBE RN C E 1 W ML SB2 Connect LED 1 5 irj N Jj s D E Host Device Select JP17 Upper USB Device Lower USB Host Dopgoo Denon Baa yan AUD UULU PEERS 5G TNI j WINI ud Figure 20 USB Channel 2 Sina quom 0 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 21 1 USB Channel 2 as USB Host When USB channel 2 is used as USB Host JP17 JP18 JP19 shall all be set in position 2 3 J22 is the connector to use when USB Host is used In order to provide 5V to the exter
61. ow where to find the LEDs on the board Note that the Write Protect LED is actually inverted It is on when the memory card is not write protected and off when it is write protected d Cot DUO 0 ra 0 ma a1 Tm mm gom OO F LL Di I iib HID ifi ml e inl E co co EA co co co as A b OOR OO LCs dt un 1 id mann o is faim 7 ag T Jig EN Oo Write Protect LED LED19 im B3 JABE mb Im 4 IO Oe i nici SERF E aoa BICOU p T 9D EP or 0D Ma 9 o o gop pog Ton io 4 Figure 7 SD MMC Memory Card Interface Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 9 SP6 VBAT ALARM Handling The board can power the VBAT input supply to the OEM board from two different sources e The 3 3V power supply via D1 when board is normally powered e A3V Lithium CR1025 size coin battery via D2 Note that battery is not included oee the LPC1788 datasheet for details about VBAT voltage range The ALARM signal control LED21 Note that LED21 will consume a lot of current from the battery and or super capacitor Restrict on high time to conserve energy penu 42 T Tg TP T gre s xd a D nn we TARE mge 3pm m Go g s 18 SERBERE mio i at a Tat E zu Ceo ac 00 mms ques fol a nes ae BB ee d SHED O00 a m nihi a HIR IE E 0 gt EL H DLE lial 10 l LI dL E Li Lr b Bu pg
62. p answers to Any software using the MIC2555 must check which I2C address the chip responds to Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 5 6 6 Rev PB1 of OEM Base Board Revision PB1 of the OEM Base board is 6 mm higher than previous revisions of the board In order to be compatible with the LCD boards a special stand off has been created see picture below Two of these are mounted on each OEM Base board Figure 35 Special Stand off for OEM Base Board rev PB1 When mounting the LCD Board on the OEM Base board the special stand offs accommodates for the 6 mm difference see picture below Figure 36 Mounting of LCD Board on OEM Base Board rev PB1 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 6 LCD Expansion Connector Embedded Artists supplies many different display options as add on boards These display boards are great to use for getting started quickly and test a specific display resolution in an application All LCD boards supplied from Embedded Artists use the LCD Expansion Connector There is also an option to connect custom displays via the LCD Expansion Connector J26 The OEM Base Board contains a buffered LCD expansion interface via a 50 pos IDC connector J26 The expansion interface also includes UART see UART multiplexing I2C and SPI interfaces These additional interfaces are for identifying external displays via configuration I
63. r LPC1788 OEM Board GPIO57 NC Can be connected to I2S audio codec BCKI I2STX DATA not for LPC1788 OEM Board GPIO58 Can be connected to 2S audio codec BCKI I2STX WS not Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide for LPC1788 OEM Board GPIO59 NC Can be connected to I2S audio codec BCKI I2SRX BCK not for LPC1788 OEM Board GPIO60 P5 4 Can be connected to 12S audio codec BCKI I2SRX WS not for LPC1788 OEM Board GPIO61 P5 3 Can be connected to 12S audio codec BCKI I2SRX DATA not for LPC1788 OEM Board No special usage on OEM Base Board No special usage on OEM Base Board No special usage on OEM Base Board No special usage on OEM Base Board GPIO66 BCS1 No special usage on OEM Base Board GPIO67 P4 30 No special usage on OEM Base Board GPIO68 P1 16 Can be connected to 12S audio codec SYSCLK GPIO69 Direct P2 14 CS2 chip select for 16 bit register on external memory bus Can be used as enable signal for IrDA transceiver active low GPIO70 Direct P2 15 Connects to LCD expansion connector interrupt signal from BCS3 Buffered Bcea Louch screen controller DBUS_EN Connects to serial expansion connector GPIO76 P2 26 Connects to joystick switch GPIO77 P2 27 Connects to joystick switch GPIO78 P2 30 No special usage on OEM Base Board Note that P2 30 is not available on 32 bit databus LPC1788 OEM Boards only on 16 bit databus versions GPIO79 P2
64. rd J7 is typically used If an older and big footprint JTAG debug pod is used J8 can alternatively be used If trace is also used J10 shall be used Note that this requires an advanced JTAG probe JP3 and JP4 are not used for debug purposes when working with the LPC1788 OEM Board Debug Connectors J8 ETM Control Jumpers JP3 Debug Control Jumpers JP4 3 2 LIBDI T T OOUE mo ERES EIE Ei Trace amp Debug iL ni Connectors EGER 20 19 nl LOI J10 ACT BH OOo Jr L LJ En i Trace amp Debug Connectors CO E i CC o E J9 Ep EE mala E E E CJ C IL EL I ZE Debug D 1 E mi EE E 8 Connectors LLL ina E DE CL gp zu Cis uin HS n OLSE J7 10 E E qm bio s IU L 1 Co ao ize mtu 3 BS Ll n ARBI L L CAO acm EX Tp m ee a gt 1 LI sau 2 iq O 23 Reset LED 4 a Soo LED17 Figure 5 Debug Interfaces Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 7 SP6 Ethernet Interface The board has an Ethernet interface J11 which is a RJ45 connector with integrated magnetics There is also provision on the board for connecting a PoE interface All signals can be accessed via expansion pads J12 Five 0 ohm resistors have to be removed in that case for isolating J11 from the new connector this is because J11 is not capable of handling a PoE interface so a new RJ45 co
65. reset Note that the UART channel is not directly connected to a UART channel on the LPC 17898 It is multiplexed with other UART channels see section 4 15 for details Also note that the Serial Expansion Connector see section 4 13 and the RF module share the same UART channel Once the RF module is soldered the Serial Expansion Connector cannot be used for UART communication See picture below for locating the relevant components on the board See also the table for signal connection J Ol In ANIM S t gu a 000 5 4 EB Vio AN 5 wmon uu 3 n pg me Oo oL l I l iden ds 3 M OOOO OOS eS ESI r3 n m a TITTEN SML ME RF Module on tc backside CIEIEEIEEIE ES SOO OOO OOOO OO ABR PST ESTE SABIE ISIS GBI BB 3 ITI M DOO DE SOIC Oooo lo ooo S c L eC E la Esca S mi m i n neo o oo B im Eine Figure 13 RF Module SIE UART RXD P0 11 via multiplexor SIE UART TXD P0 10 via multiplexor Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 15 SP9 UART Multiplexing UART channels from four sources are multiplexed into one UART channel which is connected to the OEM Board e Serial Expansion Connector RF module Note that if the RF module is soldered to the board then UART channel on the Serial Expansion Connector is occupied e LCD Expansion connector e RS422 485 Interface e R
66. rface that supports both 3 wire transfer and 4 wire transfers A 3 wire SPI interface typically means that 9 data bits are transferred in every time 8 data bits and one bit indicating if itis a command or data byte SPI CLK SPI MOSI and SPI SSEL are needed i e 3 signals For a 4 wire interface the transfers are 8 bits and a separate signal the fourth wire is used to signal if it is a command or data transfer Signal SPI LCD DC is typically used for this Few displays allow for read back of internal control registers via SPI Only write transfers are typically supported LPC1788 Developer s Kit User s Guide Copyright 2013 Embedded Artists AB Many displays have strict requirements of power sequencing during power up and down Embedded Artists display boards has an I2C GPIO expansion chip PCA9532 and voltage control of 3 3V and 5V to allow power sequencing o Embedded Artists recommend that the power sequences outlined in the display datasheets are followed for best long term performance of the display For simplicity Embedded Artists has added a configuration i2c e2prom in the display add on boards that contains information about the connected display This simplified development of portable software o A standard 24LC64 chip is used with i2c address 0x56 1 0 1 0 1 1 0 rw AO on the chip is connected to GND and A1 A2 to VCC to get address 0x56 some displays also require a reset signal after VCC VDD has stabilized In
67. rning curve and program development The board has been designed for OEM applications with volume discount available e NXP s ARM Cortex M3 LPC1788 microcontroller in BGA package with 512 KByte program FLASH and 96 KByte SRAM e External FLASH memories 128 MB NAND FLASH e External data memory 32 MB SDRAM normally 32 bit databus width 16 bit version exist as special order e 12 0000 MHz crystal for maximum execution speed and standard serial bit rates including CAN and USB requirements e 32 68kHz RTC crystal e 100 10M Ethernet PHY interface based on SMSC LAN8720 e 256 Kbit I2C E2PROM for storing non volatile parameters e Buffered 16 or 32 bit data bus for external expansion e 200 pos expansion connector SODIMM 200 format 0 6mm pitch All LPC1788 pins available except a few used for Ethernet PHY interface e 3 3V only powering e Onboard reset generation e Compact SODIMM format 68 x 55 mm Six layer PCB design for best EMC performance There is an accompanying OEM Base Board that can be used for initial prototyping work The features of the board are e Interfaces and Connectors 200 pos 0 6mm pitch SODIMM connector for OEM Board LCD expansion connector with control signals for touch screen interface Expansion connector with all OEM Board signals Ethernet connector RJ45 CAN interface amp connector provision for second CAN interface but not mounted MMC SD interface amp connector USB1
68. s Kit User s Guide I2C SCL P0 28 I2C SCLO connects to PCA9532 E2PROM LM74 3 axis Accelerometer audio codec serial expansion connector lcd expansion connector USB1 DP DM P0 29 P0 30 Connects to USB Host OTG interface USB2 DP DM P0 31 Connects to USB Host Device interface USBB DM Connects to MCIDATO on SD MMC connector Connects to MCIDAT1 on SD MMC connector GPIO41 P1 13 No special usage on OEM Base Board GPIO42 P1 18 Connects to LCD expansion connector backlight control Connects to USB1 up LED active low Connects to serial expansion connector GPIO43 P1 19 Connects to RS422 485 transmit receive control Can optionally be connected to USB1 VBUS power enable GPIO44 P1 20 LCD databit 10 GPIO45 P1 21 LCD databit 11 GPIO46 P1 22 LCD databit 12 Can optionally be connected to USB1 VBUS feedback GPIO47 P1 23 LCD databit 13 GPIO48 P1 24 LCD databit 14 GPIO49 P1 25 LCD databit 15 GPIO50 P1 26 LCD databit 20 GPIO51 P1 27 LCD databit 21 Also connected to USB OTG transceiver interrupt signal Can optionally be connected to USB1 VBUS power switch over current flag GPIO52 P1 28 LCD databit 22 can also be connected to USB OTG transceiver GPIO53 P1 29 LCD databit 23 can also be connected to USB OTG transceiver GPIO54 P1 30 Connects to USB2 VBUS signal GPIO55 P1 31 Connects to USB2 VBUS power switch over current flag NC GPIO56 Can be connected to 12S audio codec BCKI I2STX BCK not fo
69. s occurs By watching the dips it is possible to judge if there is a problem or not Verify that the reset LED flash when pressing the reset push button The LED should also light shortly after releasing the push button The extra LED on time is very short but still noticeable typically a 1 5 of a second i e 200mS Disconnect the powering and mount the OEM Board again in J1 Now measure the 5V and 3 3V voltages again see step 2 above If the 5V voltage is below acceptable range it is a sign of too weak power supply to the board If the reset LED starts dimming instead of being clearly on or off it is also a sign of too weak power supply to the board If the reset LED always light now when the OEM Board is mounted it is a sign of too weak power supply or a serious error on the OEM Board When doing this test be sure to not have any SWD JTAG interface connected or any external source driving the reset signal Verify that the reset LED flash when pressing the reset push button In section 4 3 it is described how to measure the current consumption of the OEM Board Measure the voltage over J2 while pressing the reset push button constantly This will give the passive current consumption of the OEM Board i e when the board is in reset Valid range is 100 350mV which corresponds to 20 70 mA If current consumption is outside of this range it is an indication that something can be wrong with the OEM board Note that the valid range
70. sible to insert a jumper in JP15 to statically attach a 1 5Kohm pull up resistor to the USB DP signal LED31 can be used to signal USB up state USB Host power is controlled via distribution switch U20 Pads 1 2 on SJ5 are by default connected to always enable 5V on VBUS channel 1 LED34 light whenever 5V is present on VBUS1 VBUS feedback via GPIO46 is by default disconnected as well as status feedback from the distribution switch via GPIO51 In case VBUS1 shall be actively controlled from the LPC1788 OEM Board R190 and R198 must be soldered and pad 2 3 on SJ5 must be connected Further GPIO43 46 51 must not be used for other tasks in the design It is possible to force USB Host detection when using the USB OTG interface by inserting a jumper on JP16 See picture below for locating relevant components The table below lists signal connections USB A Connector J20 USB mini AB Connector J19 a YO I i L mm Power SZER cum o T Lut as os Force USB Host Ini Y ea er OQ Thee d dace pije IN Glo a PET an deem j fas Bn i dde oO j cor LT A Up LED m ER oon a LED31 Bisest cul dd L y OH ao orce USB Connect E DBB a p canis Cn E i p tun Umom oopen man mmi s TI zn MIC2555 Expansion A IY Je JP30 c d B Je sor D E E ILI i Figure 19 USB Channel USB1 DP P0 29 USB1 DM P0 30 G
71. t like below Thank you for buying Embedded Artists LPC1788 Developer s Kit and congratulations on your choice of microcontroller L2 Embedded Artists Figure 27 Demo Application Image Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 5 3 Installing USB Driver The OEM Base Board contains an USB to UART bridge chip FT232R from FTDI that connects UART channel 0 on the LPC1788 to a virtual COM port on the PC laptop via USB This UART channel is typically used as the console channel for applications Printf output can for example be directed to this UART channel A USB driver must be installed on the PC laptop in order for the virtual COM port to be created See FTDI s installation guides for details how to install the driver for different operating systems http www ftdichip com Support Documents InstallGuides htm 5 4 Program Download This section describes some basic methods for downloading application code to the LPC1788 Note that this section does not describe how to create the application code write the program and compile it It is assumed that a binary file exist that represent the application program This file is often a so called hex file which is a file format that Intel created a long time ago It can also be a pure binary file also call bin file There are three basic methods for program download ISP over UART ISP is short for In System Programming The LP
72. t 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide when an external memory region was accessed With wrong control it was possible to mess up the internal databus On the LPC1788 OEM board the databus buffers are controlled automatically on the boards Whenever a static memory region is accessed the databus buffers are enabled e There are a few changes in pinning see table below Most of the changes are related to the new port P5 of the LPC1788 and the change in external memory bus expansion only allowing expansion of static memory regions In most cases the LPC1788 OEM board can replace a LPC2478 OEM board without any hardware problems Pin LPC1788 OEM Board LPC2478 OEM Board Reason for change C The new Ethernet PHY LAN8720 does not contain a power down input can be 13 N Ethernet power down input DBGEN 6 P5 4 A s 108 P5 3 09 w n 111 P1 16 N N 16 bit P4 28 32 bit NC 16 bit P4 29 32 bit NC done via software instead The LPC1788 does not have a DBGEN debug enable input The LPC1788 has a new port P5 The LPC1788 does not have the RTCK signal The LPC1788 has a new port P5 The LPC1788 has a new port P5 The LPC1788 has a new port P5 The LPC1788 has a new port P5 P1 16 normally not accessed via this pin see pin 115 instead CS1 can be used for external expansion in case the LPC1788 OEM board NAND flash not used Unbuf
73. t be active simultaneous See table in next section for information about pin usage Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide 4 27 Usage of CPU Pins Almost all pins of the LPC1788 are directly available on the expansion connectors Only in a few cases are pins used for dedicated functionality like Ethernet interface and chip select signals Such pins are not available on the expansion connector The table below lists all pins and their possible restrictions OEM Base LPC1788 Pin Usage Board signal OEM Board name signal name GPIOO P2 0 LCDPWR signal to LCD expansion connector Not for LPC 1788 OEM Board also connects to ETM pads if connector mounted LCDLE signal to LCD expansion connector Not for LPC1788 OEM Board also connects to ETM pads if connector mounted LCDDCLK signal to LCD expansion connector Connects to trace connector Not for LPC 1788 OEM Board also GPIO1 P2 1 GPIO2 P2 2 connects to ETM pads if connector mounted GPIO3 P2 3 LCDFP signal to LCD expansion connector Connects to trace connector Not for LPC1788 OEM Board also connects to ETM pads if connector mounted GPIO4 P2 4 LCDENAB signal to LCD expansion connector Connects to trace connector Not for LPC1788 OEM Board also connects to ETM pads if connector mounted GPIO5 P2 5 LCDLP signal to LCD expansion connector Connects to trace connector Not for LPC1788 OEM Board also connects to ETM pads
74. ts AB Disconnect the powering and removed the OEM Board i e remove it from the socket J1 All other connections to the OEM Base Board shall also be removed Connect a stable DC supply 5V positive center to J24 Minimum current capability shall be 1A for this test The noise level should be minimal less than 50mV Measure the 5V and 3 3V voltages with the help of the voltage measuring pads on the OEM Base Board Acceptable range for the 5V voltage is 4 5V to 5 5V Acceptable range for the 3 3V voltage is 3 2V to 3 4V If the reset LED is dimming instead of being clearly on or off it is also a sign that the supply voltages are not stable and outside of valid ranges If problem since the OEM board is disconnected and there is normally no big current consumption on passive OEM Base Board it is likely that some part of the OEM Base Board consumes a lot of current It might be possible to locate the faulty section component by checking component temperatures with the finger tip Be careful because faulty components can get very hot Verify that there are no voltage dips on the supply A typical indication of this is that the reset LED flash from time to time An oscilloscope can detect voltage dips measure the supply voltage in AC mode Set horizontal resolution to 50mV per square Set the trigger to normal mode and adjust the trigger to 50mV below the normal level That way the oscilloscope will trigger every time a voltage dip
75. ts are individually writeable Signals BBLSO BBLS1 controls the lower and upper 8 bits respectively Since the OEM Base Board is universal and supports many different OEM Boards the chip select signal is either signal BDQM1 BCSX or GPIO69 For the LPC1788 OEM Board the signal BDQM1 Copyright 2013 Embedded Artists AB LPC1788 Developer s Kit User s Guide BCSX is actually signal BCS2 This means that the NOR flash is accessible in memory region 0x9800 0000 Ox9BFF FFFF No jumper in JP2 is needed when working with the LPC1788 OEM Board SJ12 shall be in default position pad 1 2 shorted to let BCS2 control chip select of the 16 bit register SJ1 controls the output enable of the register By default it is grounded pad 1 2 is shorted and hence the register drives the LEDs and expansion connector J6 oo Parallel NOR FLASH EH 2 U3 O E UH E ICI n l E a uua E 5 Register CS Register OE control control SJ12 JP2 and JP1 left JP2 right JP1 z B T a Ole IOI i qweTERIERIERENTE SEE e el bet aa GEB BIBBB Ld f SE pontaoonto Oo BH DOOOODOOOODOGNO zl mi nim E youn VILLA 63 dr 54 64 OL O 1 m im ie Ei BB RRS 7 Bt AA IAG BIBIBIAIEI la x o DIMM CIOON0Q0 0000 BE d nm A Els E a re on LEDs m un M A P z 4 d 2 4 O 2 4 O 2 Figure 4 External Memory Bus Circuit 4 6 SP5 Debug Interfaces The multiple debug
76. uted Externally connected cables are assumed to be less than 3 meters The general expansion connectors where internal signals are made available do not have any other ESD protection than from the chip themselves Observe ESD precaution Note that the LPC1788 OEM board is classified as a component and is hence not CE marked separately It can perform different functions in different integrations and it does not have a direct function It is therefore not in the scope of the CE Directive An end product where an OEM Board is integration into is however very likely to need CE marking 2 6 Other Products from Embedded Artists Embedded Artists have a broad range of LPC1000 2000 3000 4000 based boards that are very 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 communication 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 Copyright 2013 Embedded Artists AB LPC1788 Dev
Download Pdf Manuals
Related Search
Related Contents
TAFCO WINDOWS NU2-180S-I Installation Guide CIVISME AS-TU ENCORE UN SENS ? ATENCION PDF Samsung YP-GB70ND User Manual HP SB360 Quick Start Manual Bedienungsanleitung - B+B Thermo DJ-DP10 Betriebsanleitung Copyright © All rights reserved.
Failed to retrieve file