Home

User`s Manual - Embedded Artists

image

Contents

1. Sa OO 4 OO pene OO OBES OOo 9910 O ioo ji 28 0 4E OOOCCOOOOCOOOOR sHOOO00000000000 pac23 O O o EaR33 O O Gor32 0 De YL 3E C o Cars o ee 2 6 l NS 3 sw24 3 swi 4w swa 4 S Figure 3 LPC11D14 QuickStart Board Default Jumper Positions N A Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 13 3 6 Things to Note about the Hardware 3 6 1 Rework Wire Revision A of the board contains a layout error that affects the wakeup push button SW2 It is not connected to PIO1_4 as it should This has been corrected on all boards via a red wire on the top side of the board Figure 4 below shows where the rework wire is placed on the board J Je s J s se Jo ee E Figure 4 LPC11D14 QuickStart Board with rework wire to SW2 Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 14 4 Getting Started This chapter contains information about how to get acquainted with the LPC11D14 QuickStart Board Please read this chapter first before start using the board it will be well spent time 4 1 Demo Application The board is preloaded with a demonstration application This application begins with outp
2. m 2 Select all sub i CMSISv2p00_LPC11xx Lib_CMSISv2p00_LPC1 bo projects in list H MCU Lib MCU Quick 3 A RedC 0 varia 9o Break 5 and announcements E Import and Export Copy projects into workspace rce for getting help an s Import archived projects zip C Import exisiting projects ll g Ir iport projec cription not suppor MIEC Import files into ly Export projects to archive zip DE port projects and references to archive zi a Smart Import wizard amp Build and Settings q J O LPC1ID14 See ee ee 4 Figure 6 LPCXpresso IDE Import Archived Project Window Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 16 All sample projects are now imported Click to select the project named demo Browse and edit the project files Build clean debug the project from the Quickstart menu Start here see picture below Develop Welcome page LPCXpresso a File Edit Navigate Search Project Run Window Help ri fa aes S GH eaehoC Ca F Bw F E X Develop amp B Q v iHris 57 Project itt Core Regi Welcome 4 0 5 123 Ipexpresso pages registered htm ye B 4 5 demo a gt E startup 4 src PRESSO gt imma powered by Hillcode_red E Lib_Board EE Lib_CMSISv2p00_LP
3. Open Xpresso Getting Started Guide Grate 50 Resources B DemoApp Debug Copy Ctrl C the LPCXpresso Support page for new LPCXpresso software releases more example projects and announcements gt a Relea f Paste Ctrl V fi www nxp comilpexpresso support gt ES LCD_ADC temp_wat Delete Delete gt 5 LCD_graphics wes PCXpresso Forum community is exclusively built for LPCXpresso users and is an invaluable resource for getting help and b tS lib_LPC11U14Dev Rename F2 on use of the LPCXpresso tools and boards Quick X connected and join the LPCXpresso community Quick 3 N A RedC x5 Import Start here 24 Export Te New project E Refresh 0 Forum view the forum and to register so that you can post visit www nxp com Ipcxpresso forum ormation it the NXP LPCXpresso website Import project s Make Targets information on upgrades etc visit the Code Red Technologies LPCXpresso website aaj Build all projects Debug it the Embedded Artists LPCXpresso website oe Clean Selected File s Build Selected File s Run As F Debug DemoApp Deb Debug As amp Build DemoApp Debu of Clean DemoApp Debi Quick Settings v Profile As E P d Fil d i B ject il Coenpare With Import and Export Replace With Build and Settings Launch Configurations Smart update Debug and Run n DemoApp Debug DemoApp bin NXP LPC11U14 201 Figure 15 LPCXpresso IDE Binary Utilit
4. LPC11D14 QuickStart Board User s Guide Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Get Up and Running Quickly and Start Developing Your Applications On Day 1 iA Embedded Artists EA2 USG 1106 Rev B LPC11D14 QuickStart Board User s Guide Page 2 Embedded Artists AB Davidshallsgatan 16 211 45 Malmo Sweden info EmbeddedArtists com http www EmbeddedArtists com Copyright 2011 2012 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 regarding improvements on this document Please send comments to support EmbeddedArtists com Trademarks All brand and product names mentioned herein are trademarks services marks registered trademarks or registered service marks of their respective
5. 3 sw24 3 swi 45 swa Wakeup R16 trimming potentiometer m Capacitive sensors Figure 2 LPC11D14 QuickStart Board Overview Copyright 2012 Embedded Artists AB LPC11D14 with pin access connectors Ground pad Voltage measurement pads Reset button SWD interface JTAG interface not mounted LPC11D14 QuickStart Board User s Guide Page 10 3 3 Usage of CPU Pins The table below lists which LPC11D14 pins that are used in the design Many of the pins are free to use in customer extensions All pins of the LPC11D14 are accessible via 100 mil pitch connectors around the chip on the pcb LPC11D14 pin Usage PIO0_0 Reset PIO0_1 ISP enable push button PIO0_2 Not used PIO0_3 Connected to Start Logic push button PIO0_4 I2C SCL PIO0_5 I2C SDA PIO0_6 Not used PIO0_7 Connected to LED Active high PIO0_8 Not used PIO0_9 Not used PIO0_10 SWD interface SWCLK PIOO_11 AINO connected to capacitive sensor 0 PIO1_0 AIN1 connected to capacitive sensor 1 PIO1_1 AIN2 connected to capacitive sensor 2 PIO1_2 AIN3 connected to capacitive sensor 3 PIO1_3 SWD interface SWDIO PIO1_4 Connected to Wakeup push button PIO1_5 Not used PIO1_6 UART RX connected to uart to usb bridge PIO1_7 UART TX connected to uart to usb bridge PIO1_8 Not used PIO1_9 Co
6. video and game controllers 1 System devices amp Universal Serial Bus controllers H FH Figure 20 Device Manager Dialog The new COM port USB Serial Port will be listed under the Ports list Right click on the new USB Serial Port and select Properties as illustrated in Figure 21 below go Device Manager E olx File Action View Help e mf RARA IDE ATA ATAPI controllers s gt IEEE 1394 Bus host controllers gt Keyboards 75 Mice and other pointing devices Monitors USB Serial Port BB Network adapters Bw 1394 Net Adapter E8 Broadcom 440x 10 100 Integrated Controller 5 Dell draadloze WLAN 1450 dubbele band WLAN Mini PCI kaart E9 Wireless G Notebook Adapter with SRX Other devices B PCMCIA adapters J F Ports COM amp LPT USB Serial Port COrggie Sf Processors SCSI and RAID controle Sound video and game A Properties Update Driver Disable Uninstall 3 System devices Scan for hardware changes amp Universal Serial Bus con E Ee Se a eel Opens Opens property sheet for the current selection 0000000000 O sheet for the current selection Figure 21 Device Manager Port Dialog Select 115200 bits per second 8 data bits none parity 1 stop bit and none flow control as illustrated in Figure 22 below Then select Advanced
7. Artists AB LPC11D14 QuickStart Board User s Guide Page 24 4 5 Console Interface via UART to USB Bridge The LPC11D14 QuickStart Board contains a UART to USB bridge chip FT232R from FTDI that connects one of the UART channels on the LPC11D14 MCU to a virtual COM port on the PC via USB It is this serial channel that is the console interface to the system Special USB drivers must be installed on the PC in order for the virtual COM port to be created See subsection below for a description of how to install the FTDI USB driver 4 5 1 FTDI USB Driver A USB driver must be installed on the PC computer in order to get the UART to USB chip FT232R to function Make sure to download the latest version of the driver which can be found at the following URL http www ftdichip com Drivers VCP htm search for a FT232R driver for the operating system on the PC When the LPC11D14 QuickStart Board is connected to the PC via an USB cable the PC will ask for a driver Unpack unzip the downloaded driver file and browse to the position of the driver files After successful driver installation a COM port will be created Before any communication with the Board can take place the UART settings must be correctly set The following description is valid for Windows XP but other operating systems have similar dialog windows See the USB driver documentation for details if needed To change the UART settings first open the System Properties dialo
8. gy Import archived projects zip Import exisiting projects o BLDC Sensored NXP LPC1114 301 Figure 10 LPCXpresso IDE Program Flash Icon The next step is to select which processor to download to Select LPC1114 302 from the list that is presented Then press OK button Note that this step is sometimes not needed because the LPCXpresso IDE can itself detect which processor it is connected to Note that LPC11D14 does not exist as a separate item in the list This is because the LPC11D14 internally consists of two chips one LPC1114 and one PCF8576D Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 19 The next step is to browse to the file to download Press the Browse button Program Flash Program target flash LPC11xx NXP LPC11U14 201 on Options Display progress log V Reset target on completion E Reopen dialog on completion E Repeat this action when complete E Use JTAG interface Code Read protect CRP selection None Select file Base address Erase Options Mass erase Erase only required pages Figure 11 LPCXpresso IDE Program Flash Window Browse to the projects top directory and then Debug In this subfolder there is either a file ending with axf or bin Select one of these files Press the Open button Note that screen shot below is generic and does not reflect the directory structure or fold
9. owners and should be treated as such Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 3 Table of Contents 1 Document Revision History 4 2 Introduction 5 2 1 Features 5 2 2 ESD Precaution 6 2 3 General Handling Care 6 2 4 Code Read Protection 6 2 5 CE Assessment 6 2 6 Other Products from Embedded Artists 6 2 6 1 Design and Production Services 7 2 6 2 OEM Education QuickStart Boards and Kits 7 3 The LPC11D14 QuickStart Board Design 8 3 1 Block Diagram 8 3 2 Board Overview 9 3 3 Usage of CPU Pins 10 3 4 Schematic Walkthrough 11 3 4 1 Page 2 11 3 4 2 Page3 11 3 4 3 Page 4 11 3 5 Default Jumper Positions 12 3 6 Things to Note about the Hardware 13 3 6 1 Rework Wire 13 4 Getting Started 14 4 1 Demo Application 14 4 2 Program Development 14 4 3 Compiling the Demo Application 14 44 Program Download 17 4 4 1 SWD Interface 17 44 2 Using LPCXpresso IDE Debugger 18 4 4 3 UART ISP 21 4 5 Console Interface via UART to USB Bridge 24 4 5 1 FTDI USB Driver 24 4 5 2 USB Driver Behavior 27 5 Further Information 28 Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 4 1 Document Revision History Revision Date Description PA1 2011 11 17 First version of document A 2011 11 24 Corrected minor errors in the text B 2012 01 13 Added note about CE marking Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s G
10. this connector can be mounted SW1 is a start logic push button for waking the LPC11D14 from different low power modes Many pins can have this functionality PIOO_3 has been selected for this board SW2 is a wake up push button for waking the LPC11D14 from deep power down mode SW2 is connected to PIO1_4 which is the WAKEUP pin A high to low transition on this pin will wake up the LPC11D14 from deep power down mode PIO1_4 is the only pin that can wake up the LPC11D14 from this mode 3 4 2 Page3 The integrated segment LCD controller is a separate chip inside the LPC11D14 package It is the PCF85 76D chip that is used The MCU communicates with the LCD controller via IC All pins from the LCD controller are connected to the 14 segment LCD on the board It is possible to measure the current consumption of the PCF8576D Normally a jumper in JP9 is inserted but if removed there are 5 ohm resistors that can be used for measuring the current consumption 10mA current will give a 50mV voltage drop over a 5 ohm resistor There is also a 32 kbit E PROM and temperature sensor connected to 12C bus The schematic show the 12C addresses of the different 12C devices Details about the EPROM temperature sensor and LCD controller operations can be found in the respective datasheets There are two on board 2Kohm pull up resistors pull ups are always needed on C busses R16 is a 22K trimming potentiometer for simulating an arbitrary analog in
11. C activated E Lib_MCU Welcome to LPCXpresso 4 The software is now fully activated and can be used for production LPCXpresso can be used to generate and download applications containing up to 128KB of code into an LPC target Getting Started E Please read the getting started guide for step by step instructions to build your first LPCXpresso project LPCXpresso Getting Started Guide _ LPCXpresso Resources Quick 23N E RedC 00 Varia So Break Check the LPCXpresso Support page for new LPCXpresso software releases more example projects and announcements Start here a Visit www nxp com lpexpresso support i New project LPCXpresso Forum be Import project s e clusively built for LPCXpresso users and is an invaluable resource for getting help an and boards ny Buy n jebug i i ci shi z 3 Build clean debug project 5 mmn amp Build demo Debug that you can post visit www nxp com Ipexpresso forum of Clean demo Debug K m J Debug demo Debi a eT F Debug demo Debug E console 58 Rt Problems Memory A Red Trace Preview B ri No consoles to display at this time Project and File wizards oa Import and Export Sr Ruild and Settinne S n A demo stc main c demo NXP LPC1114 302 Figure 7 LPCXpresso IDE Build Debug Project When debugging a project make sure the LPC11D14 QuickStart Board is connected to the LPC LINK debugger see section 4 4 for a description
12. D Interface The SWD interface is the recommended interface to use for program download since it also has the added benefit of being a debug interface useful during program development How to use the debugger via LPCXpresso IDE is described in previous section 4 3 Any SWD debug interface that supports ARM Cortex M0 processors in general and the LPC1100 family in particular will work for downloading an application Figure 8 below shows how the LPC LINK part of an LPCXpresso target board is connected to the SWD interface of the LPC11D14 QuickStart Board Note the orientation of the SWD cable Pin 1 of the SWD connector in each end shall match each other An LPC LINK unit can be created by cutting any LPCXpresso target board into half the half that contains the embedded debugger part Figure 8 LPC11D14 QuickStart Board connected to LPC LINK via SWD It is also possible to use the physically bigger 2x10 pos 100 mil pitch ARM SWD JTAG interface Either solder a 2x10 pos 100 mil pitch shrouded IDC connector to the LPC11D14 QuickStart Board or use Embedded Artists adapter for the purpose article number EA ACC 040 See Figure 9 below Note that the SWD JTAG debug pod used must support the SWD protocol in order to work Figure 9 SWD JTAG Adapter EA ACC 040 Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 18 4 4 2 Using LPCXpresso IDE Debugger This section describes how to download an
13. It is via LPC LINK SWD debug interface that the application will be downloaded to the board It is also via this interface that the actual debugging can take place by setting breakpoints inspecting variable values etc Using the Debug project functionality is the normal way of downloading an application to the LPC11D14 Section 4 4 describes how to download an application binary image hex file in general without debugging it Sometimes an error message appears when trying to debug a project i e download code There are a couple of things to check 1 Make sure last debug session has been ended 2 Make sure the LPC LINK is properly installed and connected Especially check polarity of the small 10 pos SWD cable Pin 1 in each end shall match each other 3 Make sure that the LPC11D14 is in a mode where the debugger can take command over the processor When the LPC11D14 is in a low power mode it sometimes prohibits the debugger from connecting to the processor The simplest way is to place the LPC11D14 in ISP bootload mode While resetting the LPC11D14 press the ISP Enable push button a Press both Reset SW3 and ISP push button SW4 b Release the Reset push button c Release the ISP push button d The LPC11D14 is now in ISP bootload mode Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 17 4 4 Program Download There are two ways to download applications in to the LPC11D14 4 4 1 SW
14. ad applications containing up to 128KB of code into an LPC target ug LPCXpresso_MC Getting Started Ipcxpresso_3 6 pages registered htm P gt powered by code red E BLDC_Sensored Debug launch Please read the getting started guide for step by step instructions to build your first LPCXpresso project BLDC_Sensored Release launch a aa yaja LPCXpresso Getting Started Guide gt lib_small_printf_m0 LPCXpresso Resources Check the LPCXpresso Support page for new LPCXpresso software releases more example projects and announcements Quickstart 3 69 Variables Breakpoint Visit www nxp comilpexpresso support LPCXpresso Forum Start here The LPCXpresso Forum community is exclusively built for LPCXpresso users and is an invaluable resource for getting help and i New project v advice on use of the LPCXpresso tools and boards So get connected and join the LPCXpresso community Import Example project s lan Build all projects Debug Build BLDC_Sensored Debug 4 be Visit the NXP LPCXpresso website of Clean BLDC _Sensored Debug For information on upgrades etc visit the Code Red Technologies LPCXpresso website gt Debug BLDC_Sensored Debug Visit the Embedded Artists LPCXpresso website To view the forum and to register so that you can post visit www nxp com lpexpresso forum General Information GB Quick Settings Alte nen Import and Export
15. application to the board 2 Connect the LPC LINK to the LPC11D14 SWD interface Use a 10 pos flat cable Also make sure the LPC LINK is connected to the PC via a USB cable 3 Make sure that the LPC11D14 is in a mode where the debugger can take command over the processor When the LPC11D14 is in a low power mode it sometimes prohibits the debugger from connecting to the processor The simplest way is to place the LPC11D14 in ISP bootload mode While resetting the LPC11D14 press the ISP Enable push button a Press both Reset SW3 and ISP push button SW4 b Release the Reset push button c Release the ISP push button d The LPC11D14 is now in ISP bootload mode 4 Make sure that the latest version of the LPCXpresso IDE is installed on the PC 5 Import the sample application software package into the Eclipse workspace This package can be downloaded from the Embedded Artists support page after registering the product The demo application is one of the projects in the sample application package 6 Click on the Program Flash icon from the tool bar see picture below The icon can be at different places depending on window size Ey ee gt H KDeveiop m ES BLDC_Sensored 4 Binaries Includes Bsr config r E linker LPCXpresso is fully activated B cmsis B startu Welcome to LPCXpresso The software is now fully activated and can be used for production LPCXpresso can be used to amp Deb P generate and downlo
16. complement to this document 1 NXP s product page for the LPC11D14 contains links to datasheet user s manual application notes and errata information http Awww nxp com products microcontrollers cortex_m0 lpc11d00 LPC11D14FBD100 html 2 _LPCware is the NXP MCU community where a lot of information is posted about the processors http www lpcware com 3 ARM Processor Documentation Documentation from ARM can be found at http infocenter arm com 4 Information on different ARM Architectures http www arm com products processors technologies instruction set architectures php 5 ARMv6 M Architecture Reference Manual Document identity DDI 0419B http infocenter arm com help index jsp topic com arm doc ddi04 1 9b index htm 6 Cortex M0 Technical Reference Manual Revision r0p0 http infocenter arm com help index jsp topic com arm doc ddi0432c index html 7 LPCXpresso IDE NXP s low cost development platform for LPC families which is an Eclipse based IDE http ics nxp com lpcxpresso 8 LPC1000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC1xxx series of microcontrollers http tech groups yahoo com group pc1000 9 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 o
17. ensors Start logic button Figure 1 LPC11D14 QuickStart Board Block Diagram Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 9 3 2 Board Overview Figure 2 below illustrates the physical board structure 14 segment character LCD UART to USB bridge interface 12C temperature sensor O0000000QQ0Q000Q C11D14 QuickStart Board rev A Embedded Embedded Artists AB 2011 www EmbeddedArtists com 75 76 OOOQOOOOOCOOOC OT O O O O O O O O O O O O O sz B OR26 4 VDDIO VDDCORE m R4 L1 P6 O 2 Vv i A 9 Gers Q aox E Zao 0 0 18 C15 S o aR3 O O RPPOR34 2526 Foacze Doar 30_SN 00 c31 TP5 VIN 3V3 GND TP2 TPL TP3 Dco Di CA C271 R446o G0 R43 Leo7ERicanss o o jpo 30 S a 7 a gOS 19 2u7 4 a a 20 2 8 OF sws 3 GorR11 Gore GOR7 GorR6 oo0oo0oo000000 OOOOD0O0O0000 gi DD S R Eg To TO
18. er names for the LPC11D14 demo application workspace and all sample apps 2011 10 30 21 49 AXF fil gt CY Accel_systick_irq wakeup J CMSISv2p00_LPC1 Ue 4 Select either axf 2 Find project or bin file a directory 3 Find Debug gt i FlashApp subdirectory gt J LCD_ADC_temp_wat wakqup gt a LCD_graphics gt J lib_LPC11U14Dev Filnamn DemoApp ae Figure 12 Browse to File to Download Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 20 E gt a Develop Welcome page LPCXpresso File Edit Navigate Search Project Run Window Help ove el a Bere s SW eesoelu F SY E K Develop amp B Q Wr o Project Ex 2 iii Core Regi Periphera C1 Welcome 5 _ m aB BS file C nxp LPCXpresso_4 0 5_123 Ipcxpresso pages registered htm E 1S Accel_systick_irq wakeup a powered by icode_red ES CMSISv2p00_LPC11Ux LPCXpresso4 is fully activated I DeepPowerDown E DemoApp Welcome to LPCXpresso 4 The software is now fully activated and can be used for production LPCXpresso can be used to pe OO ct roe E x 4 Binaries K Includes B src Debug B DemoApp Debug launch E DemoApp Releaselaunch 155 FlashApp E LCD_ADC_temp_wdt wakeup i Writing 24524 bytes to 0000 in Flash assumed clock 48 0MHz JBL ecxpresso project E LCD_grap
19. face to None and Oscillator to 12 MHz Browse to the hex file to download see picture below File ISP Options Tools Help EiI2SB vES 9 R108 Step 1 Communicators LPC11D14 302 COM Port COM 5 Baud Rate 38400 m Erase block 4 0x004000 0x004FFF Erase block 5 0x005000 0 005FFF Erase all Flash Code Rd Prot Oscillator MHz 12 _ Erase blocks used by Hex File Step 3 Hex File Hex File Browse Modified Unknown more info Step 4 Options 5 E Fill unused Flash Gen block checksums _ Execute Interface Did you read the article Using Flash Memory in Embedded Applications www esacademy com fag docs flash Figure 17 Flash Magic 6 Make sure the advanced options are correctly set Select the Options menu and then select Advanced Options Then select the Hardware Config tab See picture below for correct settings in order for automatic ISP activation to work Also not that both jumpers in JP11 must be inserted on the LPC11D14 QuickStart Board Communications Hardware Config Security Just In Time Code Timeouts Misc Use DTA and ATS to control AST and ISP pin Keep ATS asserted while COM Port open T1 400 ms T2400 ms E Assert DTR and ATS while COM Port open Figure 18 Flash Magic Advanced Options Hardware Config 7 Click the Start button and the application will be downloaded to the target Copyright 2012 Embedded
20. g as illustrated in the figure below System Properties System Restore I Automatic Updates Remote General Computer Name Hardware Advanced Device Manager The Device Manager lists all the hardware devices installed on P5 your computer Use the Device Manager to change the properties of any device Device Manager Drivers Perd Driver Signing lets you make sure that installed drivers are A compatible with Windows Windows Update lets you set up how Windows connects to Windows Update for drivers Driver Signing Windows Update Hardware Profiles F Hardware profiles provide a way for you to set up and store different hardware configurations Hardware Profiles Figure 19 System Settings Dialog Then select the Device Manager and open the Ports list as illustrated in Figure 20 below Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 25 g Device Manager File Action View Help e m EAS RARA 6 IDE ATA ATAPI controllers s IEEE 1394 Bus host controllers gt Keyboards 5 Mice and other pointing devices Monitors Network adapters 8 1394 Net Adapter E9 Broadcom 440x 10 100 Integrated Controller 5 Dell draadloze WLAN 1450 dubbele band WLAN Mipi E8 Wireless G Notebook Adapter with SRX amp Other devices H B PCMCIA adapters 3 Ports COM amp LPT RAUSB Serial Port COM3 s Processors SCSI and RAID controllers Sound
21. hics 1S lib_LPC11U14Dev ES lib_OryxDev 15 ProductionTest E RTC _irq wakeup E Semihosting_ADC_temperature_sleep example projects and announcements Details gt gt Quick 23N E RedC 69 Varia 0 B an invaluable resource for getting help and Start here Tj New project amp Import project s Build all projects Debug amp Build DemoApp Debug of Clean DemoApp Debug Debug DemoApp Debug 3 Quick Settings v So get connected and join the LPCXpresso community To view the forum and to register so that you can post visit www nxp com ipcxpresso forum General Information Visit the NXP LPCXpresso website For information on upgrades etc visit the Code Red Technologies LPCXpresso website Visit the Embedded Artists LPCXpresso website Project and File wizards E Import and Export Console 53 E Problems 0 Memory Hil Red Trace Preview B r oH No consoles to display at this time Build and Settings Debug and Run i 16 Download Page 0 at 0000000 1024 bytes DemoApp NXP LPC11U14 201 Figure 13 LPCXpresso IDE Program Flashing in Progress In case flashing fails an error message like below will be displayed This is an indication that the debugger could not connect to the LPC11D14 The most common reason is that the LPC11D14 was in a low power mode where debug connection is not po
22. imming potentiometer on analog input e 4 capacitive sensors e Onboard reset generation and reset push button e Push button for enabling Bootloader mode of the LPC11D14 e Push button for enabling start logic of the LPC11D14 e Push button for wakeup logic of the LPC11D14 e Possibility to measure current consumption for LPC11D14 core I O and LCD controller parts individually e LED on pin PIOO_7 e SWD JTAG connector 2x5 pos 50 mil 1 27 mm pitch standard SWD JTAG connector Pad for older 2x10 pos 100 mil 2 54 mm pitch JTAG connector e Compact size 110 x 100 mm W x H Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 6 Four layer PCB design for best noise immunity 2 2 ESD Precaution Please note that the LPC11D14 QuickStart Board come without any case box and all components are exposed for finger touches and therefore extra attention must be paid to ESD electrostatic discharge precaution Make it a habit always to first touch the metal surface of the USB connector for a few seconds with both hands before touching any other A parts of the board That way you will have the same potential as the board and therefore minimize the risk for ESD Note that Embedded Artists does not replace boards that have been damaged by ESD 2 3 General Handling Care Handle the LPC11D14 QuickStart Board with care The board is not mounted in a protective case box and is not designed for
23. n general and with NXP s 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 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 8 3 The LPC11D14 QuickStart Board Design This chapter describes the hardware design of the LPC11D14 QuickStart Board 3 1 Block Diagram The block diagram in Figure 1 below gives a quick overview of a design It illustrates the major components in the design The center of the design is the LPC11D14 MCU with integrated segment LCD controller from NXP A number of external peripherals are connected to the LPC11D14 via 12C interface analog inputs and digital 1 0 External 5V power source 3 3V Voltage SWD debug interface regulator Current C gt measurement 8x 14 segment character LCD UART to USB LPC11D14 bridge 12C for internal LCD controller immm 12C E2PROM 12C interface USB interface Reset button Temperature sensor ISP enable 12C interface button Wakeup AIN7 Trimming potentiometer button AINO 3 4 Capacitive s
24. nes linked to here Always check for the latest information version Copyright 2012 Embedded Artists AB
25. nnected to 555 circuit for emulation of an RC timer PIO1_10 AIN6 connected to 555 circuit for emulation of an RC timer PIO1_11 AIN7 connected to trimming potentiometer PIO2_0 to 2_11 Not used PIO3_0 to3_5 Not used LCD signals Connected to 14 segment character LCD Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 11 3 4 Schematic Walkthrough 3 4 1 Page2 The center of the board is the LPC11D14 from NXP It is a MCU based on the ARM Cortex M0 core LPC11D14 has many power modes to save power consumption See datasheet for details It is possible to measure the current consumption of the LPC11D14 both VDDIO and VDDCORE Normally both jumpers in JP5 JP6 are inserted but if removed there are 5 ohm resistors that can be used for measuring the current consumption 10mA current will give a 50mV voltage drop over a 5 ohm resistor On page 3 in the schematic there is also possibility to measure the current consumption to the integrated LCD controller All pins of the LPC11D14 are directly accessible via JP1 JP4 These connection points are placed around the LPC11D14 chip on the board J1 is the SWD interface for LPC11D14 i e debug interface It is the new and smaller footprint standard ARM debug connector It has 2x5 pins in 50 mil pitch There are also pads J2 for the older and bigger debug connector standard the 2x10 pos 100 mil pitch shrouded IDC connector If needed
26. on limits are not exceeded when connecting other devices to the general expansion connectors of the LPC11D14 QuickStart Board Due to the nature of the LPC11D14 QuickStart Board an evaluation board not for integration into an end product fast transient immunity tests and conducted radio frequency immunity tests have not been executed 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 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 Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 7 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 i
27. ple projects and announcements D Quickstart Ed Variables o Breakpoint 1 Select Import and Export Br LPCXpresso users and is an invaluable resource for getting help and gfffice on use of the LPCXpresso tools and boards Project and File wizards j So get connected and join the LPCXpresso community _ 3 Import and Export 2 To Se vere 2 Select Import archived projects zip amie P Import from a project archive zip file h om XML Description tot suppor ni x Visit the Embedded Artists LPCXpresso website ort files into rt projects to archive zip A Export projects and references to archive ip E console X EL Problems J Memory lll Red Trace Preview y Smart Import wizard No consoles to display at this time Build and Settings y Debug and Run y Petes O Figure 5 LPCXpresso IDE Import Archived Project Next browse and select the downloaded zip file containing the archived sample applications Make sure all sub projects are selected see figure below r I Develop Welcome page LPCXpresso _ menu y m E a File Edit Navigate Search Project Run Window Help j BOr Se amp Br iQ ivg ih h T Project Ex 22 if Core Regi Z Periphera O deN 4 1 Browse and select archived project file EGEOCCh i A E iswis E R Develop fe m presso can be used toj
28. put signal R16 is connected to analog input 7 AD7 PIO1_11 There are four capacitive sensors connected to analog input 0 3 PIOO_11 PIO1_0 PIO1_1 PIO1_2 NXP has published an application note about how to use the analog inputs of the LPC1100 family to create capacitive sensors For compatibility with the LPC12D27 QuickStart board there is a 555 timer circuit also This can be used to control an external RC oscillator There is a LED connected to pin PIOO_7 A 1Kohm resistor limits the diode current to about 1 7mA The LED will light when PIOO_7 is high The PIOO_7 pin is a high drive output capable of supplying up to 20 mA See the datasheet for details 3 4 3 Page 4 The UART to USB bridge is based on FT232RL and connects to the LPC11D14 UART Functionality for automatic ISP activation is also included This can be disabled by removing JP11 jumpers which Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 12 controls reset signal and bootload enable signal PIO0_1 The USB interface is protected by ESD protection diode D3 SW3 is a reset push button connected to a voltage supervisor that generates proper reset pulses when needed See datasheet of U7 for details SW4 is an ISP enable push button By pressing SW4 while resetting the LPC11D14 pressing and releasing SW3 the In System Programming ISP mode is entered It is an internal boot loader mode of the LPC11D14 Communica
29. r performance Defaults Receive Bytes 4096 X Transmit Bytes 4096 v BM Options m Miscellaneous Options Select lower settings to correct response problems Serial Enumerator Serial Printer Latency Timer msec 16 Cancel It Power Off m Timeouts Event On Surprise Removal Set RTS On Close Minimum Read Timeout msec Disable Modem Ctl At Startup Minimum Write Timeout msec Figure 23 Advanced USB Serial Port Properties Dialog Finally it is time to test if the USB Serial Port has been successfully installed and configured Start a terminal program Connect to the correct COM port with 38400 bits per second 8N1 no flow control Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 27 45 2 USB Driver Behavior Sometimes the USB COM port does not enumerate properly when the board is connected to the PC This is a known feature of the USB driver If this problem occurs just unplug the board shortly and then plug in again A new COM port that can be accessed properly should be created the second time This problem may occur after every time the PC is started i e is power cycled Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 28 5 Further Information The LPC11D14 microcontroller is a complex circuit and there are a number of other documents with more information The following documents are recommended as a
30. rocessor 4 3 Compiling the Demo Application This section describes how to compile the demo application First make sure that the latest version of the LPCXpresso IDE is installed Secondly import the package containing the demo application into the Eclipse workspace The package can be downloaded as a zip file from Embedded Artists support page after registering the product The zip file contains all project files and is a simple way to distribute complete Eclipse projects Select the mport and Export tab in the Quickstart menu and then Import archived projects zip see figure below Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide jelop Welco File Edit Navigate Search Project Run Window Help a yS SSR SEPE B eere R Project Ex x it Core Regis Peripheral O Welcome 53 B B X I amp file C nxp Ipcxpresso_3 6 pages registered htm powered by Hillcode_red LPCXpresso is fully activated Welcome to LPCXpresso The software is now fully activated and can be used for production LPCXpresso can be used to generate and download applications containing up to 128KB of code into an LPC target Getting Started Please read the getting started guide for step by step instructions to build your first LPCXpresso project LPCXpresso Getting Started Guide LPCXpresso Resources Check the LPCXpresso Support page for new LPCXpresso software releases more exam
31. rough physical handling Connectors can ware out after excessive use The board is designed for evaluation and prototyping use and not for integration into consumer or industrial end products The LPC11D14 QuickStart Board has an eight character LCD Do not exercise pressure on the display glass area That will damage the display Note that Embedded Artists does not replace boards where the LCD has been improperly handled 2 4 Code Read Protection The LPC11D14 has a Code Read Protection function specifically CRP3 see LPC11D14 datasheet user s manual for details that if enabled will make the LPC11D14 impossible to reprogram unless the user program has implemented such functionality Note that Embedded Artists does not replace boards where the LPC11D14 has CRP3 enabled It s the user s responsibility to not invoke this mode by accident 2 5 CE Assessment The LPC11D14 QuickStart Board is CE marked See separate CE Declaration of Conformity document The LPC11D14 QuickStart Board is a class B product EMC emission test has been performed on the LPC11D14 QuickStart Board The USB interface has been in use and also powered the device during the test 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 emissi
32. rt T2cInit uint32 t IZCMASTER 0 r Export 7 Start here SSPInit Import Example project s a Refresh F5 ADOT DE REER ar Build all projects Debug amp Build oled_periph Debug of Clean oled_periph Debug 5 Debug oled_periph Debug 83 Quick Settings amp Project and File wizards Ha Import and Export X Build and Settings E Debug and Run Exclude From build Build Configurations d Make Targets d Run s y Debug As Profile As Clean Selected File s Build Selected File s Team Compare With d oled_init light_init acc_init temp_init getTicks setup sys Tick Elapsed time SysTick_Config SystemCoreClock if SysTick gt CTRL amp 1 lt lt SysTi Replace With b 2 Open directory browser here Binary Utilities Properties Alt Enter Figure 16 LPCXpresso IDE Open Command Prompt Open command prompt here Hil Red Trace Pre Application C ten 4 Convert the axf file to a hex file In this example it is assumed that the sample application is named demo arm none eabi objcopy 0 ihex demo axf demo hex Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 23 5 Start Flash Magic select correct Device COM Port the COM port associated with the target section 4 5 1 describes the USB to UART bridge Set baud rate to 38400 Inter
33. settings Please note that different application programs can use different baudrate settings for the serial channel Other baudrates can also be used depending on specific application Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 26 Also note that it is normally not needed to set the used baudrate at all The driver and FT232R chip will automatically handle different baudrates The setting is only shown here for completeness td USB Serial Port COM3 Properties General Port Settings Driver Details Bits per second Data bits es Parity None o o Stop bits hooo J ow control UART settings Advanced Restore Defaults Advanced settings Cancel Figure 22 USB Serial Port Properties Dialog Select the desired COM port number under the Advanced settings dialog Some terminal programs needs low COM port number for example between 1 and 5 Very often the COM port number for the USB Serial Port is higher than this therefore this need to be changed manually It is common that all COM ports with low numbers are listed as occupied but test to change to a low number anyway Very often it is no problem at all to do so Advanced Settings for COM3 X COM Port COM Port Number Number Setting USB Transfer Sizes Cancel Select lower settings to correct performance problems at low baud rates Select higher settings for faste
34. ssible Make sure the LPC11D14 is in ISP bootload mode and try again Also make sure the small 10 pos flat cable is connected between the LPC11D14 QuickStart Board and LPC LINK Figure 14 LPCXpresso IDE Program Failing to Flash Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 21 There is an alternative way of initiating the program download process From the workspace right click on the axf or bin file found under the Debug subdirectory Then select Binary Utility and Program Flash 24 Develop Welcome page LPCXpresso File Edit Navigate Search Project Run Window Help Dis a ages s SW eeSoten F amp CO ee ae ao Mit Core Regi P Periphera 1 Welcome 3 amp file C nxp LPCXpresso_4 0 5_123 Ipcxpresso pages registered htm 4 i DemoApp gt Binaries l Dae a Meso a Debug powered by code red es 1 Right clickon 54 is fully activated b s DemoApp axf arm le ee DemoApp_Debug_lib Id D fis axf or bin file presso 4 The software is now fully activated and can be used for production LPCXpresso can be used to jemoApp_Debug ynload a 2 pplications containing up to 128KB of code into an LPC target EB DemoApp_ Debug DemoApp bir arted B DemoApp me New read the getting started guide for step by step instructions to build your first LPCXpresso project D makefile D objects mk D sources mk
35. the UART interface UART to USB bridge instead of via the push buttons These are the steps to follow after both jumpers in JP11 have been inserted 1 Download and install Flash Magic http www flashmagictool com Always use the latest version 2 Build the application in the LPCXpresso IDE as mentioned in section 4 3 3 Open a command prompt in the directory containing the axf file This can be done from the Utilities menu see picture below Proje ct Expl SOD alt Core Regist B Peripherals a a Welcome fe main c 3 als 91 return msTicks ees bnc_oled A ap r ail 93 E S disp7seq_rotary Sa GS i2c_eeprom ae ae in woia owe Sse 9Sint main voi a amp leds_joystick E He Lib_CMSISv1p30_LPC13xx x a7 i HS Lib_EaBaseBoard on ne Rese ROTE ay E E ub_FatFs_sp 98 Barone gt oncte Soe E E Lib mcu m 99 int32_t zoff 0 ES mme_fat j 100 P a lB 1S oled_periph he naeste us a 0 EHP Binaries 0a PARRE FE EDET o m Se ee aak New _ BR Includes 7 H E src Open RE Az aa E El cr_startup_Ipc13 Open With gt nR Sa er ot B E Ra uint32_t trim 0 H E Debug E Copy Ctrl C oled_periph Debug le Paste Ctr eeTorn se A 5 Ta oled_periph Release 3 Delete Delete init timerse 0 readme txt Move ES roya saat a UARTInit 115200 L a UARTSendString uint8 t OLED O Quickstart Pan 23 5 69 Val duy Impo
36. tion takes place over the UART Note that it can be useful to enter ISP mode if the application program has programmed the internal PLL s wrong or disabled the debug SWD interface In these situations it can be impossible to get contact with the LPC11D14 via the debug SWD interface The application program can be erased while in ISP mode and a new correct application program can be downloaded The on board 3 3V supply can be powered from the USB interface or from an external 5V supply There is a LED that signals that 3 3V is present on the board There are also two ground pads TP4 TP5 for simplifying connection the ground cable of measurement devices for example oscilloscope probes 3 5 Default Jumper Positions The default positions for the 7 jumpers on the board are shown below Note that some boards are incorrectly delivered with both jumpers in JP11 inserted o _ 000000000000000000 2 lo ol fog LI mi 3 o d 8 LED6 gess GND a o OQ00000000000000 C11D14 QuickStart Board e e P sfs gga Embedded EAER A ee sE 1000000000000 O 76 OOOOOO0O0O00000 JP2 gegm O R26 77 mA R23 Coleg VDDIO VDDCORE R4L1
37. uide Page 5 2 Introduction Thank you for buying Embedded Artists LPC11D14 QuickStart Board based on NXP s LPC11D14 ARM Cortex M0 microcontroller with integrated LCD controller This document is a User s Guide that describes the LPC11D14 QuickStart Board hardware design 2 1 Features Embedded Artists LPC11D14 QuickStart Board with NXP s LPC11D14 microcontroller lets you get up and running quickly The small sized board offers many features that ease your learning curve and speed up your program development The features of the LPC11D14 QuickStart Board are e NXP s LPC11D14 ARM Cortex M0 microcontroller in 100 pin LQFP package with 8 KByte internal SRAM and 32 Kbyte internal FLASH e 12 0000 MHz external crystal The LPC11D14 runs at frequencies up to 50 MHz With on chip PLL the maximum frequency is 48MHz PLL multiplies external crystal frequency by 4 e All LPC11D714 pins available on expansion connector 100 mil 2 54 mm pitch dual rows around processor e UART to USB bridge interface to LPC11D14 UART Mini B USB connector Proper ESD protection Support for automatic UART ISP program download e Flexible powering with on board 800mA 3 3V voltage regulator Can be powered from USB connector JTAG connector if supported by JTAG debugger interface or an external 5V supply e LCD with 8 14 segment characters e 32 Kbit I2C E2PROM for storing non volatile parameters e LM75 I2C temperature sensor e Tr
38. utting a welcome message on the character LCD as well as over the UART The LED on PIO0_7 is toggled and the four capacitive sensors are active Touching one of the capacitive sensors will activate a sub application e Cap sensor 0 Display the value of the trimming potentiometer e Cap sensor 1 Display status of the 3 push buttons SW1 SW2 SW4 e Cap sensor 2 Display the reading from the 12C temperature sensor e Cap sensor 3 Display the results of startup testing the 12C E7PROM 4 2 Program Development This document does not contain information about how to write applications for the LPC11D14 For information about how to get started with program development in general see the LPCXpresso IDE documentation www nxp com lpcxpresso LPCXpresso is a concept from NXP containing both a program development environment LPCXpresso IDE and target boards LPCXpresso boards jointly developed by Embedded Artists The target boards also contain a SWD JTAG interface called the LPC LINK The LPCXpresso IDE is free and well supported on the LPCXpresso forum It is recommended to use for program development on the LPC11D14 QuickStart Board The demo application for the LPC11D14 QuickStart Board can be downloaded from the Embedded Artists support site This application has been developed in the LPCXpresso IDE It is a good starting point for further development since it demonstrates all peripherals of the board and many features of the LPC11D14 p
39. y Press the reset push button The startup message from the demo application should be displayed on the LCD 4 4 3 UART ISP The other alternative for program download is to use In System Programming ISP over the UART Note that this method does not provide any debugging functionality It is only for downloading a binary image often called hex file to the board If debugging via a debugger is needed the SWD interface should be used instead This section describes how to generate the hex file and then download the file to the LPC11D14 QuickStart Board The LPC11D14 MCU samples the state of the PIO0_1 pin immediately after a reset If the pin is low the UART ISP mode is activated By pressing the ISP Enable bootload push button SW4 pin PIOO_1 is pulled low ISP mode is activated this way 1 Press both the ISP Enable push button SW4 and the reset push button SW3 2 Release the reset push button while keeping the ISP Enable push button pressed 3 Then finally release the ISP Enable push button The LPC11D14 is now in UART ISP mode Copyright 2012 Embedded Artists AB LPC11D14 QuickStart Board User s Guide Page 22 The sequence of steps can be done quickly The minimum time between step 2 and 3 is in the region of 200mS which is the reset pulse minimum time from U7 plus the time until the LPC11D14 samples the PIO0_1 pin By inserting both jumpers in JP11 it is possible to control the reset signal and PIO0_1 signal via

Download Pdf Manuals

image

Related Search

Related Contents

Oster CkSTWF-1502-ECP_13EM1 User's Manual    Mode d`emploi - Sears Canada  salamandra – porto - JVP Recuperadores  Manual de Instrucciones  Tabla de contenido  1641 / 1689 : User's Manual  Mode d`exercice : LIBERAL - Ordre des experts internationaux  A User Manual for SPSS Analysis  

Copyright © All rights reserved.
Failed to retrieve file