UM11035 NXP | Alldatasheet
Document overview
- Manufacturer or author: Provided By alldatasheet.com(free datasheet download site)
- PDF pages: 28
Technical content
LPCXpresso54608/54618/54S618 Board User Manual Rev. 1.0 — 18 November 2016 User manual Document information Info Content Keywords LPCXpresso54608, LPCXpresso54618, LPCXpresso54S618, OM13092, OM13094, OM13095 Abstract LPCXpresso546xx User Manual
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 2 of 28 Contact information For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com
Revision history
1.0 20161118 Initial revision
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 3 of 28 1. Introduction The LPCXpresso™ family of boards provides a powerful and flexible development system for NXP's LPC Cortex®-M family of MCUs. They can be used with a wide range of development tools, including NXP’s MCUXpresso IDE. The LPCXpresso54608 (OM13092) / LPCXpresso54618 (OM13094) / LPCXpresso54S618 (OM13095) share the same design and have been developed by NXP to enable evaluation of and prototyping with the LPC546xx family of MCUs. There is no functional difference between these boards except the (1) functionality of the LPC546xx device installed, and (2) that the LPC54618 board does not include the LCD panel. All boards use a BGA180 package. The schematics show that the board was designed for either 1.8 V or 3.3 V build configurations, but all production boards are built in the 3.3 V configuration. Fig 1. LPCXpresso546xx underside view This document describes the hardware of the LPCXpresso546xx boards. The following aspects of interfacing to the board are covered by this guide: Main board features. Setup for use with development tools. Board interface connectors. Jumper settings.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 4 of 28 2. Feature summary The LPCXpresso546xx board includes the following features: On-board, high-speed USB based, Link2 debug probe with CMSIS-DAP and SEGGER J-Link protocol options: Link2 probe can be used with on-board LPC546xx or external target. UART and SPI port bridging from LPC546xx target to USB via the on-board debug probe. Support for external debug probe. 3 x user LEDs Target Reset, ISP (3) and user buttons Expansion options based on popular standards: Arduino UNO compatible expansion site with additional LPCXpresso V3 standard connections PMod™ compatible expansion port On-board 3.3V regulator with external power supply options. Built-in power consumption measurement for target LPC546xx MCU. 128Mb Micron MT25QL128 Quad-SPI flash. 8MB Micron MT48LC8M16A2B4 SDRAM. Knowles SPH0641LM4H digital microphone. Full size SD/MMC card slot. NXP MMA8652FCR1 accelerometer. Stereo audio codec with line in/out. High and full speed USB ports with micro A/B connector for host or device functionality. 10/100Mbps Ethernet (RJ45 connector). 272x480 color LCD with capacitive touch screen.
2.1 Board layout and settings
This section provides a quick reference guide to the main board components, configurable items, visual indicators, and expansion connectors. Fig 2 shows the layout of the components on the LPCXpresso546xx board.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 5 of 28 (1) Red is used to highlight key components, brown for buttons and LEDs, green for connectors and blue for expansion connectors. Fig 2. LPCXpresso546xx main feature layout The LCD panel is mounted on the reverse side of the board, connected to the circuitry via two flex cable connectors. It should not normally be necessary to remove the LCD or access these connectors; the LCD is held in place by 4 double-sided adhesive pads. Fig 3 shows the location of indicators and jumpers. SD/MMC socket Ethernet (RJ45) Audio jacks In Out Debug probe (micro B) Ext. Debug Probe Header Target MCU LPC54608 Peripheral Pmod connector Host Expansion Header Additional host connector Arduino/LPCXpresso V3 expansion connectors Power (micro B) High speed USB port (micro AB) Full speed USB port (micro AB) Link2 Debug Probe (LPC43xx) SDRAM Quad SPI flash Reset ISP3 User LEDs ISP2 ISP0 User Audio codec Digital mic
Table 1 lists the function of each jumper. Table 1. Jumpers JP1 Target processor selection for the on-board debug probe. Jumper shunted, the LPC546xx Target SWD interface is disabled. to debug an off-board target MCU.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 7 of 28 Circuit ref Description Section JP2 Buffer Power Selection For On-board Target place in position 1-2 (default) For Off-board Target place in position 2-3 3, 4 JP3 This header (not installed by default) provides a convenient connection point to provide external ADC positive and negative voltages. To inject these voltages at this header SJ22 (for VREFN) and/or SJ23 (for VREFP) need to be moved from the default 1-2 position to the 2-3 position. See Schematic JP4 This set of 3 jumpers control various selections for power measurement: Position 1-2 and 3-4 are in parallel with 1 ohm resistors. Current can be measured across these jumper headers to determine current flow into the LPC546xx target. Position 5-6 (installed by default) can be left open and a current meter connected between these pins to directly measure current flow into the LPC546xx target. JP5 Link2 (LPC43xx) force DFU boot – 2 position jumper pins. 1) Jumper open (default) for Link2 to follow the normal boot sequence. The Link2 will boot from internal flash if image is found there. With the internal flash erased the Link2 normal boot sequence will fall through to DFU boot. Jumper shunted to force the Link2 to DFU boot mode. Use this setting to reprogram the Link2 internal flash with a new image (using the LPCScrypt utility) or to use the MCUXpresso IDE with CMSIS-DAP protocol. Note that the LPCXpresso546xx Link2 flash is pre-programmed with a version of CMSIS-DAP firmware by default. JP6 Bridge / Host Expansion Header selector. Revision B boards: When open (default), the SPI connections from Flexcomm3 the LPC546xx are driven to the Link2 debug probe. Install JP6 when using the SPI interface at connector J14. Note that this disables the Link2 SPI (bridge) probe connection. Revision C boards: When open (default), the “Bridge” UART and SPI connections from the Link2 probe are driven to the LPC546xx target. Install JP6 when using the SPI interface at connector J14 and/or FC0 UART at P4 (FTDI). Note that this disables the Link2 SPI and UART (bridge) probe connections. JP7 (not installed by default) JP7 may be fitted to provide a convenient way to enable/disable the reset signal to/from the expansion connectors. Solder jumper JS28 should be removed if JP7 is to be used. See schematic
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 8 of 28 Circuit ref Description Section JP8 This set of jumpers is used to configure 3.3V vs 1.8V board configurations. OM13092 boards are all 3.3V, so these jumpers should not be changed from the default. JP8 is not present on Revision C boards (functionality has been replaced by zero ohm links). See schematic JP9 USB host Vbus selection Note that only one of USB0 or USB1 can be configured as a USB host port at any given time (this is a board restriction, not a limitation of the LPC546xx.) Install jumper in position 1-2 for USB1 (High Speed) to provide Vbus (i.e. enable USB host capability) (Default) Install jumper in position 2-3 for USB0 (Full Speed) to provide Vbus (i.e. enable USB host capability) JP10 USB host power control selection This jumper selects routing of USB port power and overcurrent detect from either the USB0 or USB1 ports of the LPC546xx. Note that only one of USB0 or USB1 can be configured as a USB host port at any given time (this is a board restriction, not a limitation of the LPC546xx.) Leave open when using USB1 (High Speed) as a USB host (Default) Install jumper for USB0 (Full Speed) to provide Vbus (i.e. enable USB host capability) JP11 & JP12 USB0 host / Ethernet TXD/RXD selection Due to sharing of pin functionality on this development board, it is not possible to support the Ethernet port and USB0 overcurrent feature simultaneously. For both JP11 and JP12: Install jumper in position 1-2 to enable Ethernet (Default) Install jumper in position 2-3 for USB0 (Full Speed) (i.e. enable USB host capability) JP13 USB0 host / Ethernet selection Due to sharing of pin functionality on this development board, the P4-7 port pin is used for either the USB0 port or as a general purpose signal on the expansion connector. Install jumper in position 1-2 to route P4-7 to the expansion connector. Install jumper in position 2-3 for USB0 (Full Speed) (i.e. enable USB host capability) Table 2 describes the board LED and button functions, and connectors.
Table 2. LEDs, buttons and connectors seconds, the LPC43xx is reset. expansion connector or when reset button SW1 is pressed. that this does not reset the Link2 debug probe.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 10 of 28 Circuit Ref Description Section SW5 User button This button is connected to LPC546xx port pin P1-1, and is provided for user applications. Port P1-1 is pulled to ground when the button is pressed. J1 External +5V power Micro USB connection for power to the LPC546xx target and peripheral circuitry (excluding Link2 Debug Probe). J2 LPC546xx High Speed USB connector (USB1) This micro AB connector enables connection from the LPC546xx USB1 port to host or slave devices. An adaptor (not supplied) is typically required to connect USB slave devices (mouse, keyboard, etc.) Note that when using this USB port as a host, power must be supplied via the J1 connector in order to power the USB device being connected to the board. J3 LPC546xx Full Speed USB connector (USB0) This micro AB connector enables connection from the LPC546xx USB1 port to host or slave devices. An adaptor (not supplied) is typically required to connect USB slave devices (mouse, keyboard, etc.) Note that when using this USB port as a host, power must be supplied via the J1 connector in order to power the USB device being connected to the board. Also note that jumpers JP9 through JP13 must be changed from their default position to use this port in host mode. J4 LPC546xx Ethernet connector This RJ45 connector provides a 10/100Mbps connection to the Ethernet PHY being driven by the LPC546xx. J5 Audio line input jack 3.5mm audio input jack for the audio codec J6 Audio line output jack 3.5mm audio input jack for the audio code J7 SD/MMC card slot Full size SD/MMC card slot connected to the SDIO interface of the LPC546xx. J8 Link2 debug probe connector Micro USB type B connection for the on-board Link2 debug probe. Note: do not use this connection when using an external debug probe. J9, J10, J12, J13 Expansion connectors 0.1” pitch connectors for addition of Arduino R3 shield or other expansion daughter boards / circuitry.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 11 of 28 Circuit Ref Description Section J11 Peripheral expansion PMod connector 0.1” pitch 2x6 connector following the PMod standards. This connector is primarily intended for adding external peripherals using I2C and/or SPI bus, but is also suitable for general purpose I/O connections. J14 Host/peripheral expansion connector 0.1” pitch 2x6 connector for host connection / expansion. This connector is primarily intended for connection and external host using I2C and/or SPI bus, but is also suitable for general purpose I/O connections or peripherals. J15 Host reset control This connector provides a reset input to the LPC546xx along with ground signals. J16, J17 LCD and touch screen display connectors These connector is dedicated for the LCD and touch screen. They are located under the LCD panel and should not be handled by the user unless instructed to do so by NXP. n/a 3. Getting Started The LPCXpresso546xx board is pre-programmed with a demo application showcasing TouchGFX Graphics from Draupner. Connect a micro USB cable from connector J8 or J1 to a power source (computer or power supply) and the board will boot within a few seconds and run this demonstration. The rest of this section describes how to download other sample programs using mass storage boot and how to start code development with the board, assuming the on-board Link2 debug probe will be used. For further information on TouchGFX please visit the Draupner Graphics website at http://touchgfx.com/en/nxp-semiconductors/ This section describes how to download pre-built binary images to the LPCXpresso546xx board using its mass storage device capability, and how to set up the board to start debugging sessions using popular development tools.
3.1 Loading applications using USB mass storage boot (MSC class)
The LPC546xx device supports mass storage boot mode, enabling “drag and drop” programming. Note that this method requires a binary file which can be generated from any toolchain supporting the LPC546xx. Refer to the documentation for your tools to determine how to generate a binary file. Note that this method cannot be used to load binary files that require data to be programmed into SPI flash. Mass storage mode boot is possible via the High Speed (USB1) or Full Speed (USB0) ports. The High Speed port will provide significantly shorter programming times for larger binary files. To program the LPC546xx in mass storage mode follow these steps: 1. If using the full-speed port:
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 12 of 28 a. Connect host computer to J3. Press and hold the ISP1 button while pressing and the releasing the Reset button. b. If using the high-speed port: connect host computer to J2. Press and hold the ISP2 button while pressing and the releasing the Reset button. 2. The host computer should show a mass storage device called CRP_DISABLD. 3. Open the MSC device and delete the file firmware.bin. Note that afterwards, even if the flash is in principle empty, the PC will read it as fully occupied memory. 4. Drag and drop the new binary file to the drive. Note that this new file must have the name firmware.bin, otherwise the file seems to be transferred and program but in fact it is not. 5. Reset the board. The application will now run.
3.2 Starting a debug session using the on-board (Link2) debug probe
By default, the LPCXpresso546xx is configured to use the on-board debug probe (Link2) to debug the on-board target (LPC546xx), using the CMSIS-DAP debug protocol pre- programmed into the Link2 Flash memory. The MCUXpresso IDE or other development tools that support the CMSIS-DAP protocol can be used in the default configuration. Check with your toolchain vendor for availability of specific device support packs for the LPC54600 family of devices. Note that when using the MCUXpresso IDE, the on-board Link2 can also be booted in DFU mode by installing a jumper on JP5; if this is done then the IDE will download CMSIS-DAP to the probe as needed. Using DFU boot mode will ensure that the most up - to-date / compatible firmware image is used with the IDE. Note that spare jumpers are provided in the board packaging.
3.2.1 Installation steps for use with MCUXpresso IDE
(Note: MCUXpresso IDE will be released for general availability in March 2017. ) 1. Download and install the MCUXpresso IDE. 2. Recommended: Install JP5 to force the Link2 debug probe to boot in DFU mode (see notes above). 3. Ensure jumper JP2 is fitted in position 1-2 (local target powered), and JP1is not installed (target SWD enabled). These are the default positions set during board manufacture. 4. Connect the LPCXpresso546xx board to the USB port of your host computer, connecting a micro USB cable to connector J8 (“USB Debug-Link”). The board will boot and run the TouchGFX graphics demo. 5. Allow about 10 seconds for the LPCXpresso546xx devices to enumerate for the first time; the device will appear as “LPC Device”. The board is now ready to be used with the MCUXpresso SDK examples for LPCXpresso546xx. When the board is used for the first time, it is recommended to force the LPC546xx target into a known state by performing an ISP boot before attempting to run your first example code. This can be achieved by pressing and holding down one of the ISP buttons while pressing and releasing the reset button.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 13 of 28
3.2.2 Installation steps to use Keil and IAR tools
- Download and install LPCScrypt or the Windows drivers for LPCXpresso boards (http://www.nxp.com/lpcutilities). This will install required drivers for the board. 2. Ensure JP5 is open to force the Link2 debug probe to boot from internal flash. 3. Ensure jumper JP2 is fitted in position 1-2 (local target powered), and JP1 is not installed (target SWD enabled). These are the default positions set during board manufacture. 4. Connect the LPCXpresso546xx board to the USB port of your host computer, connecting a micro USB cable to connector J8 (“USB Debug-Link”). The board will boot and run the TouchGFX graphics demo. 5. Allow about 10 seconds for the LPCXpresso546xx devices to enumerate for the first time. It is not necessary to check the Hardware Manager, however if this is done there will be five devices; four under Human Interface Devices (CMSIS-DAP, LPC- SIO, two HID Compliant Devices, and a USB Input Device) and one under Ports (LPC-LinkII Ucom.) 6. Run either the “Program LPC-Link2 with CMSIS-DAP” or “Program LPC-Link2 with SEGGER J-link” script provided in your LPCScrypt installation, and follow the on- screen instructions. These scripts can be seen in the Windows Start menu for the LPCScrypt installation. 7. After the script has run, remove JP5 and power cycle the board (note that resetting the board does not reset the Link2, so power cycling is required). 8. Your board is now ready to use with your 3rd party tool. Follow the instructions for those tools for using a CMSIS-DAP probe. When the board is used for the first time, it is recommended to force the LPC546xx target into known state by performing an ISP boot before attempting to run your first example code. This can be achieved by pressing and holding down one of the ISP buttons while pressing and releasing the reset button.
3.3 Starting a debug session using an external debug probe
Code running on the LPC546xx target can be debugged using an external debug probe that conforms to the standard ARM debug connector. To use an external debug probe connect the probe to the SWD connector (P1) and connect power via the micro USB connector J1. Note: The Debug link connector J8 must be left unconnected so that the Link2 debug probe is left unpowered and does not contend with the SWD interface signals from the external debug probe. 4. Link2 debug features This section describes the features provided by the on-board Link2 debug probe. See the Getting Started section for more information on how to program the device. The Link2 debug probe is implemented using an LPC432x MCU (circuit reference U21), which provides a high speed USB port interface to the host computer that runs the
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 14 of 28 development tools. This device is not intended for developer use, and should only be used with approved firmware images from NXP. The Link2 on-chip flash memory is factory programmed with a firmware image that supports CMSIS-DAP debug protocol, but also includes several other USB end point functions: Virtual COM (VCOM) port: a serial device that can be used with any host computer application design for serial port communication (e.g. Teraterm, puTTY, etc.) SWO trace end point: this virtual device is used by MCUXpresso to retrieve SWO trace data. See the MCUXpresso IDE documentation for more information. Power measurement probe: this virtual device is used by MCUXpresso to retr ieve power measurement data from boards that support this feature (e.g. LPCXpresso V3 boards, including the LPCXpresso546xx.) See Section 7 for more details on this feature. I2S/SPI bridges: bridge device from I2C and SPI ports of the LPC546xx target. All of these devices are independent of each other and of the CMSIS-DAP debug device that is enumerated when the board is connected to a host computer; for example the VCOM port can be used if the board is running an application when no debugger is running. In order to correctly install and use the Link2 device on the LPCXpresso546xx (required for any debugging purpose) for Windows host computers, install the drivers first. These drivers will automatically be installed when MCUXpresso IDE has already been installed. If these IDEs are not being used, it is recommended LPCScrypt be installed as this also includes the required drivers. All these tools and utilities are available for free download at www.nxp.com. The CMSIS-DAP firmware image installed at the factory (and by LPCScrypt) will uniquely identify itself to the host computer so that more than one board can be connected to that host computer at any time. Some toolchains cannot discern between multiple debug devices; refer to your toolchain documentation for more information (note the MCUXpresso does support multiple LPCXpresso board targets.) Note: The Link2 only boots when the board is power cycled; the reset button on the board does not reset the Link2. When using MCUXpresso IDE, the Link2 can be automatically booted with the latest / most appropriate firmware for that IDE version by installing JP5 before powering up the board. This is the recommended approach for the MCUXpresso IDE. Note that if JP5 is installed the VCOM port (and other devices mentioned above) device will not appear until the IDE boots the debug probe. The debug probe is booted once a debug session is started (that is, the IDE attempts to download code to the target).
4.1 What the Link2 boot LED indicates
LED D10 is the Link2 MCU BOOT0_LED indicator. This LED reflects the state of Link2 MCU pin P1_1. When the boot process fails, D1 will toggle at a 1 Hz rate for 60 seconds. After 60 seconds, the Link2 MCU is reset.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 15 of 28
4.2 Programming the Link2 firmware
As mentioned earlier in this section, it is not normally necessary to program the Link2 firmware. However this can easily be accomplished using the supporting utility, LPCScrypt. To program the Link2 Flash the Link2 device (LPC432x) must be in DFU mode. If the Link2 already has a valid image in the flash, it will need to be forced into DFU mode by placing a jumper shunt on JP5, and power cycling (disconnecting then reconnecting power via J8.) Link2 MCU programming is performed using the LPCScrypt utility (see http://www.nxp.com/lpcutilities). Instructions for using the tool are located at the same web page.
4.3 VCOM port
The identifier of the VCOM port will vary between boards and hosts. To determine the COM port, open the Windows operating system Device Manager. This can be achieved by going to the Windows operating system Start menu and typing “Device Manager” in the search bar. In the device manager look under “Ports”; the LPC-LinkII UCom Port device and its name should be visible. Fig 4. Identifying the VCOM port
4.4 Configuring the LPCXpresso546xx to debug an external target
The LPCXpresso546xx board’s Link2 debug probe may be used to debug an off-board target MCU. The on-board Link2 debug probe is capable of debugging target MCU’s with a VDDIO range of 1.6V to 3.6V. To keep the on-board target LPC546xx MCU from interfering with the SWD interface, JP1 must be fitted. The Link2 debug probe SWD should be connected by a ribbon cable between the P1 connector to the off-board target MCU SWD interface. Power the LPCXpresso546xx board from the Link USB connector J8, and fit jumper JP2 across pins 2 - 3 (External Target). 5. Board power connections & measurement The LPCXpresso546xx board requires +5V input to power the on-board voltage regulators which in turn power the Link2 debug probe and other +3.3V circuits, the LPC546xx target and other +1.8V circuits, and the Arduino +5V and +3.3V power rails . When the main external power source is from the Link2 side USB micro B-type connector (J8), both the Link side and LPC546xx Target sections of the board are powered. When
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 16 of 28 the main external power is from the power only USB micro B-type connector (J1), or one of more of the USB device ports (USB0 at J3 or USB1 at J2), only the LPC546xx target and supporting devices and peripherals are powered.
5.1 LPCXpresso546xx current measurement
The LPC546xx current can be measured by measuring the voltage across a sense resistor in series with the supply, a current meter or using the on board current measurement circuit. Each of these methods will be described in subsections below. There is no current monitoring of the Link2 section circuits on the board. The Target side power going to LEDs and support ICs is not monitored by the current measurement circuit. The LPC546xx LQFP package has the core and IO power both sourced from the same VDD pins. When a shield board is attached, attempting to measure the lowest possible power the LPC546xx IO pins must be configured according to how the software has configured the shield board to ensure there is no extra current from the LPC546xx IO ports that have external pull-up or pull-down resistors enabled. There are several leakage paths through the various devices on the LPCXpresso546xx board, so this board should not be used to measure the lowest possible leakage current achievable in a target application.
5.1.1 LPC546xx Vsense resistor current measurement
The voltage across a pair of 1Ω resistors in series with the target LPC546xx VDD can be manually measured at JP4 across pins 1 and 4 on the PCB. For a higher range of current a jumper should be installed between pins 3 and 4 of JP4 to short out on of these resistors. The voltmeter positive probe is applied to JP4 pin 1 (see silkscreen labelling) and pin 4. Use Ohm’s law to calculate the current (LPC546xx current = measured voltage / 2 Ω). As an example, if the measured voltage is 20 mV, then 20e-3 / 2 Ω = 10 mA. Note: The input current to the MAX9634 used in the on-board current measurement will be included in the voltage measured across this resistor.
5.1.2 LPC546xx VDD current measurement using a current meter
A current meter may be inserted at JP4 between pins 5 and 6 to measure the LPC546xx VDD input current. Note that a jumper needs to be installed in the 5-6 position when an ammeter is not present so power can reach the LPC546xx target.
5.1.3 LPC546xx VDD current measurement
The LPCXpresso546xx board has an on-board current measurement circuit consisting of a MAX9634T (U18) current monitor chip and a 12-bit ADC (ADC122S021, U23) with a 12-bit sample at 50k to 200ksps. The on-board MAX9634T current monitor measures the voltage across the LPC546xx VDD Vsense resistors; either 2 Ω or 1 Ω if JP4 jumper 3-4 is installed. The MAX9634 multiplies the sense voltage by 25 to provide a voltage range suitable for the ADC to measure. A 2-input analog mux selects between the LPC546xx current monitor and the output off a MAX9634T current monitor chip on an expansion board (with compatible current measurement circuit on-board). The current measurement circuit is controlled by the Link2 processor and is not user programmable. Power measurement utilities to use this feature are available in LPCXpresso and IDE MCUXpresso IDE installations.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 17 of 28 Due to input offset voltage variations in the MAX9634, the current measurement circuit is not recommended for measuring current below 150 uA. See Fig 5 as a guideline for measurement error versus measured current. Fig 5. Current measurement circuit error
5.1.4 Shield board current measurement
To use the on-board current measurement circuitry, any expansion board must match the functionality of the LPCXpresso546xx. Refer to the board schematics for more information. 6. Board peripheral connections
6.1 LPC546xx USART ports and VCOM support
The LPCXpresso546xx board provides access to USART connections from Flexcomm4 at the expansion connector J13. On LPC546xx the USART from Flexcomm0 supports ISP UART mode booting, and is used by default for semi-hosting debug messages. This USART is connected to a serial % Error LPC546xx current (µA)
installed; note that when JP6 is installed the VCOM port functionality is disabled. (version 1.9 onwards) or directly from SEGGER also has this feature.
6.1.1 P3 USART header
device. P4 is only present on Revision C boards. Table 3 shows the pin out information. Table 3. P4 connections
1 Ground
2 RXD (from LPC546xx)
3 TXD (from LPC546xx)
6.2 USB ports
several supporting application examples.
6.2.1 USB full-speed port (USB0)
The LPC546xx Full Speed (FS) USB port is connected to micro AB USB connector J3.
6.2.1.1 Mass Storage Boot (MSC)
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 19 of 28
6.2.1.2 Device mode
The FS port supports USB device mode operation; no jumper settings are needed to configure this mode. When using the port in device mode, a standard micro USB cable can be used.
6.2.1.3 Host mode
The FS port supports USB device mode operation but, due to sharing of some signals and power supply circuitry, requires the following settings: Connect external +5V power via USB connector J1. This is required for the FS USB port to be able to power the devices connected to it. Install JP10 For each of JP9, JP11, JP12, JP13 install a jumper in position 2-3. Use of a micro AB adaptor to connect an external USB device may be required, as most USB device have either a type A or micro B connector. Note: The Ethernet and HS USB Host functions are disabled when the board is configured for FS USB Host operation. Also note that Expansion connector port PIO4-7 is no longer available when using this mode.
6.2.2 USB High Speed port (USB1)
The LPC546xx High Speed (HS) USB port is connected to micro AB USB connector J2. This section describes functionality support by this board and associated jumper settings for this board.
6.2.2.1 Mass Storage Boot (MSC)
The HS USB port supports mass storage boot mode (also known as MSC). When the board is booted in this mode using the HS port, the device will enumerate in a host computer (when that computer is connected using a standard micro B USB cable via J2) as a mass storage class device called CRP_DISABLED. To force the board to boot into this mode press and hold down the ISP2 button while pressing and releasing the reset button (or power cycling the board). See Section 3.1 for further information on how to use this mode.
6.2.2.2 Host mode
The HS port supports USB device mode operation but, due to sharing of some s ignals and power supply circuitry with the FS port, requires the following settings: Connect external +5V power via USB connector J1. This is required for the HS USB port to be able to power the devices connected to it. Ensure JP10 is not installed (default). Install a jumper at JP9 in position 1-2 (default). Use of a micro AB adaptor to connect an external USB device may be required, as most USB device have either a type A or micro B connector. (Note: Although not required for the HS USB port operation, it is recommended to check JP11, JP12 and JP13 have a jumper in position 1-2 to enable Ethernet operation and availability of the I/O at the Expansion connector D8.)
6.3 Host Expansion Header (J14)
peripherals or other devices. Table 4 shows the connections. Table 4. Host Expansion Header signals
1 GPIO/SPI-SSEL in/out 3 / PIO0-1
2 GPIO/SPI-MOSI in/out 3 / PIO0-3
3 GPIO/SPI-MISO out/in 3 / PIO0-2
4 GPIO/SPI-SCK in/out 3 / PIO0-0
5 GND
7 GPIO/INT (out/in) PIO0-5 (default) or PIO0-4, set by JS32
8 GPIO/RESET (out) PIO3-13
9 SCL 1 / PIO0-14
10 SDA 1 / PIO0-13
11 GND
This connector shares SPI interface signal connections with the SPI bridge function (i.e. port to the Link2 device; install JP6 if using the SPI port on J14.
6.4 PMod Slave Expansion Header
devices. Table 5 shows the connections. Table 5. PMod Slave Expansion Header signals
1 GPIO/SPI-SSEL out / UART CTS in GPIO/SPI-SSEL in/out 9 / PIO4-6 (default) or
2 GPIO/SPI-MOSI out / UART TXD out GPIO/SPI-MOSI in/out 9 / PIO3-21
3 GPIO/SPI-MISO in / UART RXD in GPIO/SPI-MISO out/in 9 / PIO3-22
4 GPIO/SPI-SCK out / UART RTS out GPIO/SPI-SCK in/out 9 / PIO3-20
5 GND GND
7 GPIO/INT in GPIO/INT (out/in) PIO2-0
8 GPIO/RESET (out) GPIO/RESET (out) PIO3-11
9 GPIO/SCL SCL 2 / PIO3-24
10 GPIO/SDA SDA 2 / PIO3-23
11 GND GND
J9, and the INT and RESET connections to J12.
6.5 Expansion connectors (including Arduino connectivity)
may not be usable if those other functions are being used. Table 6 shows the connector circuit references and purposes. Table 6. Expansion connectors Uno rev3 compatible interface. the Arduino Uno rev3 compatible interface. connectors or circuit functions. Refer to the board schematics for more details. Table 7. Expansion Connector signal sharing
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 22 of 28 Function Connector Shared with GPIO D8 J9 pin 19 Jumper (JP13) selection for USB0 FS host port. Only one of USB0 Host mode or GPIO function on this port may be used. GPIO J9 pin 6 User LED 3 GPIO J9 pin 8 User LED 2 I2S J9 pins 12, 14, 16, 18, 20 Audio codec. To use an I2S device connected to these pins solder jumpers JS6 through JS9 and JS11 through JS13 may need to be removed.
6.6 Ethernet port
The LPC546xx incorporates an on-board 10/100 Mbps Ethernet MAC. The LPCXpresso546xx board includes an on-board LAN8720A-CP PHY and RJ45 jack with integrated link status LEDs. The MCUXpresso SDK for LPCXpresso546xx includes drivers, LwIP stack and several examples to show how the Ethernet function can be used. 7. On-board memory
7.1 SDRAM
The board includes an 8MB Micron MT48LC8M16A2B4 SDRAM, connected to the 16-bit external memory interface available on the LPC546xx BGA180 part. The MCUXpresso SDK includes drivers that have optimized external memory settings for use of this memory.
7.2 Quad SPI flash
The board includes a 128Mb Micron MT25QL128 Quad-SPI flash. The MCUXpresso SDK includes drivers for use of this memory as a data storage/retrieval device. Note that drivers for this device may be required the development tool chain being used (these are included in the MCUXpresso IDE). Refer to your tool chain vendor for more information. Note that the LPCXpresso546xx board is also designed to accommodate a Macronix MX25R6435FM2IL0 quad SPI flash as a reference for customers considering a 1.8V based design. 8. Other board features This section describes board functions not mentioned elsewhere in this document.
8.1 LCD with capacitive touch
The LPCXpresso546xx includes a Rocktech RK043FN02H-CT color LCD display panel with a resolution of 272x480 pixels and a capacitive touch controller. The LCD and capacitive touch controller interface to the main board via flex cables routed beneath the LCD panel. The LCD panel is secured using multiple adhesive pads. It is not recommended to remove the panel because these adhesive pads will need to be replaced afterwards to ensure the mechanical integrity of the flex cable connections.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 23 of 28 Note: The LCD data lines are shared with the PDM0 interface of the LPC546xx device (the LCD is enabled by default), and solder jumpers need to be modified to change between these configurations (see section 8.5 for more details.) On-board voltage pump circuitry is provided to drive the LCD backlight using an AP5724WG device. This is enabled using PIO3-31. The MCUXpresso SDK includes drivers and example applications for the LCD and capacitive touch controller.
8.2 Audio codec
The LPCXpresso546xx board incorporates a Cirrus Logic (Wolfson) WM8904 audio codec, powered via a dedicated regulator. This codec has both I2C (for control) and I2S (for data) interfaces. The I2C interface of the codec is routed to Flexcomm 2 off the LPC546xx, the same connection as used for the other I2C devices on the board; the Codec has an address of 0b0011010. The Flexcomm 6 and Flexcomm 7 interfaces of the LPC546xx are connected respectively to the Codec for data sent to / received from the Codec. These I2S connections from the LPC546xx are also connected to the Expansion connectors (see Section 6.5 for more information); solder jumpers may be removed to disconnect the on - board codec if an external I2S device is to be used instead. The line input to the codec is routed to a 3.5mm stereo jack socket (J5) through the circuit shown in Fig 6. Fig 6. Line input circuitry A second 3.5 mm stereo jack socket (J6) provides a headphone / line out from the codec, via the circuit shown in Fig 7.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 24 of 28 Fig 7. Headphone / line output circuitry The MCUXpresso SDK includes drivers and example code for the audio codec .
8.3 SD card
The full size SD card (J7) includes in the LPCXpresso546xx board provides a 4-bit SDIO interface to support memory cards, plug-in WiFi modules, etc. Power enable to the socket is provided via PIO2-5, with LED D7 providing a visual indication when power is applied. The MCUXpresso SDK includes drivers and examples of using this interface with SD memory cards.
8.4 Accelerometer
The board includes an NXP MMA8652FCR1 accelerometer, interfaced to Flexcomm 2 (ports PIO3-23/PIO3-24) of the LPC546xx. The accelerometer has an I2C address of 0b0011101.
8.5 Digital Microphone
The LPC546xx device incorporates dual digital microphone interfaces. A low power Knowles SPH0641LM4H digital microphone is incorporated on the board, interfaced to the PDM1 microphone interface. Note that the Knowles digital microphone is designed to be mounted on the underside of a board, with audio passing through a hole in the b oard. Note that the PDM0 interface of the LPC546xx is also available for interfacing to an external microphone via the Expansion connectors, but due to signal sharing with this function and LCD data lines 14 and 15, solder jumpers JS33 and JS36 need to be moved to the 2-3 position to enable this function (thus disabling correct LCD operation). The MCUXpresso SDK includes drivers and demonstration code for capturing data from the on-board digital microphone and an external microphone of the same type (the latter requires board modification).
8.6 USER button
This button can be used to generate an interrupt by pulling down the PIO1-1 of the LPC546xx to ground.
Error! Unknow n docume nt property name. Error! Unknown document property name. Error! Unknown document property name. NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 25 of 28 9. Legal information
9.1 Disclaimers
Limited warranty and liability — Information in this document is believed to be accurate and reliable. However, NXP Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. In no event shall NXP Semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. Notwithstanding any damages that customer might incur for any reason whatsoever, NXP Semiconductors’ aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors. Right to make changes — NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof. Suitability for use — NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life -critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors accepts no liability for inclusion and/or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer’s own risk. Applications — Applications that are described herein for any of these products are for illustrative purposes only. NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products, and NXP Semiconductors accepts no liability for any assistance with applications or customer product design. It is customer’s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer’s applications and products planned, as well as for the planned application and use of customer’s third party customer(s). Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. NXP Semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer’s applications or products, or the application or use by customer’s third party customer(s). Customer is responsible for doing all necessary testing for the customer’s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer’s third party customer(s). NXP does not accept any liability in this respect. Evaluation products — This product is provided on an “as is” and “with all faults” basis for evaluation purposes only. NXP Semiconductors, its affiliates and their suppliers expressly disclaim all warranties, whether express, implied or statutory, including but not limited to the implied warranties of non- infringement, merchantability and fitness for a particular purpose. The entire risk as to the quality, or arising out of the use or performance, of this product remains with customer. In no event shall NXP Semiconductors, its affiliates or their suppliers be liable to customer for any special, indirect, consequential, punitive or incidental damages (including without limitation damages for loss of business, business interruption, loss of use, loss of data or i nformation, and the like) arising out the use of or inability to use the product, whether or not based on tort (including negligence), strict liability, breach of contract, breach of warranty or any other theory, even if advised of the possibility of such damages. Notwithstanding any damages that customer might incur for any reason whatsoever (including without limitation, all damages referenced above and all direct or general damages), the entire liability of NXP Semiconductors, its affiliates and their suppliers and customer’s exclusive remedy for all of the foregoing shall be limited to actual damages incurred by customer based on reasonable reliance up to the greater of the amount actually paid by customer for the product or five dollars (US$5.00). The foregoing limitations, exclusions and disclaimers shall apply to the maximum extent permitted by applicable law, even if any remedy fails of its essential purpose.
9.2 Trademarks
Notice: All referenced brands, product names, service names and trademarks are property of their respective owners.
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs User manual Rev. 1.0 — 18 November 2016 26 of 28 10. List of figures
NXP Semiconductors UM11035 LPCXpresso boards for LPC546xx family of MCUs Please be aware that important notices concerning this document and the product(s) described herein, have been included in the section 'Legal information'. © NXP B.V. 2016. All rights reserved. For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com Date of release: 18 November 2016 Document identifier: UM11035 12. Contents
3.1 Loading applications using USB mass storage
3.2 Starting a debug session using the on-board
3.3 Starting a debug session using an external
4.4 Configuring the LPCXpresso546xx to debug an
5.1.2 LPC546xx VDD current measurement using a
6.1 LPC546xx USART ports and VCOM support ... 17