Home

User`s Manual - Embedded Artists

image

Contents

1. LPC12D27 pin Usage PIO0_0 Not used PIO0_1 UART RX connected to uart to usb bridge PIO0_2 UART TX connected to uart to usb bridge PIO0_3 Not used PIO0_4 Not used PIO0_5 Connected to Start Logic push button PIO0_6 Not used PIO0_7 Not used PIO0_8 Not used PIO0_9 Not used PIO0_10 I2C SCL PIOO_11 I2C SDA PIO0_12 ISP enable push button Connected to LED Active low PIO0_13 Reset PIO0_14 Not used PIO0_15 Not used PIO0_16 Not used PIO0_17 Not used PIO0_18 SWD interface SWCLK alternative position PIO0_19 CMP0_0 connected to capacitive sensor 0 PIO0_20 CMP0_1 connected to capacitive sensor 1 PIOO_21 CMP0_2 connected to capacitive sensor 2 PIO0_22 CMP0_3 connected to capacitive sensor 3 PIO0_23 Connected to 555 circuit for emulation of an RC timer PIO0_24 CMP1_1 connected to trimming potentiometer alternative position PIO0_25 SWD interface SWDIO default position PIO0_26 SWD interface SWCLK default position PIO0_27 Connected to LED Active high PIO0_28 Connected to LED Active high PIO0_29 Connected to 555 circuit for emulation of an RC timer Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide PIO0_30 Not used PIO0_31 Not used PIO1_0 Not used PIO1_1 Not used PIO1_2 SWD interface SWDIO alternative position
2. 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 Import T2cInit uint32 t IZCMASTER 0 r Export 7 Start here SSPInit Import Example project s a Refresh F5 ADOT DE REER Exclude from build Build Configurations d Make Targets d ar Build all projects Debug amp Build oled_periph Debug of Clean oled_periph Debug 5 Debug oled_periph Debug 83 Quick Settings Run As y Debug As Profile As Clean Selected File s Build Selected Fi
3. 2 Introduction Thank you for buying Embedded Artists LPC12D27 QuickStart Board based on NXP s LPC12D27 ARM Cortex M0 microcontroller with integrated LCD controller This document is a User s Guide that describes the LPC12D27 QuickStart Board hardware design 2 1 Features Embedded Artists LPC12D27 QuickStart Board with NXP s LPC12D27 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 LPC12D27 QuickStart Board are Copyright 2012 Embedded Artists AB NXP s LPC12D27 ARM Cortex M0 microcontroller in 100 pin LQFP package with 8 KByte internal SRAM and 128 Kbyte internal FLASH 12 0000 MHz external crystal The LPC12D27 runs at frequencies up to 45 MHz With on chip PLL the maximum frequency is 36MHz PLL multiplies external crystal frequency by 3 All LPC12D27 pins available on expansion connector 100 mil 2 54 mm pitch dual rows around processor UART to USB bridge interface to LPC12D27 UART Mini B USB connector Proper ESD protection Support for automatic UART ISP program download 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 LCD with 8 14 segment characters 32 Kbit I2C E2PROM for storing non volatile parameters LM75 12C
4. 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 g 16 Download Page 0 at 00000C00 1024 bytes DemoApp NXP LPC11U14 201 Figure 12 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 LPC12D27 The most common reason is that the LPC12D27 was in a low power mode where debug connection is not possible Make sure the LPC12D27 is in ISP bootload mode and try again Also make sure the small 10 pos flat cable is connected between the LPC12D27 QuickStart Board and LPC LINK Figure 13 LPCXpresso IDE Program Failing to Flash Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide There is an alternative way of initiating the program download process From the workspace right click on the axf o
5. This section describes how to generate the hex file and then download the file to the LPC12D27 QuickStart Board The LPC12D27 MCU samples the state of the PIOO_12 pin immediately after a reset If the pin is low the UART ISP mode is activated By pressing the ISP Enable push button SW4 pin PIOO_12 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 LPC12D27 is now in UART ISP mode Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 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 LPC12D27 samples the PIOO_12 pin By inserting both jumpers in JP11 it is possible to control the reset signal and PIO0_12 signal via 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 Utilities menu see picture below Build the application in the LPCXpresso IDE as mentioned in section 4 3 Open a command prompt in the directory containing the axf file This can be done from the
6. Verify after programming E Fill unused Flash Browse more info Step 4 Options Step 5 Start Start _ Gen block checksums Execute Did you read the article Using Flash Memory in Embedded Applications www esacademy com fag docs flash Figure 16 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 LPC12D27 QuickStart Board Hardware Config Security Just In Time Code Timeouts Misc Use DTA and ATS to control RST and ISP pin Keep RTS asserted while COM Port open T1 400 ms 12 400 ms E Assert DTA and ATS while COM Port open Figure 17 Flash Magic Advanced Options Hardware Config 7 Click the Start button and the application will be downloaded to the target Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 4 5 Console Interface via UART to USB Bridge The LPC12D27 QuickStart Board contains a UART to USB bridge chip FT232R from FTDI that connects one of the UART channels on the LPC12D27 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 virtu
7. LPC12D27 QuickStart Board User s Guide Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide Get Up and Running Quickly and Start Developing Your Applications On Day 1 iA Embedded Artists EA2 USG 1107 Rev B LPC12D27 QuickStart Board User s Guide Embedded Artists AB Davidshallsgatan 16 211 45 Malmo Sweden info EmbeddedaArtists 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 ow
8. startup testing the 12C E2PROM and the RTC alternating 4 2 Program Development This document does not contain information about how to write applications for the LPC12D27 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 LPC12D27 QuickStart Board The demo application for the LPC12D27 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 LPC12D27 processor 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
9. PIO1_3 Connected to Wakeup push button PIO1_4 AIN6 connected to trimming potentiometer default position PIO1_5 Not used PIO1_6 Not used PIO2_0 Not used LCD signals Connected to 14 segment character LCD 3 4 Schematic Walkthrough 3 4 1 Page2 The center of the board is the LPC12D27 from NXP It is a MCU based on the ARM Cortex M0 core LPC12D27 has many power modes to save power consumption See datasheet for details It is possible to measure the current consumption of the LPC12D27 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 LPC12D27 are directly accessible via JP1 JP4 These connection points are placed around the LPC12D27 chip on the board J1 is the SWD interface for LPC12D27 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 this connector can be mounted SW1 is a start logic push button for waking the LPC12D27 from different low power modes Many pins can have this functionality PIOO_5 h
10. bootload mode While resetting the LPC12D27 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 LPC12D27 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 download 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 Re
11. comparator 1 input 1 PIOO_24 There are four capacitive sensors connected to comparator 0 input 0 3 PIOO_19 PIO0_20 PIO0_21 PIOO_22 There is a RC network R24 R27 C19 for testing the 555 timer functionality mode of comparator 1 If these fixed values cannot be used both jumpers on JP10 can be removed It is then possible to solder the values that are needed on R23 R26 C20 C21 positions See the LPC12D27 Users Manual for details about the 555 timer functionality There are three LEDs connected to the high current capability outputs PIOO_12 active low and PIO0_27 and PIOO_28 active high A 1Kohm resistor limits the diode current to about 1 7mA See the datasheet for details about high current capabilities of these pins 3 4 3 Page4 The UART to USB bridge is based on FT232RL and connects to the LPC12D27 UART Functionality for automatic ISP activation is also included This can be disabled by removing JP11 jumpers which controls reset signal and bootload enable signal PIO0_12 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 LPC12D27 pressing and releasing SW3 the In System Programming ISP mode is entered It is an internal boot loader mode of the LPC12D27 Communication takes pl
12. in designing industrial electronics in 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 LPC12D27 QuickStart Board User s Guide 3 The LPC12D27 QuickStart Board Design This chapter describes the hardware design of the LPC12D27 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 LPC12D27 MCU with integrated segment LCD controller from NXP A number of external peripherals are connected to the LPC12D27 via I2C interface analog inputs and digital I O External 5V power source 3 3V Voltage SWD debug interface regulator Current C gt measurement 8x 14 segment character LCD USB interface UART to USB LPC12D27 bridge 12C for internal LCD controller lgi 12C E2PROM Reset 12C interface button Temperature sensor ISP enable 12C interface button Wakeup AIN7 Trimming potentiomet
13. temperature sensor Trimming potentiometer on analog input 4 capacitive sensors 555 timer circuit Onboard reset generation and reset push button Push button for enabling Bootloader mode of the LPC12D27 Push button for enabling start logic of the LPC12D27 Push button for wakeup logic of the LPC12D27 Possibility to measure current consumption for LPC12D27 core I O and LCD controller parts individually LEDs on pin PIOO_12 active low PIOO_27 and PIO0_28 active high 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 LPC12D27 QuickStart Board User s Guide e Compact size 110 x 100 mm W x H Four layer PCB design for best noise immunity 2 2 ESD Precaution Please note that the LPC12D27 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 LPC12D27 QuickStart Board with care The board is not mounted in a p
14. 1 LIL TIO O O O VU VVUVVVVVG C paczs cza comaRrzs c28 c20 R23 m c2700a 5 REALO VDDIO VDDCORE 4 LED4 R44 CJEJR43 J2 Leo7DEIEaR4s Mor a 30 85 S 3 y7 4 x 26 U7 3 Reset Gori Gore 9 CI m mmm Gar7 Coe 4 Gare Ji 2 Core Rio SL Ty 2 t J N Figure 3 LPC12D27 QuickStart Board Default Jumper Positions 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 trimming potentiometer R16 There is a rework wire on the bottom side of the board to fix this problem Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 4 Getting Started This chapter contains information about how to get acquainted with the LPC12D27 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 outputting a welcome message on the character LCD as well as over the UART The LEDs on PIOO_12 PIO0_27 PIO0_28 are 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
15. ARM can be found at http infocenter arm com Information on different ARM Architectures http www arm com products processors technologies instruction set architectures php 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 Cortex M0 Technical Reference Manual Revision r0p0 http infocenter arm com help index jsp topic com arm doc ddi0432c index html LPCXpresso IDE NXP s low cost development platform for LPC families which is an Eclipse based IDE http ics nxp com Ipcxpresso LPC1000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC1xxx series of microcontrollers http tech groups yahoo com group pc1000 LPC2000 Yahoo Group A discussion forum dedicated entirely to the NXP LPC2xxx series of microcontrollers This group might be more active than the LPC1000 group http tech groups yahoo com group lpc2000 Note that there can be newer versions of the documents than the ones linked to here Always check for the latest information version Copyright 2012 Embedded Artists AB
16. Browse to File to Download Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide Develop Welcome page LPCXpresso a lela x T File Edit Navigate Search Project Run Window Help o Hedla ae FS ER eGhovCa F Se E K Develop amp B Qa l v 9 Project Ex 2 iiit Core Regi Periphera C1 Welcome 2N m aB BS file C nxp LPCXpresso_4 0 5_123 Ipcxpresso pages registered htm E E Accel_systick_irq wakeup a powered by icode_red E CMSISv2p00_LPC11Ux LPCXpresso4 is fully activated 5 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 fi Includes B src Debug B DemoApp Debug launch E DemoApp Releaselaunch 155 FlashApp LCD_ADC_temp_wdt wakeup i Writing 24524 bytes to 0000 in Flash assumed clock 48 0MHz JBL ecxpresso project E LCD_graphics 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
17. PC11U14Dev 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 m DemoApp Debug DemoApp bin NXP LPC11U14 201 Figure 14 LPCXpresso IDE Binary Utility 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
18. RA 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 ar nl Opens Opens property sheet for the current selection sheet for the current selection Figure 20 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 21 below Then select Advanced settings Please note that different application programs can use different baudrate settings for the serial channel Other baudrates can also be used depending on specific application Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 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 fo
19. ace 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 LPC12D27 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 Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 3 5 Default Jumper Positions The default positions for the 8 jumpers on the board are shown below Note that some boards are incorrectly delivered with both jumpers in JP11 inserted 1 355 o o 3 4 HTX FJoaczs PyILeps Hoat GND Ago aie 24 000 C31 TPS VIN 3V3 GND JPT LPC12D27 QuickStart Board rev A 000 O O 1 C19 R24 Embedded Embedded Artists AB 2011 d we rime ODG35r27 www EmbeddedArtists com ra 2 P 204 a O dmr mi
20. al 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 V CP htm search for a FT232R driver for the operating system used on the PC When the LPC12D27 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 dialog as illustrated in the figure below System Properties System Restore 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 Win
21. art of an LPCXpresso target board is connected to the SWD interface of the LPC12D27 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 7 LPC12D27 QuickStart Board connected to LPC LINK via SWD picture show LPC11D14 board 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 LPC12D27 QuickStart Board or use Embedded Artists adapter for the purpose article number EA ACC 040 See Figure 8 below Note that the SWD JTAG debug pod used must support the SWD protocol in order to work Figure 8 SWD JTAG Adapter EA ACC 040 Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 4 4 2 Using LPCXpresso IDE Debugger This section describes how to download an application to the board 2 Connect the LPC LINK to the LPC12D27 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 LPC12D27 is in a mode where the debugger can take command over the processor When the LPC12D27 is in a low power mode it sometimes prohibits the debugger from connecting to the processor The simplest way is to place the LPC12D27 in ISP
22. as been selected for this board SW2 is a wake up push button for waking the LPC12D27 from deep power down mode SW2 is connected to PIO1_3 which is the WAKEUP pin A high to low transition on this pin will wake up the LPC12D27 from deep power down mode PIO1_3 is the only pin that can wake up the LPC12D27 from this mode 3 4 2 Page3 The integrated segment LCD controller is a separate chip inside the LPC12D27 package It is the PCF85 76D chip that is used The MCU communicates with the LCD controller via 12C 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 Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 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 E7PROM 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 input signal R16 can be connected to either analog input 6 AD6 PIO1_4 or to
23. dows 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 18 System Settings Dialog Then select the Device Manager and open the Ports list as illustrated in Figure 19 below Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide Q 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 video and game controllers 1 System devices amp Universal Serial Bus controllers H FH Figure 19 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 20 below go Device Manager E olx File Action View Help e mf RA
24. eck 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 EU T y Sa Se F Debug demo Debug E console 58 Rt Problems Memory A Red Trace Preview t B ri No consoles to display at this time Project and File wizards oa Import and Export B7 Ruild and Settinne S n A demo stc main c demo NXP LPC1114 302 Figure 6 LPCXpresso IDE Build Debug Project When debugging a project make sure the LPC12D27 QuickStart Board is connected to the LPC LINK debugger see section 4 4 for a description 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 LPC12D27 Section 4 4 describes how to download an application binary image hex file in general without debugging it Sometimes an er
25. er button AINO 3 4 Capacitive sensors 555 timer RC circuit Figure 1 LPC12D27 QuickStart Board Block Diagram Start logic button Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 3 2 Board Overview Figure 2 below illustrates the physical board structure 14 segment character LCD UART to USB bridge interface ee ee C JOOOUVOO U3 12C temperature sensor 1000000000000 LPC12D27 QuickStart Board rev A Embedded Artists AB 2011 C19 EIR24 OOGSr27 c21 LigujR26 LPC12D27 current co latinas measurment VODIO VDDCORE O al ore P61 D Ground ra pad MEE R16 trimming potentiometer Capacitive sensors LPC12D27 with pin access connectors Figure 2 LPC12D27 QuickStart Board Overview Copyright 2012 Embedded Artists AB c2700 5 R3400 00 WOT Enabled at Reset Leo7DeJGaRr46 o Ground pad Voltage measurement pads JTAG interface not mounted LPC12D27 QuickStart Board User s Guide 3 3 Usage of CPU Pins The table below lists which LPC12D27 pins that are used in the design Many of the pins are free to use in customer extensions All pins of the LPC12D27 are accessible via 100 mil pitch connectors around the chip on the pcb
26. er s responsibility to make sure EMC emission limits are not exceeded when connecting other devices to the general expansion connectors of the LPC12D27 QuickStart Board Due to the nature of the LPC12D27 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 Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 2 6 Other Products from Embedded Artists Embedded Artists have a broad range of LPC1000 2000 3000 4000 based boards that are very low cost and developed for prototyping development as well as for OEM applications Modifications for OEM applications can be done easily even for modest production volumes Contact Embedded Artists for further information about design and production services 2 6 1 Design and Production Services Embedded Artists provide design services for custom designs either completely new or modification to existing boards Specific peripherals and I O can be added easily to different designs for example communication interfaces specific analog or digital I O and power supplies Embedded Artists has a broad and long experience
27. ie 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 Pees o Figure 4 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 y E Develop Welcome page LPCXpresso _ menu y e E 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 EGEO Cle TDi E R Develop fe m presso can be used toj 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
28. le s Team Compare With d amp Project and File wizards Ha Import and Export 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 X Build and Settings gt Binary Utilities E Debug and Run Properties Alt Enter Figure 15 LPCXpresso IDE Open Command Prompt 2 Open directory browser here 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 LPC12D27 QuickStart Board User s Guide 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 Interface to None and Oscillator to 12 MHz Browse to the hex file to be download see picture below File ISP Options Tools Help lona gvE gt vng O C LPC12027 301 COM Port COM 5 x E Baud Rate aii mi Erase block 4 0x004000 0x004FFF Interface Erase block 5 0x005000 0x005FFF Erase all Flash Code Ad Prot Oscillator MHz 12 Erase blocks used by Hex File Step 3 Hex File Hex File Modified Unknown
29. ners and should be treated as such Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide Table of Contents Copyright 2012 Embedded Artists AB 1 Document Revision History 2 Introduction 2 1 Features 2 2 ESD Precaution 2 3 General Handling Care 2 4 Code Read Protection 2 5 CE Assessment 2 6 Other Products from Embedded Artists 2 6 1 Design and Production Services 2 6 2 OEM Education QuickStart Boards and Kits 3 The LPC12D27 QuickStart Board Design 3 1 Block Diagram 3 2 Board Overview 3 3 Usage of CPU Pins 3 4 Schematic Walkthrough 3 4 1 Page 2 3 4 2 Page3 3 4 3 Page 4 3 5 Default Jumper Positions 3 6 Things to Note about the Hardware 3 6 1 Rework Wire 4 Getting Started 4 1 Demo Application 4 2 Program Development 4 3 Compiling the Demo Application 44 Program Download 4 4 1 SWD Interface 44 2 Using LPCXpresso IDE Debugger 4 4 3 UART ISP 4 5 Console Interface via UART to USB Bridge 4 5 1 FTDI USB Driver 4 5 2 USB Driver Behavior 5 Further Information NNN ODO DO DO Oa A o 11 11 11 12 13 13 13 14 14 14 14 17 17 18 21 24 24 27 28 LPC12D27 QuickStart Board User s Guide 1 Document Revision History Revision Date Description A 2011 11 24 First version of document B 2012 01 13 Added note about CE marking Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide
30. ort 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 LPC12D27 QuickStart Board User s Guide 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 LPC12D27 QuickStart Board User s Guide 5 Further Information The LPC12D27 microcontroller is a complex circuit and there are a number of other documents with more information The following documents are recommended as a complement to this document 1 2 3 4 5 6 7 8 9 NXP s product page for the LPC12D27 contains links to datasheet user s manual application notes and errata information http Avww nxp com products microcontrollers cortex_m0 lpc12d00 LPC12D27FBD100 html LPCware is the NXP MCU community where a lot of information is posted about the processors http www lpcware com ARM Processor Documentation Documentation from
31. r 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 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_L
32. r completeness td USB Serial Port COM3 Properties 9 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 21 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 faster 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 22 Advanced USB Serial P
33. ror 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 LPC12D27 is in a mode where the debugger can take command over the processor When the LPC12D27 is in a low power mode it sometimes prohibits the debugger from connecting to the processor The simplest way is to place the LPC12D27 in ISP bootload mode While resetting the LPC12D27 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 LPC12D27 is now in ISP bootload mode Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 4 4 Program Download There are two ways to download applications in to the LPC12D27 4 4 1 SWD 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 7 below shows how the LPC LINK p
34. rotective case box and is not designed for 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 LPC12D27 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 LPC12D27 has a Code Read Protection function specifically CRP3 see LPC12D27 datasheet user s manual for details that if enabled will make the LPC12D27 impossible to reprogram unless the user program has implemented such functionality Note that Embedded Artists does not replace boards where the LPC12D27 has CRP3 enabled It s the user s responsibility to not invoke this mode by accident 2 5 CE Assessment The LPC12D27 QuickStart Board is CE marked See separate CE Declaration of Conformity document The LPC12D27 QuickStart Board is a class B product EMC emission test has been performed on the LPC12D27 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 us
35. sources 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 gy Import archived projects zip Import exisiting projects o BLDC Sensored NXP LPC1114 301 Figure 9 LPCXpresso IDE Program Flash Icon The next step is to select which processor to download to Select LPC1227 301 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 tha
36. suppor MIEC Import files into ly Export projects to archive zip DE port projects and references to archive zi 2a Smart Import wizard Build and Settings q t O LPC1ID14 4 Figure 5 LPCXpresso IDE Import Archived Project Window Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 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_LPC 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 Ch
37. t LPC12D27 does not exist as a separate item in the list This is because the LPC12D27 internally consists of two chips one LPC1227 and one PCF8576D Copyright 2012 Embedded Artists AB LPC12D27 QuickStart Board User s Guide 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 10 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 folder names for the LPC12D27 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 11
38. 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 LPC12D27 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 example 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 am

Download Pdf Manuals

image

Related Search

Related Contents

Origin Storage LN-X220 rechargeable battery  Benutzerhandbuch Nord Electro 4d    千秋育子&大東和彦シェフの 『アート&ウィット』特別ナイトのお知らせ  SSP series  TCL-19P3 取扱説明書    Manual del usuario  towbox - Norauto  

Copyright © All rights reserved.
Failed to retrieve file