Home
LPC-P1227 development board USER`S MANUAL
Contents
1. Thank you for purchasing LPC P1227 development board assembled by OLIMEX LTD Page 2 of 25 OLIMEXO 2012 LPC P1227 User s Manual Table of Contents 1 Introduction to the Chapter issccicccasscavecassssaacedecsvacsencssscacecessenrsdtvaccuaseusdecasssueaivassennvectsaeacseasubaveds 5 A rH NN 5 PA O n 6 SETTING UP THE LPC P1227 BOARD none caseo arse n ceo reno ane eue caca 2 Introduction to the chapter rien esa eio tinere gr eue a bros eUR avri ep E VE GU enana Dc criado 7 2 1 Electrostatic WarDIlg id iii 7 2 2 ROQUES RA 7 2 3 Powering AAA A A ON 7 2 4 Prebuilt SOECW IE ii AAA A 8 LPC P12277 BOARD DESCRIPTIO No 3 Introduction to the Chapter siscssisssdsscsersscesstiaacsassssuceatecaccncdeabsiassiuncsaansssacersuapeutiornaeassiumsorsavernabe 9 3 1 Layo t top VIEW rd dada 9 THE LPC1227FBD64 MICROCONTROLLER ccccccsssssscccssccccscccscscsoeee LO 4 Introduction to the Chapter ss scsssissccsississcsssvsivcssscrsaassdussisaavasccesssdecvsivedeatesasussaascvssseuasiossseabadass 10 4 1 The microcontroller ccccccccccsssssscscssscsssscsssssccssssscsssssssssccescccesssssssscscsscesesssesssssesccesssees 10 CONTROL CIRCULLEY iiec esoctedeteoe dco eco ote e tos aeneae a eos eiue pec corna sa ve sese eeoe eost L2 5 Introduction to the Chapter scssssccssdscssvassscossedtesoissendiecassvascvastindvsvanansvabacsadvesselesssavanesnsanssausavoass 12 6 Introd
2. LPC P1227 development board USER S MANUAL Initial release March 2012 Designed by OLIMEX Ltd 2011 lead free All boards produced by Olimex LTD are ROHS compliant OLIMEXO 2012 LPC P1227 User s Manual Disclaimer 2012 Olimex Ltd Olimex logo and combinations thereof are registered trademarks of Olimex Ltd Other terms and product names may be trademarks of others The information in this document is provided in connection with Olimex products No license express or implied or otherwise to any intellectual property right is granted by this document or in connection with the sale of Olimex products Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder The product described in this document is subject to continuous development and improvements All particulars of the product and its use contained in this document are given by OLIMEX in good faith However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended only to assist the reader in the use of the product OLIMEX Ltd shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product
3. SWD 2 will be used Default positions are CLK DEF and DIO DEF MCU E Page 18 of 25 OLIMEXO 2012 LPC P1227 User s Manual If open disables the supply on the processor Default state is closed 3 3V E If open disables the board s 3 3V power supply Default state is closed 6 8 LCD Display Nokia 3310 LCD display 84x48 pixels 38x35 mm 6 9 Additional hardware components The components below are mounted on LPC P1227 but are not discussed above They are listed here for completeness Buzzer 5 buttons RST button 2LEDs power on LED Page 19 of 25 OLIMEXO 2012 CHAPTER 7 LPC P1227 User s Manual MEMORY AND BLOCK DIAGRAM 7 Introduction to the chapter Below is located the block diagram of the processor and on the next page you can find a memory map for this family of processors It is strongly recommended to refer to the original datasheet released by NXP for ones of higher quality LPC122x TEST DEBUG INTERFACE ARM CORTEX MO IRC OSCILLATORS MICRO DMA CONTROLLER XTALIN XTALOUT RESET CLOCK GENERATION Ol POWER CONTROL SYSTEM FUNCTIONS clocks and controls 32 48 64 80 B 96 128 kB M ROM FLASH 4 8 ki SRA slave AHB LITE BUS DJ slave D slave HIGH SPEED GPIO ports GPIO SCK E C 3 MISO SSP SPI MOSI RXDO ccu mm gt DTRO DSRO CTSO DCDO RIO RTSO T UARTI Es SpA SDA c RXD1 TXD1 pA 32 bit COUNTER TIMERO 4 x C
4. C000 181 system control 0x4004 8000 16 SSP 0x4004 0000 15 d Sand C000 14i PMU 0x4003 8000 9 13 reserved 0x4002 4000 0x4002 0000 0x4001 C000 0x4001 8000 0x4001 4000 0x4001 0000 0x4000 C000 0x4000 8000 0x4000 4000 0x4000 0000 32 bit counter timer 1 32 bit counter timer O 16 bit counter timer 1 16 bit counter timer O 0x0000 00CO 0x0000 0000 002aaf270 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 8 SCHEMATICS 8 Introduction to the chapter In this chapter are located the schematics describing logically and physically LPC P1227 8 1 Eagle schematic LPC P1227 schematic is visible for reference here You can also find them on the web page for LPC P1227 at our site http www olimex com dev LPC P1227 html They are located in HARDWARE section The EAGLE schematic is situated on the next page for quicker reference Page 22 of 25 OLIMEXO 2012 la v XLa gra e dcc M ipM c c pc POWER SUPPLY IMPX ADJ LPC P1227 User s Manual DEBUG INTERFACE 03 3 Do e resis 5 DUDC Y 136 I l l I l l l l T l n o Sal UDDCIOP XTALIN XTALOUT PIQ _12 CLKOUT CT16B _CAP 30_CAPG PIO8 9 TX PIO8 8 RX PIO0 4 DS HDSRO 2 DCD8 SWCLK_ALT SWCLK_ DEF SWCLK_DEF SWOIO_DEF SHDIO ALT SUDIO SUDIO_DEF 4h DIO
5. AP 32 bit COUNTERITIMER1 4 x MAT 4 x CAP 16 bit COUNTER TIMERO 46 bit COUNTER TIMER 4 C UARTO RS 485 2 x MAT 2x CAP 2 x MAT 2 x CAP AHB APB CRC BRIDGE ENGINE C e E COMPARATORO 1 gt WINDOWED WDT gt IOCONFIG E RTC e 32 kHz OSCILLATOR gt SYSTEM CONTROL MICRO DMA REGISTERS Grey shaded blocks represent peripherals with connection to the micro DMA controller 002aaf269 CLKOUT ADI 7 0 ACMPO I 3 0 ACMP1_1 3 0 ACMPO O ACMP1 O VREF CMP RTCXOUT RTCXIN Page 20 of 25 OLIMEXO 2012 7 1 Memory organization 4 GB 8 kB SRAM LPC1225 6 7 4kB SRAM LPC1224 LPC122x LC OxFFFF FFFF reserved private peripheral bus reserved AHB peripherals reserved APB peripherals reserved reserved reserved 0xE010 0000 OxE000 0000 0x5008 0000 0x5000 0000 0x4008 0000 0x4000 0000 Ox1FFF 2000 Ox1FFF 0000 Ox1FFE 2000 Ox1FFE 0000 Ox1FFC 4000 Ox1FFC 0000 0x1000 2000 0x1000 1000 0x1000 0000 0x0002 0000 0x0001 8000 0x0001 4000 0x0001 0000 0x0000 C000 0x0000 8000 0x0000 0000 Page 21 of 25 LPC P1227 User s Manual 0x5007 0000 7 CRC 0x5003 0000 2 GPIO PIO2 0x5002 0000 1 GPIO PIO1 LI 0x5001 0000 0 1 GPIO PIOO 0x5000 0000 APB peripherals 0x4008 0000 22 31 reserved 0x4005 8000 211 comparator 0 1 0x4005 4000 201 RIC 0x4005 0000 19 micro DMA registers 0x4004
6. Introduction to the chapter Here you can find information about reset circuit power circuit and quartz crystal locations 5 1 Reset LPC P1227 reset circuit includes R23 10 KQ R24 330 Q LPC1227FB064 pin PIN40 PIOO 13 RESET and a RESET button 5 2 Clocks 12 MHz quarz crystal Q1 is found at pins 1 and 2 of the processor Real time clock RTC Q2 is connected to pins 57 and 58 of the processor Page 12 of 25 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 6 HARDWARE 6 Introduction to the chapter In this chapter are presented the connectors that can be found on the board all together with their pinout Proto area is shown Jumpers functions are described Notes and info on specific peripherals are presented Notes regarding the interfaces are given 6 1 PWR Connector fF 6 2 SWD1 connector The 20 pin SWD Serial Wire Debug connector provides the interface for SWD programming debugging The pinout can be found in the table below SWD1 Connector Signal Name Signal Name Page 13 of 25 OLIMEXO 2012 LPC P1227 User s Manual 6 3 SWD2 Header Note It doesn t have connector mounted if you wish to use 20 pin SWD debugger you have to mount connector yourself Signal between the two SWD interfaces is controlled by CLK ALT CLK DEF and DIO ALT DIO DEF If you set them in ALT positions the SWD2 would be enabled SWD2 Header Signal Name Signal Name pe te EAE SWDIO Not connected 6 4 UEXT
7. LPC P1227 board has UEXT connector and can interface Olimex s UEXT modules For more information on UEXT please visit http www olimex com dev OTHER UEXT pdf Page 14 of 25 OLIMEXO 2012 LPC P1227 User s Manual Signal Name GND Page 15 of 25 OLIMEXO 2012 LPC P1227 User s Manual 6 5 Pads on the proto area For your convenience the pads are named individually near each of them Please take extra care about the numbering but consider that there might be offset For full list of pin functions check on the processor data sheet 3 3V 3 3V 3 3V row of pads SWCLK DEF PIOD 26 zs sez swro ptr 100 25 ms ms rem pem Page 16 of 25 OLIMEXO 2012 LPC P1227 User s Manual oma me rues voros jme res ma Jem mes 7 beret se me eere 6 6 RS232 Null modem connector Page 17 of 25 OLIMEXO 2012 LPC P1227 User s Manual 6 7 Jumper description Note that the jumper configuration is also printed on the back of the board ISP E This jumper controlls the possibility of the ISP mode via UARTO RS232 supported by the processor It should be moved together with RST E Default state is open RST E When closed together with ISP E enables ISP programming via UARTO Default state is open CLK ALT CLK DEF and DIO ALT DIO DEF ae ET These jumpers should be moved together and control whether SWD 1 or SWD 2 interface is used for programming When in position ALT
8. STATE DESCRIPTION mue LPC122x UDD is not supplied LPC122x UDD is supplied save Board 3 3U Power Supply is enabled Board 3 3U Power Supply is disabled RST E UART RS232 is enabled RST E UART RS232 is disabled DIO_ALT DIO_DEF SWD pins jumpers default state o10_eLT 010_0EF mas SUD pins Page 24 of 25 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 9 REVISION HISTORY 9 Introduction to the chapter In this chapter you will find the current and the previous version of the document you are reading Also the web page for your device is listed Be sure to check it after a purchase for the latest available updates and examples 9 1 Document revision Pages 9 2 Web page of your device The web page you can visit for more info on your device is http www olimex com dev LPC P1227 html There you can find more info and some examples ORDER CODES LPC P1227 completely assembled and tested How to order You can order to us directly or by any of our distributors Check our webpage http www olimex com for more info Page 25 of 25
9. Serial Wire Debug SWD X System tick timer e Memory x 8kBSRAM x 128 kB on chip flash programming memory x In System Programming ISP and In Application Programming IAP via on chip bootloader software x Includes ROM based 32 bit integer division routines Clock generation unit X Crystal oscillator with an operating range of 1 MHz to 25 MHz Xx 12 MHz Internal RC IRC oscillator trimmed to 1 96 accuracy that can optionally be used as a system clock X PLL allows CPU operation up to the maximum CPU rate without the need for a high frequency crystal May be run from the system oscillator or the internal RC oscillator X Clock output function with divider that can reflect the system oscillator clock IRC clock main clock and Watchdog clock X Real Time Clock RTC Digital peripherals X Micro DMA controller with 21 channels Page 10 of 25 OLIMEXO 2012 x LPC P1227 User s Manual CRC engine Two UARTs with fractional baud rate generation and internal FIFO One UART with RS 485 and modem support and one standard UART with IrDA SSP SPI controller with FIFO and multi protocol capabilities I2C bus interface supporting full I2 C bus specification and Fast mode Plus with a data rate of 1 Mbit s with multiple address recognition and monitor mode I2C bus pins have programmable glitch filter 55 General Purpose I O GPIO pins with programmable pull up resistor open drain mode programmable digital inpu
10. _ALT DIO T 0pen D SHCLK_ALT iis Tuner MOSI Close SHCLK_ALT MISO SSEL SCK RST ISP E SDA SCL CTSO FRIO sDCDO 3DSRO DTRO TXDO RXDO RTSO BUZZER hs E HAKE UP ba_ SWDIO_ALT x COMPARATOR REFERENCE OPTIONAL B39 REF CHP NA 1 AP431SAG 7 rra al DTE Dev ice DTE_CD DTE RD DTE_TD DTE_DTR w N O DTE_DTR fs PB1221P Esta al UR Sa Designed by OLIM Page 23 of 25 LPC P1227 Rev B EX ITE 2011 http uuu olimex com _ALT ALT SWCLK CLK SHDIO SHDIO _ RST Swi TXDO RXDO 4RTSO 4CTSO DTRE DSRO HDCDO HRIO ISP_E RST OLIMEXO 2012 LPC P1227 User s Manual 8 2 Physical dimensions Note that all dimensions are in inches 200000 o0o0oo 15000000000 aC DACs ISP RESET np LEA T Ei 3 fit R4 1 Eze A n in RST E jed J ci2C esc An JEJE pa I EP o9 o9 o9 o9 nO Lo ENT iu Qo LIU talis C24 CE A 5 R17 R18 Cotati t C oL E JE JE FUEN a All dimensions are in inches
11. apo A o Qni dux dra bas e Ep ERR E CEU a 24 CHAPTER d e pn 25 REVISION HISTORY oerte a 25 9 Introduction to the Chapter sssi icsscssexsicconctasvcesssvaadsvusconsosandsesnssousncatesendcovaveunsecansiveasesasasuassnousus 25 9 1 D cuni nt reviSIUlha coetu p FU en VA IS PHAR RU I Ee COEUR OPERE RUNDE cias 25 9 2 ENS ligiaure T 25 Page 4 of 25 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 1 OVERVIEW 1 Introduction to the chapter Thank you for choosing the LPC P1227 development board from Olimex This document provides a User s Guide for the Olimex LPC P1227 development board As an overview this chapter gives the scope of this document and lists the board s features The document s organization is then detailed The LPC P1227 development board enables code development of applications running on the LPC1227 Cortex MO microcontroller manufactured by NXP Semiconductors 1 1 Features e MCU LPC1227 Cortex MO up to 45Mhz 128 kB Flash 8kB SRAM 2 UARTS SPI I2C 10 bit ADC e RS232 e Buzzer NOKIA 3310 LCD e 12 MHz crystal resonator e Power supply circuit Power on LED Debug interface SWD Serial Wire Debug UEXT connector Two user leds e Three user buttons Reset button e Prototype area FR4 1 5 mm soldermask component print e Dimensions 80x50mm 3 15 x 1 97 Page 5 of 25 OLIMEXO 2012 LPC P1227 User s Manual 1 2 Or
12. element 2 2 Requirements In order to set up and program the LPC P1227 the following items are required A source of power the board can be powered through the PWR jack or through the SWD 1 SWD 2 interface n order to program the board you will need a programmer that supports SWD Serial Wire Debug interface Also a host based software toolchain is required in order to program debug the LPC P1227 board There are also a number of ready IDEs available like IAR Embedded Workbench Rowley CrossWorks Code Composer Studio etc The only low cost Olimex option at the time writing this guide is available if you use Rowley s Crossworks IDE You can get any of our ARM USB debuggers ARM JTAG SWD adapter As of moment of writing this guide OpenOCD 0 5 0 doesn t support SWD flashing 2 3 Powering the board Provide between 5V and 9V to the board s PWR jack Page 7 of 25 OLIMEXO 2012 LPC P1227 User s Manual OR Connect your SWD debugger 2 4 Prebuilt software On powering the board the PWR LED should turn on LED1 and LED2 should start blinking alternatively The LCD display shows 6 lines of text You can connect the board to a PC via RS232 Null modem interface Then start your favourite terminal program at 115200 8 N 1 and reset the board A line with the statuses of 4 buttons USER3 USER2 USER1 WAKE UP and ISP E jumper appears Press the buttons to see their state changing or change the jumper position Pressing escape
13. ganization Each section in this document covers a separate topic organized as follow Chapter 1 is an overview of the board usage and features Chapter 2 provides a guide for quickly setting up the board Chapter 3 contains the general board diagram and layout Chapter 4 describes the component that is the heart of the board the LPC1227FBD64 microcontroller Chapter 5 is an explanation of the control circuitry associated with the microcontroller to reset Also shows the clocks on the board Chapter 6 covers the connector pinout peripherals and jumper description Chapter 7 shows the processor diagram and memory map Chapter 8 provides the schematics Chapter 9 contains the revision history Page 6 of 25 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 2 SETTING UP THE LPC P1227 BOARD 2 Introduction to the chapter This section helps you set up the LPC P1227 development board for the first time Please consider first the electrostatic warning to avoid damaging the board then discover the hardware and software required to operate the board The procedure to power up the board is given and a description of the default board behavior is detailed 2 1 Electrostatic warning LPC P1227 is shipped in a protective anti static package The board must not be exposed to high electrostatic potentials A grounding strap or similar protective device should be worn when handling the board Avoid touching the component pins or any other metallic
14. t glitch filter and programmable input inverter Programmable output drive on all GPIO pins Four pins support high current output drivers All GPIO pins can be used as edge and level sensitive interrupt sources Four general purpose counter timers with four capture inputs and four match outputs 32 bit timers or two capture inputs and two match outputs 16 bit timers Windowed WatchDog Timer WWDT IEC 60335 Class B certified Analog peripherals x x e Power x lt x xXx CX x x One 8 channel 10 bit ADC Two highly flexible analog comparators Comparator outputs can be programmed to trigger a timer match signal or can be used to emulate 555 timer behavior Three reduced power modes Sleep Deep sleep and Deep power down Processor wake up from Deep sleep mode via start logic using 12 port pins Processor wake up from Deep power down and Deep sleep modes via the RTC Brownout detect with three separate thresholds each for interrupt and forced reset Power On Reset POR Integrated PMU Power Management Unit Unique device serial number for identification e 3 3 V power supply For comprehensive information on the microcontroller visit the NXP web page for a datasheet At the moment of writing the microcontroller datasheet can be found at the following link http ics nxp com products Ipc1000 datasheet lpc122x pdf Page 11 of 25 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 5 CONTROL CIRCUITY 5
15. uction to the chapter iere e regnet pae dino aras PAYER VR S ATA V dE UAE ERA PERR AER eda 13 O6 LPWECCOBBPCIUOE eo open ira UBER YA SRDQ PRESE NO 13 6 2 SWDTtCOBHECIUE Gern bed tuto Ma dr ea E eene boiddses rivo tutes een Ebo dd 13 OA E E TE TEET 14 S DN D A E EEE ES E E ES E tu EV E AS 14 6 5 Pads on th Proto ar sisssissscsssssisscosess ssstossssssoosssrsosopsdsssrovssnesdsssssossos soos avdvsssrs sossessss siss 16 6 6 RS232 Null modem connector sesessosssessessosssossossocesossossoessossosscessossoeesessossoesssossssossesosseso 17 6 7 Jumper descripti orouo eripe dn hbro A Sea eu du EPA FAVRE APR EUN Mao vlde ent yu 18 G S EC DIA DIES PLAY nata ias 19 Page 3 of 25 OLIMEXO 2012 LPC P1227 User s Manual 6 9 Additional hardware componentts eere cente eee esee e seen seen stint tns etta s etas s etta eset ena sooo 19 Lola Eu DO Hc assis asses Sew a 20 MEMORY AND BLOCK DIAGRAM ee eee ee eroe one eee eee eese eee teet e ee eteno 20 7 Introduction to the cBapteF oio penc ebdsdeteseeuus A ob doosssneussavasdvasdeatscebsvecenea ied 20 7 1 Memory OFGANIZAUOM T M 21 CHAPTER sti 22 SCHEMATICS o 22 8 Introduction to the chapter ira ees t treinta negas lebe Y aereo RENE CHAR n EY a eae ER HR Lo D Elo b Ad rvi a 22 8 1 Eaple Schematic eiue ioa nio A idola ira ox AA A d NR bue DE ERR en 22 8 2 Physical ditienslons A vro qa d
16. will disconnect the RS232 Page 8 of 25 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 3 LPC P1227 BOARD DESCRIPTION 3 Introduction to the chapter Here you get acquainted with the main parts of the board Note the names used on the board differ from the names used to describe them For the actual names check the LPC P1227 board itself 3 1 Layout top view SWD interface Buzzer WAKE UP button LED1 amp 2 ISP and RST buttons Folia eei a Pats Rog hs Li D xv a Dre e mid E ASA a PIS DILE retten Pins PALS 20 EL a nm PEZ BAS da rif i Mii QETHEX COM DEV lt C gt xu AS ei EET i Vase E je en ar A IL CUB IND RS232 female i i E aa Wate x PWR ISP EJumper RST EJumper USER buttons LCD Prototype area Page 9 of 25 OLIMEXO 2012 LPC P1227 User s Manual CHAPTER 4 THE LPC1227FBD64 MICROCONTROLLER 4 Introduction to the chapter In this chapter is located the information about the heart of LPC P1227 its microcontroller The information is a modified version of the datasheet provided by its manufacturers 4 1 The microcontroller Main processors features e Processor core X ARM Cortex MO processor running at 45 MHz one wait state from flash or 30 MHz zero wait states from flash The LPC122x have a high score of over 45 in CoreMark CPU performance benchmark testing equivalent to 1 51 MHz X ARM Cortex MO built in Nested Vectored Interrupt Controller NVIC X
Download Pdf Manuals
Related Search
Related Contents
102 - Troubleshooting DAT drives 96.404 - Question Jean-Jacques Miserez JCB 160 170 170HF 180T 180THF Copyright © All rights reserved.
Failed to retrieve file