Home

Chip1768 User's Manual

image

Contents

1. The software controllable MOSFET named as SoftConnect Switch offers the possibility to pull up the USB_D signal with a 1 5kQ resistor R1 Pulled high USB_D signals the USB host that a Full Speed Device is present As the host pulls both data lines down using a 15k0 resistor the smaller value of R1 overrides the host s pull down 14 Chip1768 3 FUNCTIONAL DESCRIPTION The signal USB_CONNECT from the schematic above is named USB_ON on Chip1768 s schematic It is accessigle through GPIO P2 9 of LPC1768 When Chip1768 shall be used as a bus powered USB device some additional facts have to be considered Attention has to be payed to the maximum current a bus device can draw out of the USB host Specification restricts current to 100mA called low power respectively 500mA high power A current higher than 100mA has to be requested by the device though This request is done in software by the USB stack implementation Additionally a fuse should be implemented in the USB circuit limiting maximum current to 500mA Ferrite elements should also be considered as there is a good chance of high frequency noise overlaying the USB s 5V voltage supply At least the supply voltage of USB is specified rather weak and voltages from 4 4 5 25V are allowed 3 7 PWM The NXP LPC1768 offers pulse width modulation with up to six independent channels Chip1768 offers this feature at P21 P26 The PWM outputs can be
2. 32 Bit CPU up to LOOMHz Main Core frequency 512kB program memory Flash 2x32kB RAM Supports ARM Cortex ETM Trace 10 100MBit ethernet RMI interface DMA controller 12 Bit Analog Digital Converter 8 channels 10 Bit Digital Analog Converter 1 channel 4 32 Bit width timers 6 PWM channels 1x Motor Control PWM 8 DMA channels USB 2 0 interface with integrated transceiver CAN2 0B with 2 channels 4x UART 2x SSP 1x SPI 3x PC 1x PS Interface for quadrature encoder Low Power RTC Unique ID internal 4MHz RC oscillator Chip1768 2 FUNCTIONS 2 Functions NXP s LPC1768 offers 100 pin connectors in an LQFP package 70 of them being GPIOs Gen eral Purpose Input Output The compact form factor of Chip1768 and its limited number of GPIOs made it necessary to make a selection which of the LPC1768 s GPIOs are used Most of the mbed1768 s GPIOs were kept unchanged in Chip1768 however some enhancements were made The differences between Chip1768 and mbed1768 were discussed in chapter 2 3 Following the possibilities of the Chip1768 module e 28x GPIOs 26 of these with ability to generate interrupts e 2x PC e 1x PS duplex capable e 2x SSP 1x SPI 2x CAN 1x Full Speed USB e 1x 10 100MBit Ethernet 6x Match outputs for timers 4x Timer2 2x Timer3 e 4x Capture inputs for timers each 2x for Timer2 and 3 e 4x UART from which 1 with optional handshake signals DTR DSR DCD and CTS 8x inputs for Anal
3. By using the signals DTR or CTR hardware handshake of the serial interface an reset and or LOW state at ISP could be automatically issued FlashMagic supports this trick Sh Flash Magic NON PRODUCTION USE ONLY 2 File ISP Options Tools Help 9 9 1083 Step 1 Communications Step 2 Erase LPC1768 Erase block 0 Ox000000 0x000FFF Erase block 1 0X001000 0x001FFF COM Port COM 23 y Erase block 2 0 002000 04002FFF I Erase block 3 0x003000 0x003FFF Baud Rate 115200 Y Erase block 4 Ox004000 0x004FFF Interface None ISP Erase block 5 0005000 0x005FFF 2 _ Erase all Flash Code Rd Prot Oscillator MHz Erase blocks used by Hex File Advanced Options Communications Hardware Config Securty Just In Time Code Timeouts Misc Y Use DTR and ATS to control RST and ISP pin E Keep RTS asserted while COM Port open T1 50 ms T2 100 ms E Assert DTA and RTS while COM Port open Figure 1 FlashMagic for communicating with the built in bootloader 3Most of the USB to serial converters like from FTDI only support one of these signals so either reset or the ISP state can be generated automatically 17 Chip1768 4 APPLICATION NOTES 4 2 Editing mbed programs 4 2 1 Using Ethernet Chip1768 doesn t provide a dedicated control processor like the Magic Box on mbed1768 Mbed stores a uni
4. MISO MAT2 2 77 P7 PO 7 19 TX_CLK SSP1 SCK MAT2 1 78 P8 PO 6 PS RX_SDA SSP1 SSEL MAT2 0 79 P9 PO O CAN1 RD1 UARTS TX C1 SDA 46 P10 CAN1 UART3 RX 12C1 SCL 47 P11 0 15 UART1 DCD SSPO MOSI SPI MOST 60 P12 UARTI CTS SSPO MISO SPI MISO 61 P13 UARTI SSPO SCK SPI SCK 62 P14 0 16 UART1 RXD SSPO SSEL SPI SSEL 63 P15 P0123 A DO0 0 PS RX_CLK CAP3 0 9 P16 P0124 A DO 1 PS RX_WS CAP3 1 8 P17 P0125 A DOl2 PS RX_SDA UART3 TXD 7 P18 PO 26 A DO 3 DAC out UART3 RXD 6 P19 P1 30 Veus A DO 4 21 P20 P131 SSP1 SCK A DO 5 20 P21 P2 5 PWM1 6 UARTI DTR TRACEDATA 0 68 P22 P2 4 PWM1 5 UARTI DSR TRACEDATA 1 69 P23 P213 PWM1 4 UARTI DCD TRACEDATA 2 P24 P22 PWM1 3 UARTI CTS TRACEDATA 3 73 P25 PWM1 2 UARTI RXD 74 P26 P20 PWM1 1 UART1 TXD 75 P27 P0111 UART2 RXD I C2 SCL MAT3 1 49 P28 0 10 UART2 TXD I C2 SDA MAT3 0 48 P29 PO 5 FS RX_WS CAN2 TD CAP2 1 80 P30 P014 PS RX CLK CAN2 RD CAP2 0 81 D P0129 USB D 29 D P0130 USB D 30 RX Ethernet RX TX TX IF Po 2 UARTO TX A DOo 7 98 IF Po 3 UARTO RX A DO 6 99 ISP 2 10 41 Chip1768 2 FUNCTIONS 2 3 Differences between Chip1768 and mbed1768 USB Mbed1768 implements two USB interfaces a visible one with mounted mini USB connector and a second one which is simply bro
5. gy ZLS ao SJOJOSA 1 11 SANO aj q 9gz 2 2 aseds Aiowaw 0000 0001X0 9 05 WY 9 815 8901 gy z 0008 0001x0Z panieses 0000 4441x0 WOH 1009 9 8 x 0006 4441 ponasa Z 0009 2006 8191 JO S D0IQ Z WWHS SHY 000p 90020 88 2 0009 6002X0 Old XI 0000 vooz 0 5 0 _ 0000 00 2x0 0000 00 2x0 Z p A19s8 1 Z 0000 000rx0 0000 800rX0 E 0000 007x05 Ela Z l 0000 Suisseuppe sere pueq yq eioydued 0000 00ppX0 2 881 0000 000Sx0 Pace gang sjesoued gHV 0000 020Sx0 5 501 NN 2 9 989 2 0000 0003X0 a snq jesoudied ayeaud 0000 0O103X0 2 56 2 89 91 OF Ionuoo uuj ls s dass 4433X0 597 aoeds Jouwau 992101 sje1aydiiad 0000 0000X0 0010 0000X0 Le 0000 800pX0 0008 800pX0 0009 800px0 0000 600pX0 0005 600pX0 0008 600pX0 0009 600pX0 0000 V00rx0 0005 V00rx0 0008 V00rX0 0009 V00rX0 0000 g00px0 000 800rx0 0008 g00px0 0009 800rX0 0000 900pX0 0009 400px0 0000 OLOpx0 Quelle Handbuch zum NXP LPC1768 Seite 13 21 5 ADDENDUM Chip1768 5 2 Dimensional Drawing 56 78mm 22 86mm OOOOOOOOOOOOOOOOOOOO 26 08mm 2 04mm 50 80mm 20x2 54mm gt 22
6. line positive TD Output Ethernet transmit line negative RD Input Ethernet receive line positive RD Input Ethernet receive line negative IF Input receive line for Bootloader mode IF Output transmit line for Bootloader mode ISP Input receive line for Bootloader mode 2 2 Table of Functions Due to the many functions built into modern microcontrollers there wouldn t be enough port pins GPIOs if each of them has its own unique function To solve this problem signal multiplexing allows each single GPIO to get one of several possible functions assigned In the case of LPC1768 each GPIO can have up to four different functions To select a GPIO s function special registers are used in the controller These registers can be programmed at program run time or at startup via a Startup Script In the LPC1768 Chip1768 2 FUNCTIONS the registers named PINSELxx in the PINCON peripheral are responsible for the signal multi plexing In these registers each GPIO has two bits representing its current selected function The following table offers valuable clues to the usable combination of functions GPIO 1st function 2nd function 3rd function Ath function MCU pin P5 PO 9 PS TX_SDA SSP1 MOSI MAT2 3 76 P6 PO 8 PS TX_WS SSP1
7. 058 ETN 8000084 LOR 10 0084 1038059 ETM 0 42 FOAODOY8 ORR 0 0408 1032060 ETN 02000846 FECIOOSA STR Oye 084 0390 ETN NOV Orl LPC_SC gt PLLICFGI fregli lt cIG sets N 1038082 ETM cxoo00084c FBD00084 LOR rao 1969 000001968 138063 ETM 00000850 F4403080 ORR r070 010000 1038064 ETM 492D LDR rijpes180 oxo0000c 038085 ETN e008 STR on 1038066 000000858 FOAFDOAA NOV 41k LPC_SC gt PLLIFEED KAA 1038067 ETM 482 LDR rlbej068 ox00000c 039088 cxonoo0ese 6o08 STR a 1038069 ETN 09000860 415 LPC_SC gt PLLIFEED 055 1038070 ETN 4916 pc 88 COIINODECO 1038071 ETN 000000866 FECTOOEC STR rOFL O8C 1038072 ETM 00000868 MoV on 415 LPC_SC gt PLLICONI 1 Vente PLL 1038073 ETN XONOOOBEC FeDs0080 LOR 104044080 1038074 ETN F0400001 100 8001 T 1038075 00000874 4923 LOR r pc 40 oxo0000C Another example of the powerful debugging features Real Time Trace offers is the perfor manca analysis MDK ARM calculates which parts of the firmware application consume the most controller time allowing the developer to draw conclusions about software performance and controller load Within seconds problematic parts of the code can be identified webserver M E 1 13 580 s 44 E read_PHY 238294 47158 15 N EMAC_Init 1 50 128ms 0 EMAC_ReadPacket 1747149
8. 1 8810s 28 EMAC_SendPacket 2376 4385ms 0 write_PHY 2 39 000 ps 0 main 8373s 27 MN vip_log 1 0 042ys 0 main 1 8373s 27 KE TR E timer 4636s 15 E clock arch 2976s jo EY clock_init 1 0 111 ps 0 clock_time 17469034 2976s 10 8 tapdev 1 3558 4 tapdev_init 1 0 125 ys 0 tapdev_read 17471491 1 3558 4 y tapdev_send 2376 139 542 ps 0 up 102 476ms 0 E psock 42 898ms 0 httpd 10 264ms 0 E uip_ap 4466ms 0 httpd s 4465ms 0 E httpd cai 4263 0 ES Ipe 17o_systick 715500ps 0 E system_LPC1Ax 120 833 ps 0 H startup_LPC1 Aoc 0 167 ps http strings Ops 0 1 ES Retarget Ops o startup_LPC 17x Ops Eh Disassembly E Performance Analyzer E Instruction Trace 20 5 ADDENDUM Chip1768 5 Addendum 5 1 Memory Map 0007 0008 000rx0 juan te 0009 000x0 own El 0005 LOOPXO EWEEIXIIIICCREEE 0000 100 x0 0007 0 sjajsi6as dnyoeq 918 6 0008 Z00pX0 OH 0009 Z00 X0 weuuoouid 0000 0005 00px0 0008 00 0 Wu AV NYO EJ 0009 00px0 0000 v00px0 0009 0008 0009 0009 S00pX0 0000 9009 0 0000 800px0 0000 000SX0 000 000SX0 0008 000SX0 0009 000Sx0 Z D A49S 81 y ZZ 4 2 0000 020Sx0 sje1sydiiad guy gt 0000 0000x0 0000 8000X0 ysel diu5 uo
9. 3 10 RTC The Real Time Clock peripheral can be powered by a dedicated battery or another voltage source Powered this way it will continously count the time even if the main power for Chip1768 is cut off RTC power input should have a value of about 3V and must be fed into VBAT A good choice for example would be a CR2302 coin battery 16 Chip1768 4 APPLICATION NOTES 4 Application Notes 4 1 The Bootloader NXP delivers a bootloader stored in LPC1768 s ROM for updating the program memory flash with new firmware The bootloader is accessed with serial communication and therefore there s no need for using a dedicated debug flash tool for pure flash programming the Chip1768 NXP supports FlashMagic a software free for non commercial use FlashMagic offers a comfortable way of communicating with the bootloader and updating the firmware with compiled images To enter the bootloader following procedure has to be performed Chip1768 s pin ISP has to be in LOW state connected to ground and a reset has to be initiated Five milliseconds after releasing reset state the LPC1768 checks for the state of the ISP input If it is LOW then the bootloader will start If it is HIGH a pull up ensures this if ISP is left open then the user program will start The communication with the bootloader then is possible with the signals IF and IF erfol gen Starting the bootloader could be made more comfortable with little external circuitry
10. 36 x ETHERNET CLOCK Bara 5 32 52 See 32 m 31 51 38 y T 57 202 para P38 panal sel 5543 parzo 28 LNKACT D E 29 a 3 al 28 221 paras o par 27 26 X E 3 pa 55 pes z za y FE 41281 a P1032 4 a 58 85 paa 6 parsa HE1 68R al26 p1r3a ae LPC1768FBD100 MICROCONTROLLER STATUS LEDS Chip1768 F 1p Controller Module 5 lt Hi c 5 E c 5 E VCC 5 Laces ls need Gn Sol gil gn 6 http elmicro com en chip1768 html e e ce 39 022611 by Elektronikladen ELMICRO REV Design by Stefan Gunther Oliver Thamm U1 21 CORTEX DEBUG amp TRACE POWER DECOUPLING CAPS Date 28 06 2011 12 47 58 Sheet 1 1 3 Functional Description Chip1768 3 1 Circu 10 Chip1768 3 FUNCTIONAL DESCRIPTION 3 2 Power Supply Power supply has to be connected with Chip1768 s pin V y A voltage regulator converts the input voltage down to 3 3V the module needs for operation Whereas the LDO TS1117B accepts input voltages of up to 12V the used buffer tantal capacitor C28 is rated at 10V therefore never attempt to feed a voltage higher than 10V to Chip1768 It has to be considered that based on the linear regulator principle the voltage regulator creates the more heat the higher its input voltage is Keeping the input voltage at about 5V would therefore be the best choice The power supply must be able to keep up the voltage at currents o
11. ELEKTRONIK LADEN Chip1768 Hardware Version V1 21 ARM Cortex M3 Microcontroller Board with NXP LPC1768 User s Manual Chip1768 Copyright C 2011 by ELMICRO Computer GmbH und Co KG Hohe Str 9 13 D 04107 Leipzig Telephone 49 0 341 9104810 Fax 49 0 341 9104818 Email leipzig elmicro com Web http elmicro com This manual and the product described herein were designed carefully by the manufacturer We have made every effort to avoid mistakes but we cannot guarantee that it is 100 free of errors The manufacturer s entire liability and your exclusive remedy shall be at the manufacturer s option return of the price paid or repair or replacement of the product The manufacturer disclaims all other warranties either expressed or implied including but not limited to implied warranties of merchantability and fitness for a particular purpose with respect to the product including accompanying written material hardware and firmware In no event shall the manufacturer or its supplier be liable for any damages whatsoever including without limitation damages for loss of business profits business interruption loss of business information or other pecuniary loss arising out of the use of or inability to use the product even if the manufacturer has been advised of the possibility of such damages The product is not designed intended or authorized foruse in applications in which the failure of the
12. Rink OER OR See eS 15 ae a u Sus pa BE a ae ON eed os a 16 4 Application Notes 17 The Bodtloader u rd Se ee Bnd SE Gre Ge adh Lee AMG s 17 4 2 Editing mbed pr grams occ roe Gop ae ak a Q s e AS Ew ae S e a 18 121 Ethernet uy us a edges nee de awn Uh owe 18 4 3 Performance out of reset a a ar r c 18 AA SRAM a sae Ses s kuspa Eee Ok em Sn Se OE Geta ee ata ge te 18 45 Using KEIL MDK ARM coca eb ES a BSS a Bee OSes 19 Requirement r u y p sa y p A Sh ha et EO BS 19 4 5 2 Real Time Trace _ __ __ _ a e 20 5 Addendum 21 Dal Memory Map s yuy as ee AN S aS cag 21 5 2 Dimensional Drawing AA A a e ES es e 22 Chip1768 1 OVERVIEW 1 Overview The Chip1768 module in an easy way allows to profit from the calculation power and richt equipment of the NXP LPC1768 microcontroller With its compact form factor in 100mil stan dard grid the module can quickly be applied in new projects and existing units Chip1768 implements the circuitry necessary for using it as a robust and flexible tool for a first Proof of Concept as well as Rapid Prototyping and in the final stage as productive hardware The controller module is built around the NXP LPC1768 microcontroller Featuring an ARM Cortex M3 core ARMv7M architecture this controller combines advanced
13. S1117BCW33 ae USSR2 26 3 D5 RESET y wo CRS c c ussat gt 1 best S X1 a 3 S 5 usst a Paria eee TX_CLK Ts ES FB1 SA se 553 5 paria 55 Palit a y mn 9 Uss2 E is e axe fet ZU AGND L ix 5 o Pens si pars BATS4C a al mxo 32 133 URBAT 18 pat s z El axer 24 BXFRR a POWER SUPPLY 2 e 16 f yon 5 i exores 56 18 gL 42 UREFP pare ES SA 32 exor11 52 E exo 3 UREFN 11 ea 38 411 ussi parz21 56 3 RBIAS axo 38 deb 20 231 AL AA 2 8 parz41 ENE 18 j la E Ria N 18 12MHz 16 RTCX1 s BSS84 apo DP83848JSQT 18 RTCX2 JO ally PF BOUT C22 E el e la 4 BS 82 8 8 12 a m 2m 0 o o o O TET E Ed js PS 02 pare 35 AGND To atck gt 11 RO 33R 12p 32768Hz SUa amp 1012 mo RIE Se para 33 m ETHERNET PHY CLOCK wie e s2 cas Sok ela sro e pus E 619 _Lc2a 104 ass Bate 7S 2 61 10 536 RxDr11 18pT T18p 211 p2r41 lt 4 ucc 1 0SCEN da gt paz 141 SS BXERB one ND Bata 20 paral PA 151 ats 3 N 39 p SA P24 por e27 moc USB INTERFACE T B s s 251 551 p25 fo 2 GND RST s tpacktl lt S P216 O e PALS a 5 Sanz pare O 35 S slo 5 Dts pa 34 abla usp on 64 35 3 eres pare E 33 ISP 53 52 8 pilot
14. d the Cortex Debug interface is enlarged by 2x5 pins making the Debug Port a total of 2x10 pins Using ETM the developer gains very detailled information about what s going on in the controller while the program runs at real time To use this Real Time Trace the toolchain has to be carefully selected Specialized hardware and software tools supporting ETM are required As an example chapter 4 5 deals with the development system from ARM Keil which comfortably benefits from Chip1768 s ETM func tionality Chip1768 comes with the fully populated Cortex Debug ETM interface with connec torX3 X4 11 Chip1768 3 FUNCTIONAL DESCRIPTION The following diagram shows the signal naming according to ARM recommendations Cortex M ETM Interface 20 pin Connector VTref 1 D O 2 SDWIO TMS GND 3 O O 4 SWDCLK TCLK GND 5 O 6 SWO TDO KEY 7 O 8 NC TDI GNDDetect 9 O O 10 nRESET GND TgtPwr Cap 11 0 O 12 TRACECLK GND TgtPwr Cap 13 O O 14 TRACEDATA 0 GND 15 D O 16 TRACEDATA 1 GND 17 O O 18 TRACEDATA 2 GND 18 D O 20 TRACEDATA 3 When connecting the debug adapter with Chip1768 correct polarity has to be ensured a 1 is printed near pin 1 of the debug connector It is further to be considered that there is no keying on pin nr 7 and therefore the 2x5 resp 2x10 connector must not have a closed connector hole 3 4 Clock distribution Besides the internal RC oscillator with its 4MHz freq
15. debug features en ergy saving facilities rich peripheral equipment and compatibility of soft and hardwaretools Chip1768 s alikeness to ARM KEIL s mbed1768 isn t pure coincidence as both are com pletely compatible in soft and hardware This fact opens new possibilities to the embedded developer First demonstrations and functional tests can be made with mbed1768 and its great online compiler and libraries Developing commercial applications where the sourcecode shouldn t exposed to the cloud is then done the conventional way with Chip1768 and an appropriate toolchain on chip debugging included However a small change in sourcecode for applications dealing with ethernet is necessary chapter 4 2 1 gives details about this Chip1768 1 OVERVIEW 1 1 Technical Data 1 1 1 Chip1768 module Compact microcontroller module with NXP LPC1768 MCU Cortex Debug Interface 2x10 pin header with 50mil grid following ARMs specification for Trace Port Interface Unit TPIU Supports JTAG SWD 4 Bit Trace National Semiconductor DP83848J Ethernet Transceiver 12MHz and 32 786kHz crystals 4 signalling LEDs Supply voltage 4 5V 9V max current consumption app 200mA test case 5V supply and actively transmitting data over ethernet extra wide DIP form factor 2x20 pin headers 100mil pin grid 900mil DIP with Overall dimensions 2 22 x 1 02 1 1 2 NXP LPC1768 microcontroller ARM Cortex M3 ARMv7
16. f max 200mA As explained the input voltage is buffered by a tantal capacitor of 47uF and feeds the linar regulator IC3 This LDO outputs 3 3V named VCC in schematic At important power supply inputs of Chip1768 s ICs the power supply is bufferd with 47uF capacitors and decoupled using 100nF Voltage drops due to short peaks in power consumption are attenuated and ripple on the VCC lane is reduced Attention Power supply input neither is protected against wrong polarity nor fused against short circuit Voltage must never exceed 10V Recommended input voltage is 5V 3 3 Debug Interface Chip1768 is programmed flashed and debugged using either the classical JTAG Inter face or the Serial Wire Debug SWD technique The implementation of the JTAG support is however mainly done to accomplish a backward compatibility with older debug tools None of ARMs in Cortex M3 controllers introduced CoreSight debugging technologies are useable through JTAG Using the Serial Wire interface enables the developer to take advantage of such features like Data Trace or Instruction Trace making the SWD interface the first choice to debug Chip1768 An even more sophisticated debug technique is also introduced in Cortex M3 controllers and is implemented in Chip1768 With Embedded Trace Macrocell ETM each and every step the controller does is communicated out of the controller via the Cortex Debug ETM inter face If ETM is use
17. is ICDI e Signum Systems JTAGjet Cortex M R J LINK J Trace e ST Link Debugger NULink Debugger 4Supported ARM cores ARM7 ARM9 Cortex M Cortex R 19 Chip1768 4 APPLICATION NOTES 4 5 2 Real Time Trace The microcontroller from NXP includes ARMs Cortex ETM Trace peripheral This enables Chip1768 to record every single step of the program code execution in Real Time while the program is running Advanced analysis of the controller application are made possible Among others MDK ARM is able to list filter and sort all controller cycles Fit Al Fog tum PC insucton Source Code Aires Data Odes Tinels 038018 ETN ROOODOAGC 4840 LDR rObe 3M 402 LPC SC gt 2SCSA BITA OSC 1038019 ETH OOO00KCE 6800 LOR r0 0 2 00 1038020 ETM 0000400 F0200010 BC 10 0 0e10 1038021 ETM 00000404 pe 232 1038022 00000406 01AN wasa ETH 000004DA 4608 V 40 LPC_SC gt SCS l BITS 1038024 ETM Cx00000ADC FBDIOIAO LOR 10 0140 1038025 ETN acon000AE0 FOSODOZO ORR 1038026 ETM FECIOYAD STR 1 1038027 ETM 0x000004E8 NOP 40 while LPC_SC gt SCSABITE 4 rat for osciiatorto 1030020 ETM OxD0000AEA 4845 LDR rObe276 CODO 7038023 ac000004EC LDR 1040 90 1038080 ETM OXDOOOOAEE FODODOAO AND aami ETN c090004F2 CMP ro
18. n chapter4 1 at page 17 Analog Digital Converter ADC The pins named IF and IF are associated to the LPC1768 s signals PO 2 and PO 3 One of their respective functions are inputs for the ADC Therefore on Chip1768 all 8 channels of the ADC peripheral are useable instead of only 6 with mbed1768 UARTO Another GPIO function of und IF is the usage as data lines for the UARTO peripheral of the LPC1768 UARTO is fully useable by Chip1768 whereas mbed1768 lacks support of this serial port mbed uses UARTO for some of its magic NMI The LPC1768 s Non Maskable Interrupt is connected to Pin ISP of Chip1768 3 FUNCTIONAL DESCRIPTION IC it Schemat o O ETHERNET TERMINATION amp FILTER o 5 IC2 SA IC1 103 5 TOUDD4 me Ha RD 28 unpi a 1OUDD2 E 44 RD 54 Uno2 E DGND gt a ane 2 ID 2 1 una re 106D a pp zis 86 unos auo 32 1 upDR1 N A v aoni SPEED 84 VDDR2 ly ote AGND2 gt LK NC T
19. og Digital Converter e 1x output for Digital Analog Converter e 6x PWM outputs 1x external non maskable interrupt input NMI Real Time Clock RTC with separate power supply input As for the sheer amount of built in functions of the used microcontroller this manual can t focus on how to use these peripherals in applications For developing with Chip1768 a con tinuous reference to NXP s manual for the LPC1768 will be a good start Each peripheral function is explained in detail and getting the easier peripherals like the ADC or UARTs to work is done in a straight forward way step by step instructions This user manual will guide the starter as well as the experienced developer through the process of writing an application for the LPC1768 2Download at http www nxp com documents user_manual UM10360 pdf Chip1768 2 FUNCTIONS 2 1 Pinout NO 49 N 39 D B T 38 P R 37 PA PVLS 36 p PATS O 35 R PY bar 34 D PALE C 33 D PALA O 32 D DA U 31 D 18 O 30 P Dg gt 23 pg 50 Y 28 Paria Pan 27 PA sf 26 PIO DP TU 25 Pp Dg U 24 p Por 26 dla 23 P D 22 D D 21 D Signal Type Description GND circuit ground VIN Input 45 9V VB Input 3V power supply for RTC IRST Input low active main reset for LPC1768 P5 P30 Inputs Outputs multifunctional ports table 2 2 has details D Input Output USB data line D Input Output USB data line TD Output Ethernet transmit
20. product could create a situation where personal injury or death may occur Should you use the product for any such unintended or unauthorized application you shall indemnify and hold the manufacturer and its suppliers harmless against all claims even if such claim alleges that the manufacturer was negligent regarding the design or implementation of the product Product features and prices may change without notice All trademarks are property of their respective holders Chip1768 CONTENTS Contents 1 Overview 4 Tel Technical Data Eater at tro e paso ey eas A eee ay s Ls 5 LED mod le ss a ap te gandani iH a na e BOR oes 5 1 12 NXP LPC1768 microcontroller 5 2 Functions 6 A E he Seeds shag the Seeds ches Aa cl ha AN ban yuk heal ah 7 2 2 Table OL See od ee RA 2 6 ao UU 6 2 3 Differences between Chip1768 and mbed1768 4 9 3 Functional Description 10 3 1 Circuit Schematic Z a u a On t 10 3 2 Power Supply ay eee ck a sa See Sauk eo s oas eos o a 11 Sl Debug Mmterface sG ea bt ns Ma dears e dd et eo A 11 34 Clock distribution aed Av Gr A a ed 12 Gtk d Dya sa a Ce aA a a Gs eens 13 mts BA s ary rt ah tet ele de eas an Naveed da ns 14 Si a ae daa ean ele Se dl ta tae feels e ES te an elie OS nan io AE OA Be 15 MANO Se T do al n ANA 15 3 9 Serial Interfaces
21. que MAC address in this special IC As Chip1768 lacks it some workaround has to be made for telling the ethernet software library which MAC address to use The standard library for ethernet applications is the EthernetNetIf library Implemented without changes causes Chip1768 to lock at startup as the LPC1768 tries to communicate with the absent mbed1768 s magic IC To circumvent this behaviour the function for obtaining the MAC address has to be over written by a new declaration The simplest solution would be to hard code a MAC address in the sourcecode like this extern C void mbed_mac_address char s char mac 6 mac 0 0x0A mac 1 0xC1 mac 2 0x10 mac 3 0x51 mac 4 0x0B mac 5 0xCC memcpy s mac 6 The LPC1768 s unique ID could also be used for generating the MAC address Storing it into an external ROM would also be an option 4 3 Performance out of reset e After approx five seconds the controller checks for input level at pin ISP and selects to start the bootloader if level is LOW otherwise the user application is started e All GPIOs are set to digital input e Internal RC oscillator will start feeding the main core with 4MHz clock 10 accuracy e The user program will start and can access peripherals and memories according to the Memory Map on page 21 e The Watchdog timer is disabled 4 4 SRAM NXP has equipped the LPC1768 with a total of 64kB SRAM It is however to be no
22. s 1697 000001697 1038032 ETM OXOMOODAFA Dors BEQ xOMMQAEA Tm 000001701 1038033 ETN DXONOODAFS 4843 LOR rOjpc 258 OMMO LPC_SC gt PLLICON BITT dsconnect P 1038034 ETM 6800 LOR 1038095 ETH OXIMOODAFA FO200002 BC rr 1030006 ETN 4930 LOR r1 po 192 0c000008 103807 ETM onoono FECI0O80 STR raj 2080 1038038 ETM FOAFOOAA r 40 LPC_SC gt PLLIFEED KAA amema ETN 000000808 sar LOR ripe4052 aeto 1038040 ETM 6008 STR raj 001 1058081 ETH ceconn00ecc FOSFOOSS roas 407 LPC_SC gt PLLIFEED 055 7038082 ETM 09000810 LOR ox000008 103803 ETM 2 FECIOOEC STR OH 1030044 ETN ro 4 LPC_SC gt PLLICON amp BITO PUL dable 1038045 ETN 003000818 1 ETN F0200001 BC orao 1020047 ETN 00000870 492 LOR rlpej4224 na0000 wa 000001233 1 EN oxgo000822 6008 STR 4000 1038049 ETM cacono00e24 FDAFDDAA r 403 LPC_SC gt PLLIFEED AA 1038050 00000828 4937 rl pc 4201 oxo0000C 1038051 ETN 1090052 ETN exono00n2c FOAFDOSS MOV 410 LPC_SC gt PLLOFEED x55 1038053 ETM ccoo000830 60 STR raj 0001 10380654 ETH FOAFOOO NOV 41 LPC_SCOCLKSRCSEL 1 seectthe man oscilatoras a 7038055 ETN LDR ripe 136 000000B 1038056 ETM 0000838 1058087 ETN D0000083C NOV ort reat doses W 1038
23. ted that the SRAM is divided into two blocks of 32kB each This has to be taken in consideration when handling with larger amounts of contigous data is necessary which then needs to be splittet apart 18 Chip1768 4 APPLICATION NOTES 4 5 Using KEIL MDK ARM With the MDK ARM IDE Integrated Development Environment KEIL an ARM com pany offers a very comfortable software for developing program code with ARM microcon trollers The IDE unifies a project management C compiler simulator and a debugger com ponent in one Windows application In particular the debugger turns out to be a huge im provement for developing new firmware In combination with the advanced debugging features of ARMs current Cortex microcontrollers the time needed for firmware development can dra matically be shortened The MDK ARM development software can be downloaded free of charge and used for eval uation and even small commercial projects The free version is limited to 32kB codesize 4 5 1 Requirements Being a Windows software a working installation of Microsoft s operating system of course is obligatory A suitable debug adapter is also needed for connecting Chip1768 to the PC This adapter allows flash programming as well as debugging Following a list of adapter hardware supported by the current version of MDK ARM vision Version 4 20 Keil ULINK Pro ULINK2 ULINK ME RDI Interface Driver e Altera Blaster Cortex Debugger e Stellar
24. uency Chip1768 is equipped with more clock sources As main clock for the LPC1768 microcontroller there is a crystal with 12MHz frequency Its frequency stability is specified with 30ppm at 25 C 12 Chip1768 3 FUNCTIONAL DESCRIPTION For low power applications using the RTC peripheral another crystal with a 32 768kHz fre quency of 20ppm impreciseness For clocking the RMI interface for ethernet connectivity a 50MHz oscillator IC is used This clock feeds the DP83848J transceiver as well as the EMAC peripheral of the LPC1768 Using the controller signal P1 27 this oscillator can be switched on and off When set to high P1 27 activates the oscillator which then causes a current flow of up to 15mA Its precision is rated at 50ppm 3 5 Ethernet Ethernet functionality bases on the transceiver IC PHY DP83848J from National Semicon ductors In combination with LPC1768 s 10 100MBit ethernet peripheral EMAC Ethernet Media Access Controller Chip1768 supports ethernet enabled applications According to the Rapid Prototyping concept all that is needed to implement an ethernet application is a RJ45 jack Ideally this jack involves a transformer and chokes magnetics to ensure a high safety and data integrity standard Most ethernet jacks are built with the following magnetics and will work well with Chip1768 Transformer Common Mode Chokes Send TD 1 CT 4 TD 2 RD 3 to Ethernet transcei
25. ught out through the pin headers signals D and D The first interface is used to program mbed1768 BIN files from the online compiler as well as for communication via virtual COM port Also mbed1768 can get powered using the mounted USB connector The user program can t use this USB interface though It is hidden behind the black box which handles all the mbed1768 s magic Applications which need USB con nectivity have to use the second interface Chip1768 in contrast only has one USB interface directly connected to the controller s USB peripheral Program code is transferred to the on chip flash of LPC1768 using the Cortex Debug Interface with JTAG or Serial Wire Likewise Chip1768 passes on mbed s magic like the USB flash disk function mbed offers 2MB storage space for program code BIN files websites captured data Power supply output Vour Mbed can be used to power an external circuit as it offers a voltage of 3 3V at a maximum current of 800mA On Chip1768 the pin Voyr is left unconnected The mbed s VU pin delivers the host s USB supply voltage somewhat around 5V Chip1768 doesn t have the primary USB connector so this voltage can t be used Bootloader Chip1768 enables the user to take advantage of the LPC1768 s builtin bootloader mode This is accomplished by breaking out the necessary signals to the pins ISP IF und IF Further information on how to use the integrated bootloader can be found i
26. used for light dimming motor con trolling sound generation and similar applications 3 8 Analog There are eight analog output channels usable with Chip1768 each of which offering an accu racy of 12bits Voltages to be digitized must be in the range of 0 3 3V The Analog Digital Converter ADC operates at up to 200kHz Chip1768 has the both reference voltages V REFP and Vrerrn tied to 3 3V resp OV GND Attention It has to be assured that ADS input signals don t exceed 3 3V Otherwise damages of the ADC peripheral and or the whole Chip1768 module can occur Apart from the ADC Chip1768 offers an analog output channel Using P18 Chip1768 can be used to generate voltages from OV up to 3 3V reference voltages are fixed to these values The accuracy of the Digital Analog Converter DAC is 10bits It can operate at update frequencies of up to 1MHz 3 9 Serial Interfaces There are four Universal Asynchronous Receive Transmit units UARTs accessible with Chip1768 UART1 offers full hardware handshake support CTS DCD DSR DTR CAN Bus is available at P9 and P10 For implementing additional sound processing hardware one I S interface can be activated For inter IC communication two I C Bus interfaces are available 15 Chip1768 3 FUNCTIONAL DESCRIPTION The interconnection of SPI based hardware can be carried out using one SPI or two SSP interfaces Each of the SSP peripheral features a flexible DMA controller
27. ver to Ethernet cable CT 5 RD 6 79 CHS 0 001 uF GROUND 85 CHS GROUND shall be connected with signal ground 75 Q The interconnection between the two ICs is done according to the RMII standard Reduced Media Independent Interface Following a pictured explanation of the involved signals and their corresponding controller I Os 13 Chip1768 3 FUNCTIONAL DESCRIPTION E P83848J melo a 48 en TXD 0 Ethernet Connection Twisted Pair cable K ZABAR LPC1768 LOFP100 The signal ETH_RST which is internally connected to LPC1768 s GPIO P1 28 triggers a reset of the DP83848J when set to LOW When LOW signal OSCEN LPC1768 GPIO P1 27 switches off the 50MHz oszillator for the ethernet transceiver This is useful for low power applications which don t need ethernet connectivity all the time or no connection at all Both center taps of the transformer s coils can be pulled high and coupled against ground using small capacitors Doing so could enhance signal integrity and noise immunity of the ethernet connection 3 6 USB Chip1768 can be used as USB Device The necessary circuitry for this purpose is imple mented according to NXP s recommendation The following diagram is taken from NXP s user manual of the LPC1768 Vpp 3v3 LPC17xx SoftConnect switch R1 1 5 KQ Veus USB_D s 330 USB B a connector USB_D S Vss

Download Pdf Manuals

image

Related Search

Related Contents

INSTALLATION INSTRUCTIONS  TBI Mode d`emploi  Bowers & Wilkins T7  Service Manual - Scotsman Ice Systems  Electrolux SC5700/5800 User's Manual  Electrolux 730173 User's Manual  Panasonic KX-TD208 Telephone System  Xerox® 4112™/4127™ Guia de Segurança    Manuel d  

Copyright © All rights reserved.
Failed to retrieve file