Embedded Artists LPC4088 User Manual

Experiment base board
Hide thumbs Also See for LPC4088:
Table of Contents

Advertisement

Quick Links

- User's Guide
LPC4088 Experiment Base Board
Copyright 2014 © Embedded Artists AB
LPC4088 Experiment Base Board
User's Guide
Get Up-and-Running Quickly and
Start Developing Your Application On Day 1!
EA2-USG-0702 v1.0 Rev A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LPC4088 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Embedded Artists LPC4088

  • Page 1 - User’s Guide LPC4088 Experiment Base Board Copyright 2014 © Embedded Artists AB LPC4088 Experiment Base Board User’s Guide Get Up-and-Running Quickly and Start Developing Your Application On Day 1! EA2-USG-0702 v1.0 Rev A...
  • Page 2 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.
  • Page 3: Table Of Contents

    Things to Note 3.9.1 Current Consumption and Limits of USB Ports 3.9.2 USB Mass-storage Does Not Work On Mac - LPC4088 Locks Up 3.9.3 USB Virtual Serial Channel Behavior 3.9.4 Cannot Download Binary To LPC4088 Via HDK Or Cortex Debug Connector 3.10...
  • Page 4 LPC4088 QuickStart Board Features Pin Usage, Key Components and Jumpers mbed-enabled HDK - Hardware Development Kit 7 mbed Getting Started Tour Connect the LPC4088 QuickStart Board to a PC Register Account on mbed.org Download Applications 7.3.1 Troubleshooting Experiment #1: Create Application and Compile 7.4.1...
  • Page 5 LPC4088 Experiment Base Board - User’s Guide Page 5 Using Test Application to Verify Correct Operation 9 Further Information Copyright 2014 © Embedded Artists AB...
  • Page 6: Document Revision History

    LPC4088 Experiment Base Board - User’s Guide Page 6 1 Document Revision History Revision Date Description 2014-09-29 First version. 2014-10-02 Corrected default jumpers. Copyright 2014 © Embedded Artists AB...
  • Page 7: Introduction

    2 Introduction Thank you for buying Embedded Artists’ LPC4088 Experiment Base Board. The board has been designed to operate together with the LPC4088 QuickStart board, which is based on NXP’s ARM Cortex-M4 LPC4088 microcontroller. This document is a User’s Guide that describes the LPC4088 Experiment Base Board hardware design.
  • Page 8: Esd Precaution

    QuickStart Board) is CE marked. See separate CE Declaration of Conformity document. The LPC4088 Experiment Bundle 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.
  • Page 9: Other Products From Embedded Artists

    LPC4088 Experiment Bundle. Due to the nature of the LPC4088 Experiment Bundle – an evaluation board not for integration into an end-product – fast transient immunity tests and conducted radio-frequency immunity tests have not been executed.
  • Page 10: Getting Started

    Please read this section first before you start using the board - it will be well spent time! LPC4088 Experiment Bundle The LPC4088 Experiment Base Board cannot function on its own. It is designed to be connected to the LPC4088 QuickStart Board and together they form the LPC4088 Experiment Bundle, see picture below.
  • Page 11 USB connectors. With the same hand, then touch the metal surface of the uSD connector on the LPC4088 Experiment Base Board for a while. Now both boards have the same potential and can be connected together without any electrostatic discharges.
  • Page 12: Powering

    LPC4088 Experiment Base Board - User’s Guide Page 12 Powering Powering is very flexible. Either the LPC4088 QuickStart Board powers the LPC4088 Experiment Base Board, or vice versa. The picture below illustrates the two principal powering options.  The simplest powering option is to power the LPC4088 Experiment Bundle via the HDK micro-B USB connector on the LPC4088 QuickStart Board.
  • Page 13: Program Development

    3.5.1 mbed Framework The mbed framework[12] might seem like to only natural choice since the LPC4088 QuickStart board is marketed as an mbed-enabled board. This is true and the mbed framework will be described in this sub-section, but there are other alternatives as well. The mbed framework has its strengths and weaknesses, just like any other solution.
  • Page 14: Lpcopen Framework

    LPC4088 User's Manual from NXP. Program Download This section describes some basic methods for downloading application code to the LPC4088. 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.
  • Page 15 See next alternative for more details. SWD/JTAG via External Debugger The LPC4088 QuickStart Board also offers direct access to the Serial Wire (SW) and trace debug interface of the LPC4088 MCU. Any external debug probe that supports the LPC4088 and the 20-pin SW interface, called the Cortex Debug+ETM Connector, can be connected to this interface.
  • Page 16: How To Debug

    ISP over UART ISP is short for In-System Programming. The LPC4088 contains a bootloader in ROM that is activated by pulling pin P2_10 low during reset. This is easily accomplished by pressing the user pushbutton during reset/power-up. UART0 pins P0.2 (U0_TXD) and P0.3 (U0_RXD) are then used to download the program .
  • Page 17: Things To Note

    The HDK is not compatible with how a Mac writes the binary file to the USB mass-storage device (that the HDK creates). If a Mac is used to download a binary file, the LPC4088 will be flashed with a partial binary that is in no way correct.
  • Page 18: Usb Virtual Serial Channel Behavior

    This note affects the LPC4088 QuickStart Board. If it is impossible to download a new binary to the LPC4088 via the HDK/external debugger, it is likely that the LPC4088 is in a mode where it is impossible for the HDK/debugger to take control over it.
  • Page 19 8. Copy the binary that you downloaded in step 1 to the CRP_DISABLD drive 9. Disconnect and then connect the USB cable to get the normal MBED drive It is not possible to update the HDK firmware on the LPC4088 QuickStart Board from a Mac computer. Copyright 2014 © Embedded Artists AB...
  • Page 20: Lpc4088 Experiment Board Design

    Figure 9 – LPC4088 Experiment Base Board Overview Modifications to LPC4088 Experiment Base Board The LPC4088 Experiment Base Board has been designed to be flexible. Most options can be controlled via jumpers but there are a few options that need soldering. Note that modifications to the board are done at own risk and void all warranties.
  • Page 21: Sp2: Pin Usage

    SPI cannot be used simultaneous. SP3: LPC4088 QuickStart Board Connectors The LPC4088 QuickStart Board has two 22-pos edge connectors that are pin lists facing down. J2 is a header (female) connector that allows the LPC4088 QuickStart Board to be mounted on the board.
  • Page 22: Sp3: Serial Expansion Connector

    Note that several of the pins connected are also used on other interfaces on the board. Consult page 2 of the schematic for an overview. Before connecting to the Serial Expansion Connector make sure there are no signal contentions between the used signals and the LPC4088 Experiment Base Board. Serial Expansion...
  • Page 23: Sp4: Usd Memory Card Interface

    P6 are connected to signals P4.28/P4.29. These signals can carry UART3. Note that these signals are only available when the FPC cable is connected between the LPC4088 QuickStart Board and the LPC4088 Experiment Base Board. P8 are connected to signals P0.0/P0.1 (P9 and P10 edge signals). These signals can carry UART0 or UART3, depending on set pin multiplexing on the LPC4088.
  • Page 24: Sp4: Can Interface

    LPC4088 Experiment Base Board - User’s Guide Page 24 Note that it is also possible to power the LPC4088 Experiment Bundle via the FTDI TTL-232R-3V3 cable. Note that only one FTDI cable should be connected at a time since the UART_USB_PWR net is shared between the connectors.
  • Page 25: Sp6: I2C Interface Selector

    The audio codec must be setup to be the I2S master, generating the WS and sample/bit clock signals to the LPC4088. The codec can generate the sample/bit clock from a local 12.288MHz crystal oscillator (default) or a clock signal via P2.27 from the LPC4088 (typically a 12.000MHz clock).
  • Page 26 Page 26 Audio Connectors Left-to-right: J15, J13, J16, J17 Line in, Mic in, Line out, Headphone out I2S-signals Figure 11 – LPC4088 Experiment Base Board, Audio Codec Code signals LPC4088 QSB pin LPC4088 pin Note I2C-SDA p19 or via FPC P0.27 or P1.30...
  • Page 27: Sp8: Power Supply

    A 3V 12mm Lithium CR1216/CR1220 size coin battery. Note that battery is not included. VBAT input must be above 2.8V for the RTC (on the LPC4088 QuickStart Board) to operate properly. It is possible to add super capacitors on the two different pads (C43/C54) on the PCB to experiment with these also.
  • Page 28: Sp9: Lcd Interface

    There is a resistive touch panel controller, AR1021, that can handle the low-level sampling and filtering of the touch panel samples, hence off-loading the LPC4088 from this task. The display's touch panel is by default connected to the AR1021 controller (SJ5-SJ8 in 1-2 position) but can also be connected to ADC/GPIO pins of the LPC4088.
  • Page 29: Display Expansion

    For performance reasons (on the LPC4088), 16-bit color depth 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. The LPC4088 also supports 24-bit systems but that would double to load on the external memory bus since each pixel is stored as 32-bits (instead of 16-bits).
  • Page 30: Tft Color Lcd

    The display has an SPI interface with two additional GPIOs (for reset and command/data control). The picture below illustrates how the display is connected. Figure 14 – LPC4088 Experiment Bundle and 1.8" LCD Expansion Note that J12 is not mounted by default on the board. Any standard 40-pos dual row, 100 mil pitch header (female) connector, for example PPPC202LFBN-RC from Sullins Connector Solutions.
  • Page 31: Character Lcd

    LPC4088 Experiment Base Board - User’s Guide Page 31 Figure 15 – LPC4088 Experiment Bundle and Arduino Shield Displays A display can also be an array of RGB-LEDs, like the NeoPixel shield from Adafruit (product id# 1430, http://www.adafruit.com/products/1430). 40 RGB-LEDs are controlled via one single control line. See picture below for an example of this display.
  • Page 32 LPC4088 Experiment Base Board - User’s Guide Page 32 Figure 17 – LPC4088 Experiment Base Board, Character LCD Note that not all character LCDs have the 16-pos single row interface. Also the contrast controlling voltage (VLCD) can require different external control between different displays. The 10Kohm trimming potentiometer between ground and VCC (+3.3V) is a common structure.
  • Page 33: Lpc4088 Quickstart Board

    Page 33 6 LPC4088 QuickStart Board The LPC4088 Experiment Base Board cannot function on its own. It is designed to be connected to the LPC4088 QuickStart Board and together they form the LPC4088 Experiment Bundle. This chapter present the LPC4088 QuickStart Board features in more detail.
  • Page 34: Pin Usage, Key Components And Jumpers

    Pin Usage, Key Components and Jumpers The picture below illustrates the pin usage of the LPC4088 QuickStart Board. Figure 18 – LPC4088 QuickStart Board, Pin Usage The picture below illustrates the where the key components, including the three jumpers, are located on the LPC4088 QuickStart Board.
  • Page 35: Mbed-Enabled

    Figure 19 – LPC4088 QuickStart Board, Pin Usage With the two USB jumpers it is possible to select if USB channel #2 (of the LPC4088) shall be connected to the on-board micro-B USB connector (under the RJ45 Ethernet connector) or to pin 35/36 on the edge connectors.
  • Page 36: Hdk - Hardware Development Kit

    The HDK functionality is implemented in a separate microcontroller (LPC11U35). It communicates with the PC over a USB interface and with the LPC4088 via the (Cortex) debug interface. The picture below illustrates the connections and also the physical place of the HDK microcontroller.
  • Page 37 LPC4088 Experiment Base Board - User’s Guide Page 37 The virtual serial port channel (pins P0.2/P0.3 on the LPC4088) is also available on pin P41/P42. If, for some reason, the HDK interface cannot be used during debugging it is possible to connect an FTDI- cable to this UART interface, see picture below.
  • Page 38: Mbed Getting Started Tour

    Three LEDs (blue, green, red) will flash and after a few seconds of activity, the PC will recognize the LPC4088 QuickStart Board HDK interface as a standard USB drive (see picture below). Please note that the files on this drive are read-only and cannot be modified or removed.
  • Page 39: Register Account On Mbed.org

    Otherwise, if you already have an account, log in with your normal username and password. An account gives you access to the on-line compiler. As a first step the LPC4088 QuickStart Board platform should be added to your account. Click on "Platforms" on the toolbar and then select the "EA LPC4088"...
  • Page 40: Download Applications

    The platform is now connected to your account. Figure 25 – Add LPC4088 QuickStart Board Platform It is possible to add more platforms to you account but for now it is best to have just the LPC4088 QuickStart Board platform connected.
  • Page 41: Troubleshooting

    The mbed Compiler (http://mbed.org/handbook/mbed-Compiler) is an online application used to create your own programs for the LPC4088 QuickStart Board. It translates program source code that you write in to a program binary that the LPC4088 microcontroller can execute. A longer introduction to the online compiler can be found here: http://mbed.org/handbook/mbed-Compiler-Getting-Started...
  • Page 42: Create A New Program

    LPC4088 Experiment Base Board - User’s Guide Page 42 If no platform has been selected the position (upper right corner in the compiler window) will display "No device selected". If this is the case or if some other platform is selected, just press on the position.
  • Page 43: Compile And Download The Program

    //Wait 200 ms Note that LED1 and LED2 are active low meaning that they will turn on when the respective LPC4088 pin is low. LED3 and LED4 have the opposite polarity They are active high and the LEDs will turn on when the LPC4088 pin is high.
  • Page 44: Experiment #2: Timer

    LPC4088 Experiment Base Board - User’s Guide Page 44 More information about the wait()-function can be found here: http://mbed.org/handbook/Wait There are also wait_ms() and wait_us() functions. 7.5 Experiment #2: Timer The programs in the previous step were controlled by delays. There are more sophisticated ways to control the LED flashing, for example by using the mbed ticker functionality.
  • Page 45: Experiment #3: Pushbutton

    The user pushbutton can short pin 23 (LPC4088 pin P2.10) to ground allowing the pin to be sampled low when the button is pressed. Note that the pull-up resistor on pin 23 must be enabled. Else the pin will not sample high when the pushbutton is not read.
  • Page 46: Experiment #4: Uart And Hdk

    Serial pc(USBTX, USBRX); //serial channel over HDK USB interface Ticker tickObject; DigitalOut myled3(LED3); DigitalOut myled4(LED4); DigitalIn myButton(p23); //p23 is pin P2.10 on the LPC4088 and has //the user pushbutton connected to it void flashHandler(void) { static int ledState = 0;...
  • Page 47 LPC4088 Experiment Base Board - User’s Guide Page 47 Note that the blue HDK LED flash every time characters are transferred over the USB virtual serial port. Copyright 2014 © Embedded Artists AB...
  • Page 48: Troubleshooting

    The second step is to make sure that it is possible to download an application (via the HDK) to the LPC4088. This step is not an explicit test of the LPC4088 Experiment Base Board but a prerequisite for the next step where the base board is tested.
  • Page 49 The LED will turn GREEN, press the button. The LED will turn BLUE, press the button. Press the User-button on the LPC4088 QuickStart Board if the indicated colors on the LED is on, else not. Copyright 2014 © Embedded Artists AB...
  • Page 50 LPC4088 Experiment Base Board - User’s Guide Page 50 9. Test of audio codec. a. Connect a microphone to the microphone input. Connect headphones to the headphone output. Connect a audio source to the line input (for example the headphone output from an MP3 player or smart phone).
  • Page 51 LPC4088 Experiment Base Board - User’s Guide Page 51 12. Test of shift register and LEDs. There will be a running light on the 8 LEDs. The test has now completed and it can end with two different results: ...
  • Page 52: Further Information

    LPC4088 Experiment Base Board - User’s Guide Page 52 9 Further Information The LPC4088 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. NXP LPC4088 Datasheet http://www.nxp.com/documents/data_sheet/LPC408X_7X.pdf...
  • Page 53 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Embedded Artists EA-QSB-018...

Table of Contents