Part Number Hot Search : 
NCP5604A 1S120 CG110 LT813 2SC2879A 1N5022A STC02 JANSR2
Product Description
Full Text Search
 

To Download LPC2921 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra 1. general description the LPC2921/2923/2925 combine an arm968e-s cpu core with two integrated tcm blocks operating at frequencies of up to 125 mhz, full-speed usb 2.0 device controller, can and lin, up to 40 kb sram, up to 512 kb flash memory, two 10-bit adcs, and multiple serial and parallel in terfaces in a single chip targeted at consumer, industrial, medical, communication, and automotive markets. to optimize system power consumption, the LPC2921/2923/2925 has a ve ry flexible clock generation unit (cgu) that provides dynamic clock gating and scaling. 2. features ? arm968e-s processor running at frequencies of up to 125 mhz maximum. ? multilayer ahb system bus at 125 m hz with four se parate layers. ? on-chip memory: ? two tightly coupled memories (tcm), 16 kb instruction (itcm) and 16 kb data tcm (dtcm). ? on the lpc2925, two separate internal st atic ram (sram) instances, 16 kb each. ? on the lpc2923 and LPC2921, one 16 kb sram block. ? 8 kb etb sram, also usable for code execution and data. ? up to 512 kb high-speed flash-program memory. ? 16 kb true eeprom, byte-erasable/programmable. ? dual-master, eight-channel gp dma controller on the ahb mu ltilayer matrix which can be used with both i 2 c interfaces, the spi interfaces, and the uarts, as well as for memory-to-memory transfers including the tcm memories. ? serial interfaces: ? usb 2.0 full-speed device controller wit h dedicated dma controller and on-chip device phy. ? two-channel can controller supporting fu ll-can and extensive message filtering. ? two lin master controllers with full hardware support for lin communication. the lin interface can be configured as uart to provide two additional uart interfaces. ? two 550 uarts with 16-byte tx and rx fifo depths, dma support, and rs485 (9-bit) support. ? three full-duplex q-spis with four slave-sele ct lines; 16 bits wide; 8 locations deep; tx fifo and rx fifo. ? two i 2 c-bus interfaces. LPC2921/2923/2925 arm9 microcontroller with can, lin, and usb device rev. 00.01 ? 24 october 2008 preliminary data sheet
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 2 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? other peripherals: ? two 10-bit adcs, 8-channels each, with 3.3 v measurement range provide 8 analog inputs each with conversion times as low as 2.44 s per channel. each channel provides a compare function to minimize interrupts. ? multiple trigger-start option for all ad cs: timer, pwm, other adc and external signal input. ? four 32-bit timers each containing four capture-and-compare registers linked to i/os. ? four six-channel pwms (pulse-width modulators) with capture and trap functionality. ? two dedicated 32-bit timers to sch edule and synchronize pwm and adc. ? quadrature encoder interfac e that can monitor one external quadrature encoder. ? 32-bit watchdog with timer change protection, running on safe clock. ? up to 60 general-purpose i/o pins with programmable pull-up, pull-down, or bus keeper. ? vectored interrupt controller (vic) with 16 priority levels. ? up to 16 level-sensitive external interrupt pins, including usb, can and lin wake-up features. ? configurable clock-out pin for dr iving external system clocks. ? processor wake-up from power-down via exter nal interrupt pins; can or lin activity. ? flexible reset genera tor unit (rgu) able to control resets of individual modules. ? flexible clock-generation unit (cgu) able to control clock frequency of individual modules: ? on-chip very low-power ring oscillator; fi xed frequency of 0.4 mhz; always on to provide a safe_clock source for system monitoring. ? on-chip crystal oscillator with a recomm ended operating range from 10 mhz to 25 mhz. pll input range 10 mhz to 25 mhz. ? on-chip pll allows cpu operation up to a maximum cpu rate of 125 mhz. ? generation of up to 11 base clocks. ? seven fractional dividers. ? second, dedicated cgu with its own pll generates the usb clock and a configurable clock output. ? highly configurable system power management unit (pmu): ? clock control of individual modules. ? allows minimization of system operatin g power consumption in any configuration. ? standard arm test and debug interfac e with real-time in-circuit emulator. ? boundary-scan test supported. ? etm/etb debug functions with 8 kb of dedicated sram also accessible for application code and data storage. ? dual power supply: ? cpu operating voltage: 1.8 v 5%. ? i/o operating voltage: 2.7 v to 3.6 v; inputs tolerant up to 5.5 v. ? 100-pin lqfp package. ? ? 40 c to +85 c ambient operating temperature range.
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 3 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 3. ordering information 3.1 ordering options table 1. ordering information type number package name description version LPC2921fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm sot407-1 lpc2923fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm sot407-1 lpc2925fbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm sot407-1 table 2. part options type number flash memory sram (incl. etb sram) usb device uart rs485 lin 2.0/ uart can package LPC2921fbd100 128 kb 24 kb yes 2 2 2 lqfp100 lpc2923fbd100 256 kb 24 kb yes 2 2 2 lqfp100 lpc2925fbd100 512 kb 40 kb yes 2 2 2 lqfp100
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 4 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 4. block diagram grey-shaded blocks represent peripherals and memory regions accessible by the gpdma. fig 1. LPC2921/2923/2925 block diagram 002aae224 arm968e-s dtcm 16 kb itcm 16 kb test/debug interface slave master 1 master 2 slaves master gpdma controller gpdma registers embedded flash 512/256/128 kb 16 kb eeprom embedded sram 16 kb (lpc2925 only) system control timer0/1 mtmr can0/1 global acceptance filter pwm0/1/2/3 3.3 v adc1/2 event router embedded sram 16 kb general purpose i/o ports 0/1/5 timer 0/1/2/3 spi0/1/2 rs485 uart0/1 wdt ahb to apb bridge ahb to dtl bridge vectored interrupt controller master slave usb device controller slave slave slave slave slave slave slave slave slave ahb to dtl bridge ahb to apb bridge quadrature encoder chip feature id ahb to apb bridge i 2 c0/1 ahb to apb bridge clock generation unit power management unit reset generation unit ahb multi- layer matrix LPC2921/2923/2925 jtag interface 8 kb sram general subsystem power. clock, and reset subsystem msc subsystem networking subsystem peripheral subsystem
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 5 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 5. pinning information 5.1 pinning 5.2 pin description 5.2.1 general description the LPC2921/2923/2925 uses three ports: port 1 with 32 pins, port 1 with 28 pins, and port 5 with 2 pins. ports 4/3/2 are not used. the pin to which each function is assigned is controlled by the sfsp registers in the scu. the functions combined on each port pin are shown in the pin description tables in this section. 5.2.2 lqfp100 pin assignment fig 2. pin configuration for sot407-1 (lqfp100) LPC2921fbd100 lpc2923fbd100 lpc2925fbd100 75 26 50 100 76 51 1 25 002aae242 table 3. lqfp100 pin assignment pin name pin description function 0 (default) function 1 function 2 function 3 tdo 1 [1] ieee 1149.1 test data out p0[24]/txd1/ txdc1/scs2[0] 2 [1] gpio 0, pin 24 uart1 txd can1 txd spi2 scs0 p0[25]/rxd1/ rxdc1/sdo2 3 [1] gpio 0, pin 25 uart1 rxd can1 rxd spi2 sdo p0[26]/txd1/sdi2 4 [1] gpio 0, pin 26 - uart1 txd spi2 sdi p0[27]/rxd1/sck2 5 [1] gpio 0, pin 27 - uart1 rxd spi2 sck p0[28]/cap0[0]/ mat0[0] 6 [1] gpio 0, pin 28 - timer0 cap0 timer0 mat0 p0[29]/cap0[1]/ mat0[1] 7 [1] gpio 0, pin 29 - timer0 cap1 timer0 mat1 v dd(io) 8 3.3 v power supply for i/o p0[30]/cap0[2]/ mat0[2] 9 [1] gpio 0, pin 30 - timer0 cap2 timer0 mat2 p0[31]/cap0[3]/ mat0[3] 10 [1] gpio 0, pin 31 - timer0 cap3 timer0 mat3 v ss(io) 11 ground for i/o
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 6 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin p5[19]/usb_d+ 12 [2] gpio 5, pin 19 usb_d+ - - p5[18]/usb_d ? 13 [2] gpio 5, pin 18 usb_d ? - - v dd(io) 14 3.3 v power supply for i/o v dd(core) 15 1.8 v power supply for digital core v ss(core) 16 ground for core v ss(io) 17 ground for i/o p1[27]/cap1[2]/ trap2/pmat3[3] 18 [1] gpio 1, pin 27 timer1 cap2, adc2 ext start pwm trap2 pwm3 mat3 p1[26]/pmat2[0]/ trap3/pmat3[2] 19 [1] gpio 1, pin 26 pwm2 mat0 pwm trap3 pwm3 mat2 v dd(io) 20 3.3 v power supply for i/o p1[25]/pmat1[0]/ usb_vbus/ pmat3[1] 21 [1] gpio 1, pin 25 pwm1 mat0 usb_vbus pwm3 mat1 p1[24]/pmat0[0]/ usb_connect / pmat3[0] 22 [1] gpio 1, pin 24 pwm0 mat0 usb_connect pwm3 mat0 p1[23]/rxd0 23 [1] gpio 1, pin 23 uart0 rxd - - p1[22]/txd0/ usb_up_led 24 [1] gpio 1, pin 22 uart0 txd usb_up_led - tms 25 [1] ieee 1149.1 test mode se lect, pulled up internally tck 26 [1] ieee 1149.1 test clock p1[21]/cap3[3]/ cap1[3] 27 [1] gpio 1, pin 21 timer3 cap3 timer1 cap3, mscss pause - p1[20]/cap3[2]/ scs0[1] 28 [1] gpio 1, pin 20 timer3 cap2 spi0 scs1 - p1[19]/cap3[1]/ scs0[2] 29 [1] gpio 1, pin 19 timer3 cap1 spi0 scs2 - p1[18]/cap3[0]/ sdo0 30 [1] gpio 1, pin 18 timer3 cap0 spi0 sdo - p1[17]/cap2[3]/ sdi0 31 [1] gpio 1, pin 17 timer2 cap3 spi0 sdi - v ss(io) 32 ground for i/o p1[16]/cap2[2]/ sck0 33 [1] gpio 1, pin 16 timer2 cap2 spi0 sck - p1[15]/cap2[1]/ scs0[0] 34 [1] gpio 1, pin 15 timer2 cap1 spi0 scs0 - p1[14]/cap2[0]/ scs0[3] 35 [1] gpio 1, pin 14 timer2 cap0 spi0 scs3 - p1[13]/ei3/scl1 36 [1] gpio 1, pin 13 extint3 i2c1 scl - p1[12]/ei2/sda1 37 [1] gpio 1, pin 12 extint2 i2c1 sda - v dd(io) 38 3.3 v power supply for i/o p1[11]/sck1/scl0 39 [1] gpio 1, pin 11 spi1 sck i2c0 scl - table 3. lqfp100 pin assignment ?continued pin name pin description function 0 (default) function 1 function 2 function 3
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 7 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin p1[10]/sdi1/sda0 40 [1] gpio 1, pin 10 spi1 sdi i2c0 sda - v ss(core) 41 ground for digital core v dd(core) 42 1.8 v power supply for digital core p1[9]/sdo1 43 [1] gpio 1, pin 9 spi1 sdo - - v ss(io) 44 ground for i/o p1[8]/scs1[0]/ txdl1/cs0 45 [1] gpio 1, pin 8 spi1 scs0 - - p1[7]/scs1[3]/rxd1 46 [1] gpio 1, pin 7 spi1 scs3 uart1 rxd - p1[6]/scs1[2]/txd1 47 [1] gpio 1, pin 6 spi1 scs2 uart1 txd - p1[5]/scs1[1]/ pmat3[5] 48 [1] gpio 1, pin 5 spi1 scs1 pwm3 mat5 - p1[4]/scs2[2]/ pmat3[4] 49 [1] gpio 1, pin 4 spi2 scs2 pwm3 mat4 - trst_n 50 [1] ieee 1149.1 test rese t not; active low; pulled up internally rst_n 51 [1] asynchronous device reset; active low; pulled up internally v ss(osc_pll) 52 ground for oscillator xout_osc 53 [3] crystal out for oscillator xin_osc 54 [3] crystal in for oscillator v dd(osc_pll) 55 1.8 v supply for oscillator and pll v ss(osc_pll) 56 ground for pll v dd(io) 57 3.3 v power supply for i/o p1[3]/scs2[1]/ pmat3[3] 58 [1] gpio 1, pin 3 spi2 scs1 pwm3 mat3 - p1[2]/scs2[3]/ pmat3[2] 59 [1] gpio 1, pin 2 spi2 scs3 pwm3 mat2 - p1[1]/ei1/pmat3[1] 60 [1] gpio 1, pin 1 extint1 pwm3 mat1 - v ss(core) 61 ground for digital core v dd(core) 62 1.8 v power supply for digital core p1[0]/ei0/pmat3[0] 63 [1] gpio 1, pin 0 extint0 pwm3 mat0 - p0[0]/phb0/ txdc0/d24 64 [1] gpio 0, pin 0 qei0 phb can0 txd - v ss(io) 65 ground for i/o p0[1]/pha0/rxdc0 66 [1] gpio 0, pin 1 qei0 pha can0 rxd - p0[2]/clk_out/ pmat0[0] 67 [1] gpio 0, pin 2 clk_out pwm0 mat0 - p0[3]/usb_up_led/ pmat0[1] 68 [1] gpio 0, pin 3 usb_up_led pwm0 mat1 - p0[4]/pmat0[2] 69 [1] gpio 0, pin 4 - pwm0 mat2 - p0[5]/pmat0[3] 70 [1] gpio 0, pin 5 - pwm0 mat3 - v dd(io) 71 3.3 v power supply for i/o p0[6]/pmat0[4] 72 [1] gpio 0, pin 6 - pwm0 mat4 - p0[7]/pmat0[5] 73 [1] gpio 0, pin 7 - pwm0 mat5 - table 3. lqfp100 pin assignment ?continued pin name pin description function 0 (default) function 1 function 2 function 3
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 8 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin v dda(adc3v3) 74 3.3 v power supply for adc jtagsel 75 [1] tap controller select input; low-level sele cts the arm debug mode; high-level selects boundary scan and flash programming; pulled up internally. n.c. 76 not connected vrefp 77 [3] high reference for adc vrefn 78 [3] low reference for adc p0[8]/in1[0] 79 [4] gpio 0, pin 8 adc1 in0 - - p0[9]/in1[1] 80 [4] gpio 0, pin 9 adc1 in1 - - p0[10]/in1[2]/ pmat1[0] 81 [4] gpio 0, pin 10 adc1 in2 pwm1 mat0 - p0[11]/in1[3]/ pmat1[1] 82 [4] gpio 0, pin 11 adc1 in3 pwm1 mat1 - v ss(io) 83 ground for i/o p0[12]/in1[4]/ pmat1[2] 84 [4] gpio 0, pin 12 adc1 in4 pwm1 mat2 - p0[13]/in1[5]/ pmat1[3] 85 [4] gpio 0, pin 13 adc1 in5 pwm1 mat3 - p0[14]/in1[6]/ pmat1[4] 86 [4] gpio 0, pin 14 adc1 in6 pwm1 mat4 - p0[15]/in1[7]/ pmat1[5] 87 [4] gpio 0, pin 15 adc1 in7 pwm1 mat5 - p0[16]in2[0]/txd0 88 [4] gpio 0, pin 16 adc2 in0 uart0 txd - p0[17]/in2[1]/ rxd0/a23 89 [4] gpio 0, pin 17 adc2 in1 uart0 rxd - v dd(core) 90 1.8 v power supply for digital core v ss(core) 91 ground for digital core v dd(io) 92 3.3 v power supply for i/o p0[18]/in2[2]/ pmat2[0] 93 [4] gpio 0, pin 18 adc2 in2 pwm2 mat0 - p0[19]/in2[3]/ pmat2[1] 94 [4] gpio 0, pin 19 adc2 in3 pwm2 mat1 - p0[20]/in2[4]/ pmat2[2] 95 [4] gpio 0, pin 20 adc2 in4 pwm2 mat2 - p0[21]/in2[5]/ pmat2[3] 96 [4] gpio 0, pin 21 adc2 in5 pwm2 mat3 - p0[22]/in2[6]/ pmat2[4]/a18 97 [4] gpio 0, pin 22 adc2 in6 pwm2 mat4 - v ss(io) 98 ground for i/o table 3. lqfp100 pin assignment ?continued pin name pin description function 0 (default) function 1 function 2 function 3
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 9 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin [1] bidirectional pad; analog port; plain inpu t; 3state output; slew rate control; 5v tolerant; ttl with hysteresis; programmable pull up / pull down / repeater. [2] usb pad, . [3] analog pad; analog input output. [4] analog i/o pad, . 6. functional description 6.1 architectural overview the LPC2921/2923/2925 consists of: ? an arm968e-s processor with real-time emulation support ? an amba multilayer advanced high-performance bus (ahb) for interfacing to the on-chip memory controllers ? two dtl buses (an universal nxp interface) for interfacing to th e interrupt controller and the power, clock and reset control cluster (also called subsystem). ? three arm peripheral buses (apb - a compatible super set of arm's amba advanced peripheral bus) for connection to on-chip peripherals clustered in subsystems. ? one arm peripheral bus for even t router and system control. the LPC2921/2923/2925 configures the arm968e-s processor in little-endian byte order. all peripherals run at their own clock frequency to optimize the total system power consumption. the ahb2apb bridge used in the subsystems co ntains a write-ahead buffer one transaction deep. this implies that when the arm968e-s issues a buffered write action to a register located on the apb side of the bridge, it continues even though the actual write may not yet have taken place. completion of a second write to the same subsystem will not be executed until the first write is finished. 6.2 arm968e-s processor the arm968e-s is a general purpose 32-bit risc processor, which offers high performance and very low power consumpt ion. the arm architecture is based on reduced instruction set comput er (risc) principles, and the instruction set and related decode mechanism are much simpler than those of microprogrammed complex instruction set computers (cisc). this simplic ity results in a high instruction throughput and impressive real-time interrupt response from a small and cost-effective controller core. amongst the most com pelling features of the arm968e-s are: ? separate directly connected instruction and data tightly coupled memory (tcm) interfaces p0[23]/in2[7]/ pmat2[5]/a19 99 [4] gpio 0, pin 23 adc2 in7 pwm2 mat5 - tdi 100 [1] ieee 1149.1 data in, pulled up internally table 3. lqfp100 pin assignment ?continued pin name pin description function 0 (default) function 1 function 2 function 3
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 10 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? write buffers for the ahb and tcm buses ? enhanced 16 32 multiplier capable of single-cycle mac operations and 16-bit fixed- point dsp instructions to a ccelerate signal-processing algorithms and applications. pipeline techniques are employed so that all parts of the processing and memory systems can operate continuously. the arm968e-s is based on the armv5te five-stage pipeline architecture. typically, in a three-stage pipeline architecture, while one instruction is being executed its successor is being decoded and a third instruction is being fetched from memory. in the five-stage pipeline additional stages are added for memory access and write-back cycles. the arm968e-s processor also employs a unique architectural strategy known as thumb, which makes it idea lly suited to high-volume applications with memory restrictions or to applications where code density is an issue. the key idea behind thumb is that of a supe r-reduced instruction set. essentially, the arm968e-s processor has two instruction sets: ? standard 32-bit armv5te set ? 16-bit thumb set the thumb set's 16-bit instruction length allo ws it to approach twice the density of standard arm code while retaining most of the arm's performance advantage over a traditional 16-bit controller using 16-bit regi sters. this is possib le because thumb code operates on the same 32-bit register set as arm code. thumb code can provide up to 65 % of the code size of arm, and 160 % of the performance of an equivalent arm controller connected to a 16-bit memory system. the arm968e-s processor is described in detail in the arm968e-s data sheet ref. 2 . 6.3 on-chip flash memory system the LPC2921/2923/2925 includes a 128 kb, 256 kb, or 512 kb flash memory system. this memory can be used for both code and data storage. programming of the flash memory can be accomplished via the flash memory controller or the jtag. the flash controller also supports a 16 kb, byte-accessibl e on-chip eeprom integrated on the LPC2921/2923/2925. 6.4 on-chip static ram in addition to the two 16 kb tcms, the lp c2921/2923/2925 includes up two static ram memories of 16 kb each for a total of 32 kb (lpc2925 only) or 1 block of 16 kb (LPC2921/2923). both may be used for code and/or data storage. the 8 kb sram block for the etb can be used as static memory for code and data storage as well. however, dma access to this memory region is not supported.
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 11 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.5 memory map fig 3. LPC2921/2923/2925 memory map reserved dma interface to tcm pcr/vic control 0x0000 0000 0 gb 1 gb 4 gb 2 gb 0x4000 0000 0x2000 0000 0x8000 0000 0x8000 4000 0x8000 8000 0x8000 c000 0xe000 0000 0xe002 0000 0xe004 0000 0xe006 0000 0xe008 0000 0xe00a 0000 0xe00c 0000 0xe00e 0000 0xe010 0000 0xe014 0000 0xe018 3000 0xf000 0000 0xf080 0000 0xffff 8000 0xffff ffff reserved reserved reserved reserved reserved reserved reserved peripheral subsystem #0 peripheral subsystem #2 peripheral subsystem #4 peripheral subsystem #6 0xe018 2000 0xe018 0000 16 kb ahb sram 16 kb ahb sram (lpc2925 only) reserved usb controller dma controller 8 kb etb sram etb control reserved itcm/dtcm on-chip flash 0x2020 4000 0x0000 0000 0x0040 0000 0x0000 4000 0x0040 4000 0x0080 0000 0x2000 0000 16 kb itcm 16 kb dtcm reserved reserved no physical memory peripherals #6 mscss subsystem itcm/dtcm memory peripherals #2 peripheral subsystem 0xe004 1000 0xe004 2000 0xe004 3000 0xe004 4000 0xe004 6000 0xe004 8000 0xe004 a000 0xe004 b000 0xe004 f000 0xe005 0000 0xe006 0000 0xe004 c000 0xe004 9000 0xe004 7000 0xe004 5000 0xe004 0000 spi0 wdt timer0 timer1 timer2 timer3 uart0 uart1 spi1 spi2 gpio0 gpio1 reserved reserved peripherals #0 general subsystem 0xe000 1000 0xe000 2000 0xe000 2000 0xe002 0000 0xe000 0000 cfid scu event router peripherals #4 networking subsystem 0xe008 1000 0xe008 0000 can0 can1 0xe008 2000 0xe008 3000 0xe008 4000 0xe008 7000 0xe008 9000 0xe008 b000 0xe00a 0000 0xe008 a000 0xe008 8000 0xe008 6000 i2c0 i2c1 reserved can id lut can common regs lin0 lin1 can af regs 0xe00c 0000 0xe00c 1000 0xe00c 2000 0xe00c 3000 0xe00c 4000 0xe00c 5000 0xe00c 6000 0xe00c 7000 0xe00c 8000 0xe00c 9000 0xe00c a000 0xe00e 0000 reserved adc1 adc2 pwm0 pwm1 pwm3 quadrature encoder pwm2 mscss timer0 mscss timer1 pcr/vic subsystem 0xffff 8000 0xffff 9000 0xffff a000 0xffff b000 0xffff c000 0xffff f000 0xffff ffff pmu cgu1 reserved reserved reserved gpio5 reserved vic cgu0 rgu 512 mb shadow area remappable to shadow area LPC2921/2923/2925 002aae232 0x2002 0000 128 kb on-chip flash 256 kb on-chip flash flash controller 0x2000 0000 reserved 0x2004 0000 0x2008 0000 0x2020 0000 0x2020 4000 512 kb on-chip flash flash memory
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 12 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.6 reset, debug, test, and power description 6.6.1 reset and power-up behavior the LPC2921/2923/2925 contains external reset input and internal power-up reset circuits. this ensures that a re set is extended internally until the osc illators and flash have reached a stable state. see section 8 for trip levels of the inte rnal power-up reset circuit 1 . see section 9 for characteristics of the several start-up and initialization times. ta b l e 4 shows the reset pin. at activation of the rst_n pin the jtagsel pin is sensed as logic low. if this is the case the LPC2921/2923/2925 is assumed to be connected to debug hardware, and internal circuits re-program the source for the base_ sys_clk to be the crys tal oscillator instead of the low-power ring o scillator (lp_osc). this is requir ed because the clock rate when running at lp_osc speed is too low for the external debugging environment. 6.6.2 reset strategy the LPC2921/2923/2925 contains a central module, the reset generator unit (rgu) in the power, clock and reset subsystem (pcrss), which controls all internal reset signals towards the peripheral modules. the rgu provides individual reset control as well as the monitoring functions needed for tracing a reset back to source. 6.6.3 ieee 1149.1 interface pins (jtag boundary-scan test) the LPC2921/29 23/2925 contains boundary-scan test logic ac cording to ieee 1149.1, also referred to in this document as joint test action group (jtag). the boundary-scan test pins can be used to connect a debugg er probe for the embedded arm processor. pin jtagsel selects between boundary-scan mode and debug mode. ta b l e 5 shows the boundary- scan test pins. 1. only for 1.8 v power sources table 4. reset pin symbol direction description rst_n in external reset input, active low; pulled up internally table 5. ieee 1149.1 boundary-scan test and debug interface symbol description jtagsel tap controller select input. low level selects arm debug mode and high level selects boundary scan and flash programming; pulled up internally trst_n test reset input; pulled up internally (active low) tms test mode select input; pulled up internally tdi test data input, pulled up internally tdo test data output tck test clock input
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 13 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.6.3.1 etm/etb the etm provides real-time trace capabilit y for deeply embedded processor cores. it outputs information about processor executio n to a trace buffer. a software debugger allows configuration of the etm using a jtag interface and displays the trace information that has been captured in a format that a user can easily understand. the etb stores trace data produced by the etm. the etm/etb module has the following features: ? closely tracks the instructions th at the arm core is executing. ? on-chip trace data storage (etb). ? all registers are programmed through jtag interface. ? does not consume power when trace is not being used. ? thumb/java instruction set support. 6.6.4 power supply pins ta b l e 6 shows the power supply pins. 6.7 clocking strategy 6.7.1 clock architecture the LPC2921/2923/2925 contains several different internal clock areas. peripherals like timers, spi, uart, can and lin have their own individual clock sources called base clocks. all base clocks are generated by th e clock generator unit (cgu0). they may be unrelated in frequency and phase and can ha ve different clock sources within the cgu. the system clock for the cpu and ahb bus infrastructure has its own base clock. this means most peripherals are clocked independently from the system clock. see figure 4 for an overview of the clock areas within the device. within each clock area there may be multiple branch clocks, which offers very flexible control for power-management purposes. all branch clocks are outputs of the power management unit (pmu) and can be contro lled independently. br anch clocks derived from the same base clock are synchronous in frequency and phase. see section 6.15 for more details of clock and po wer control within the device. two of the base clocks generated by the cgu0 are used as input into a second, dedicated cgu (cgu1). the cgu1 uses its own pll and fractional dividers to generate the base clock for the usb controller and one base clock for an independent clock output. table 6. power supply pins symbol description v dd(core) digital core supply 1.8 v v ss(core) digital core ground (digital core, adc1/2) v dd(io) i/o pins supply 3.3 v v ss(io) i/o pins ground v dd(osc_pll) oscillator and pll supply v ss(osc_pll) oscillator and pll ground v dda(adc3v3) adc1 and adc2 3.3 v supply
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 14 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.7.2 base clock and branch clock relationship ta b l e 7 contains an overview of all the base blocks in the LPC2921/2923/2925 and their derived branch clocks. a short description is given of the hardware parts that are clocked with the individual branch clocks. in rele vant cases more deta iled information can be found in the specific subsystem description. some branch clocks have special protection since they clock vital system parts of the device and should not be switched off. see section 6.15.5 for more details of how to control the individual branch clocks. fig 4. LPC2921/2923/2925 overview of clock areas timer0/1 mtmr pwm0/1/2/3 adc1/2 qei modulation and sampling control subsystem base_mscss_clk branch clocks branch clocks base_adc_clk ba se_iclk0_clk base_iclk1_clk can0/1 global acceptance filter lin0/1 i2c0/1 networking subsystem base_ivnss_clk branch clocks reset/clock generation & power management power control subsystem base_pcr_clk branch clock gpio0/1/5 timer 0/1/2/3 spi0/1/2 uart0/1 wdt base_sys_clk cpu ahb multilayer matrix vic gpdma usb registers flash/sram general subsytem peripheral subsystem ahb to apb bridges system control event router cfid branch clocks base_safe_clk base_uart_clk base_spi_clk base_tmr_clk 002aae238 cgu0 cgu1 base_usb_clk base_out_clk usb clock out
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 15 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin table 7. base clock and branch clock overview base clock branch clock name parts of the device clocked by this branch clock remark base_safe_clk clk_safe watchdog timer [1] base_sys_clk clk_sys_cpu arm968e-s and tcms clk_sys_sys ahb bus infrastructure clk_sys_pcrss ahb side of bridge in pcrss clk_sys_fmc flash-memory controller clk_sys_ram0 embedded sram controller 0 (16 kb) clk_sys_ram1 embedded sram controller 1 (16 kb) (lpc2925 only) clk_sys_gess general subsystem clk_sys_vic vectored in terrupt controller clk_sys_pess peripheral subsystem [2] [4] clk_sys_gpio0 gpio bank 0 clk_sys_gpio1 gpio bank 1 clk_sys_gpio5 gpio bank 5 clk_sys_ivnss_a ahb side of bridge of ivnss clk_sys_mscss_a ahb side of bridge of mscss clk_sys_dma gpdma clk_sys_usb usb registers base_pcr_clk clk_pcr_slow pcr ss, cgu, rgu and pmu logic clock [1] , [3] base_ivnss_clk clk_ivnss_apb apb side of the ivnss clk_ivnss_canca can controller acceptance filter clk_ivnss_canc0 can channel 0 clk_ivnss_canc1 can channel 1 clk_ivnss_i2c0 i2c0 clk_ivnss_i2c1 i2c1 clk_ivnss_lin0 lin channel 0 clk_ivnss_lin1 lin channel 1 base_mscss_clk clk_mscss_apb apb side of the mscss clk_mscss_mtmr0 timer 0 in the mscss clk_mscss_mtmr1 timer 1 in the mscss clk_mscss_pwm0 pwm 0 clk_mscss_pwm1 pwm 1 clk_mscss_pwm2 pwm 2 clk_mscss_pwm3 pwm 3 clk_mscss_adc1_apb apb side of adc 1 clk_mscss_adc2_apb apb side of adc 2 clk_mscss_qei quadrature encoder
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 16 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin [1] this clock is always on (cannot be switched off for system safety reasons) [2] in the peripheral subsystem parts of the timers , watchdog timer, spi and uart have their own clock source. see section 6.12 for details. [3] in the power clock and reset control subsystem pa rts of the cgu, rgu, and pmu have their own clock source. see section 6.15 for details. [4] the clock should remain activated when syst em wake-up on timer or uart is required. 6.8 flash memory controller the flash memory has a 128-bit wide data interface and the flash controller offers two 128-bit buffer lines to improve system performance. the flash has to be programmed initially via jtag. in-system programming must be supported by the bootloader. flash memory contents can be protected by disabling jtag access. suspension of burning or erasing is not supported. the flash memory controller (fmc) interfaces to the embedded flash memory for two tasks: ? memory data transfer ? memory configuration via triggering, programming, and erasing the key features are: base_uart_clk clk_uart0 uart 0 interface clock clk_uart1 uart 1 interface clock base_iclk0_clk - clock for cgu1 input base_spi_clk clk_spi0 spi 0 interface clock clk_spi1 spi 1 interface clock clk_spi2 spi 2 interface clock base_tmr_clk clk_tmr0 timer 0 clock for counter part clk_tmr1 timer 1 clock for counter part clk_tmr2 timer 2 clock for counter part clk_tmr3 timer 3 clock for counter part base_adc_clk clk_adc1 control of adc 1, capture sample result clk_adc2 control of adc 2, capture sample result reserved - - base_iclk1_clk - clock for cgu1 input table 8. cgu1 base clock and branch clock overview base clock branch clock name parts of the device clocked by this branch clock remark base_out_clk clk_out_clk clock out pin base_usb_clk clk_usb_clk usb clock table 7. base clock and branch clock overview ?continued base clock branch clock name parts of the device clocked by this branch clock remark
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 17 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? programming by cpu via ahb ? programming by external programmer via jtag ? jtag access protection ? burn-finished and erase-finished interrupt 6.8.1 functional description after reset flash initialization is started. during this init ialization, flash access is not possible and ahb transfers to flas h are stalled, blocking the ahb bus. during flash initialization, the in dex sector is read to identify the status of the jtag access protection and sector security. if jtag acce ss protection is active, the flash is not accessible via jtag. in this case, arm debug facilities are disabled and flash-memory contents cannot be read. if sector security is active, only the unsecured sections can be read. flash can be read synchronously or asynchrono usly to the system clock. in synchronous operation, the flash goes into standby after returning the read data. started reads cannot be stopped, and speculative reading and dual buffering are therefore not supported. with asynchronous reading, transfer of the ad dress to the flash and of read data from the flash is done asynchronously, giving the fastes t possible response time. started reads can be stopped, so speculative reading and dual buffering are supported. buffering is offered because the flash has a 128-bit wide data interface while the ahb interface has only 32 bits. with buffering a buffer line holds the complete 128-bit flash word, from which four words can be read. without buffering every ahb data port read starts a flash read. a flash read is a slow process compared to the minimum ahb cycle time, so with buffering the average read time is reduced improving system performance. with single buffering, the most recently re ad flash word remains available until the next flash read. when an ahb data-port read transfer requires data from the same flash word as the previous read transfer, no new flash read is done and the read data is given without wait cycles. when an ahb data port read transfer requires data from a different flash word to that involved in the previous read transfer, a new flash read is done and wait states are given until the new read data is available. with dual buffering, a secondary buffer line is used, the output of the flash being considered as the primary buffer. on a primary buffer, hit data can be copied to the secondary buffer line, which a llows the flash to start a speculative read of the next flash word. both buffer lines are invalidated after: ? initialization ? configuration-register access ? data-latch reading ? index-sector reading the modes of operation are listed in ta b l e 9 .
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 18 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.8.2 flash layout the arm processor can program the flash for isp (in-system programming) through the flash memory controller. note that the flash al ways has to be programmed by ?flash words? of 128 bits (four 32-bit ahb bus words, hence 16 bytes). the flash memory is organized into eight ?sma ll? sectors of 8 kb each and up to 11 ?large? sectors of 64 kb each. the number of large se ctors depends on the device type. a sector must be erased before data can be written to it. the flash memory also has sector-wise protection. writing occurs per page which consists of 4096 bits (32 flash words). a small sector contains 16 pages; a large sector contains 128 pages. ta b l e 1 0 gives an overview of the flash-sector base addresses. table 9. flash read modes synchronous timing no buffer line for single (non-linear) reads; one flash-word read per word read single buffer line default mode of operation; most recently read flas h word is kept until another flash word is required asynchronous timing no buffer line one flash-word read per word read single buffer line most recently read flash word is kept until another flash word is required dual buffer line, single speculative on a buffer miss a flash read is done, followed by at most one speculative read; optimized for ex ecution of code with small loops (less than eight words) from flash dual buffer line, always speculative most recently used flash word is copied into second buffer line; next flash-word read is started; highest performance for linear reads table 10. flash sector overview flash memory sector number sector size (kb) flash memory address LPC2921 lpc2923 lpc2925 11 8 2000 0000h yes yes yes 12 8 2000 2000h yes yes yes 13 8 2000 4000h yes yes yes 14 8 2000 6000h yes yes yes 15 8 2000 8000h yes yes yes 16 8 2000 a000h yes yes yes 17 8 2000 c000h yes yes yes 18 8 2000 e000h yes yes yes 0 64 2001 0000h yes yes yes 1 64 2002 0000h no yes yes 2 64 2003 0000h no yes yes 3 64 2004 0000h no no yes 4 64 2005 0000h no no yes 5 64 2006 0000h no no yes 6 64 2007 0000h no no yes
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 19 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin the index sector is a special sector in which the jtag access protection and sector security are located. the address space bec omes visible by setting the fs_iss bit and overlaps the regular flash sector?s address space. note that the index sector, once programmed, cannot be erased. any flash operation must be executed out of sram (internal or external). 6.8.3 flash bridge wait-states to eliminate the delay associated with sy nchronizing flash-read data, a predefined number of wait-states must be programmed. these depend on flash-memory response time and system clock period. the minimum wa it-states value can be calculated with the following formulas: synchronous reading: (1) asynchronous reading: (2) remark: if the programmed number of wait-states is more than three, flash-data reading cannot be performed at full speed (i.e. with zero wait-states at the ahb bus) if speculative reading is active. 6.8.4 pin description the flash memory controller has no external pins. however, the flash can be programmed via the jtag pins, see section 6.6.3 . 6.8.5 clock description the flash memory controller is clocked by clk_sys_fmc, see section 6.7.2 . 6.8.6 eeprom eeprom is a non-volatile memo ry mostly used for storing relatively small amounts of data, for example for storing settings. it co ntains one 16 kb memory block and is byte-programmable and byte-erasable. the eeprom can be accessed only through the flash controller. 6.9 general purpose dm a (gpdma) controller the gpdma controller allows periphera l-to memory, memory-to-peripheral, peripheral-to-peripheral, and memory-to-memory transactions. each dma stream provides unidirectional serial dma transfer s for a single source and destination. for example, a bidirectional port requires one st ream for transmit and one for receives. the source and destination areas can each be either a memory region or a peripheral, and can be accessed through the same ahb master or one area by each master. wst t acc clk () t t tclk sys () ------------------ > 1 ? wst t acc addr () t tclk sys () --------------------- - > 1 ?
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 20 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin the gpdma controls eight dma channels with hardware prioritization. the dma controller interfaces to the system via two ahb bus masters, each with a full 32-bit data bus width. dma operations may be set up for 8-bit, 16-bit, and 32-bit data widths, and can be either big-endian or little-endian. incr ementing or non-incrementing addressing for source and destination are supported, as well as programmable dma burst size. scatter or gather dma is supported through the use of linked lists. this means that the source and destination areas do not have to occupy contiguous areas of memory. 6.9.1 dma support for peripherals the gpdma supports the following perip herals: spi0/1/2, uart0/1, and the i 2 c0/1-interfaces. the gpdma can access both embedded sram blocks, both tcms, external static memory, and flash memory. 6.9.2 clock description the dma controller is clocked by clk_ sys_dma derived fr om base_sys_clk, see section 6.7.2 . 6.10 usb interface the universal serial bu s (usb) is a 4-wire bus that supports communication between a host and one or more (up to 127) peripherals. the bus supports hot plugging and dynamic configuration of the devices. all transacti ons are initiated by the host controller. the LPC2921/2923/2925 usb inte rface includes a device cont roller with on-chip phy for device. details on typical usb inte rfacing solutions can be found in section 10.2 . 6.10.1 usb device controller the device controller enables 12 mbit/s data exchange with a usb host controller. it consists of a register interface, serial interface engine, endpoint buffer memory, and a dma controller. the serial interface engine dec odes the usb data stream and writes data to the appropriate endpoint buffer. the status of a completed usb transfer or error condition is indicated via status registers. an interrupt is also generated if enabled. when enabled, the dma controller transfers data be tween the endpoint buffer and the on-chip sram. the usb device controller has the following features: ? fully compliant with usb 2.0 specification (full speed) . ? supports 32 physical (16 logical) endpoints with a 2 kb endpoint buffer ram. ? supports control, bulk, interrupt and isochronous endpoints. ? scalable realization of endpoints at run time. ? endpoint maximum packet size selection (up to usb maximum specification) by software at run time. ? supports softconnect and goodlink features. ? while usb is in the suspend mode, the LPC2921/2923/2925 can enter the reduced power mode and wake up on usb activity. ? supports dma transfers with the on-chip sram blocks on all non-control endpoints. ? allows dynamic switching between cpu-controlled slave and dma modes. ? double buffer implementation for bulk and isochronous endpoints.
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 21 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.10.2 pin description 6.10.3 clock description access to the usb registers is cloc ked by the clk_sys_usb, derived from base_sys_clk, see section 6.7.2 . the cgu1 provides an independent base clock to the usb block, base_usb_clk (see section 6.15.3 ). table 11. usb device port pins pin name direction description usb_vbus i usb_vbus status input. when this function is not enabled via its corresponding pinsel register, it is driven high internally. usb_d+ i/o positive differential data usb_d? i/o negative differential data usb_connect o softconnect control signal usb_up_led o goodlink led control signal
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 22 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.11 general subsystem 6.11.1 general subsystem clock description the general subsystem is clocked by clk_sys_gess, see section 6.7.2 . 6.11.2 chip and feature identification the chip/feature id (cfid) module contains registers which show and control the functionality of the chip. it contains an id to identify the silic on and also registers containing information about the featur es enabled or disabled on the chip. the key features are: ? identification of product ? identification of features enabled the cfid has no external pins. 6.11.3 system control unit (scu) the system control unit contains system-relat ed functions.the key feat ure is configuration of the i/o port-pins multiplexer. it defines the function of each i/o pin of the LPC2921/2923/2925. the i/o pin configurati on should be consistent with peripheral function usage. the scu has no external pins. 6.11.4 event router the event router provides bus- controlled routing of input even ts to the vectored interrupt controller for use as interrupt or wake-up signals. key features: ? up to 16 level-sensitive exte rnal interrupt pins, including the receive pins of spi, can, lin, and uart, as well as the i 2 c-bus scl pins plus three internal event sources. ? input events can be used as interrup t source either di rectly or latched (edge-detected). ? direct events disappear when the event becomes inactive. ? latched events remain active until they are explicitly cleared. ? programmable input level and edge polarity. ? event detection maskable. ? event detection is fully asynchronous, so no clock is required. the event router allows the event source to be defined, its polarity and activation type to be selected and the interrupt to be masked or enabled. the event router can be used to start a clock on an external event. the vectored interrupt-controller inputs are active high.
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 23 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.11.4.1 pin description the event router module in the LPC2921/2923/ 2925 is connected to the pins listed below. the pins are combined with other functions on the port pins of the LPC2921/2923/2925. ta b l e 1 2 shows the pins connected to the event router. 6.12 peripheral subsystem 6.12.1 peripheral subsystem clock description the peripheral subsystem is clocked by a number of different clocks: ? clk_sys_pess ? clk_uart0/1 ? clk_spi0/1/2 ? clk_tmr0/1/2/3 ? clk_safe see section 6.7.2 6.12.2 watchdog timer the purpose of the watchdog timer is to reset the arm9 processor within a reasonable amount of time if the processor enters an error state. the watchdog generates a system reset if the user program fails to trigger it correctly within a predetermined amount of time. key features: ? internal chip reset if not periodically triggered ? timer counter register runs on always-on safe clock ? optional interrupt generation on watchdog time-out table 12. event-router pin connections symbol direction description default polarity extint 0 - 3 i external interrupt input 0 - 3 1 can0 rxd i can0 receive data input wake-up 0 can1 rxd i can1 receive data input wake-up 0 i2c0_scl i i2c0 scl clock input 0 i2c1_scl i i2c1 scl clock input 0 usb_d+ i usb d+ data input lin0 rxd i lin0 receive data input wake-up 0 lin1 rxd i lin1 receive data input wake-up 0 spi0 sdi i spi0 receive data input 0 spi1 sdi i spi1 receive data input 0 spi2 sdi i spi2 receive data input 0 uart0 rxd i uart0 receive data input 0 uart1 rxd i uart1 receive data input 0 - na can interrupt (internal) 1 - na vic fiq (internal) 1 - na vic irq (internal) 1
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 24 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? debug mode with disabling of reset ? watchdog control register change-protected with key ? programmable 32-bit watchdog timer period with programmable 32-bit prescaler. 6.12.2.1 functional description the watchdog timer consists of a 32-bit counter with a 32-bit prescaler. the watchdog should be programmed with a time-out value and then periodically restarted. when the watchdog times out, it generates a reset through the rgu. to generate watchdog interrupts in watchdog debug mode the interrupt has to be enabled via the interrupt enable register. a watchdog-ov erflow interrupt can be cleared by writing to the clear-interrupt register. another way to prevent resets during debu g mode is via the pause feature of the watchdog timer. the watchdog is stalled when the arm9 is in debug mode and the pause_enable bit in the watchdog timer control register is set. the watchdog reset output is fed to the reset generator unit (rgu). the rgu contains a reset source register to identify the reset source when the device has gone through a reset. see section 6.15.4 . 6.12.2.2 clock description the watchdog timer is clocked by two di fferent clocks; clk_sys_pess and clk_safe, see section 6.7.2 . the register interface towards the system bus is clocked by clk_sys_pess. the timer and prescale counters are cloc ked by clk_safe which is always on. 6.12.3 timer the LPC2921/2923/2925 contains six identical timers: four in the peripheral subsystem and two in the modulation and sampling control subsystem (mscss) located at different peripheral base addresses. this section de scribes the four timers in the peripheral subsystem. each timer has four capture in puts and/or match outputs. connection to device pins depends on the configuration programmed into the port function-select registers. the two timers located in the msc ss have no external capture or match pins, but the memory map is identical, see section 6.14.6 . one of these timers has an external input for a pause function. the key features are: ? 32-bit timer/counter with programmable 32-bit prescaler ? up to four 32-bit capture channels per timer. these take a snapshot of the timer value when an external signal connected to the timerx capn input changes state. a capture event may also optionally generate an interrupt ? four 32-bit match registers per timer that allow: ? continuous operation with optional interrupt generation on match ? stop timer on match with optional interrupt generation ? reset timer on match with optional interrupt generation ? up to four external outputs per timer co rresponding to match registers, with the following capabilities:
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 25 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? set low on match ? set high on match ? toggle on match ? do nothing on match ? pause input pin (mscss timers only) the timers are designed to count cycles of the clock and optionally generate interrupts or perform other actions at specif ied timer values, based on four match registers. they also include capture inputs to trap the timer value when an input signal changes state, optionally generating an interrupt. the core function of the timers consists of a 32 bit prescale counter triggering the 32 bit timer counter. both counters run on clock clk_tmrx (x runs from 0 to 3) and all time references are related to the period of this clock. note that each timer has its individual clock source within the peripheral subsystem. in the modulation and sampling subsystem each timer also has its own individual clock source. see section section 6.15.5 for information on generation of these clocks. 6.12.3.1 pin description the four timers in the peripheral subsyst em of the LPC2921/2923/2925 have the pins described below. the two timers in the modulation and sampling subsystem have no external pins except for the pause pin on mscss timer 1. see section 6.14.6 for a description of these timers and their associ ated pins. the timer pins are combined with other functions on the port pins of the LPC2921/2923/2925, see section 6.11.3 . table ta b l e 1 3 shows the timer pins (x runs from 0 to 3). [1] note that cap0 and cap1 are not pinned out on timer1. 6.12.3.2 clock description the timer modules are clocked by two di fferent clocks; clk_sys_pess and clk_tmrx (x = 0-3), see section 6.7.2 . note that each timer has its own clk_tmrx branch clock for power management. the frequency of all these clocks is identical as they are derived from the same base clock base_clk_tmr. th e register interfac e towards the system bus is clocked by clk_sys_pess. the timer and prescale counte rs are clocked by clk_tmrx. 6.12.4 uarts the LPC2921/2923/2925 contains two identical uarts located at different peripheral base addresses. the key features are: table 13. timer pins symbol pin name direction description timerx cap[0] capx[0] in timer x capture input 0 timerx cap[1] capx[1] in timer x capture input 1 timerx cap[2] capx[2] in timer x capture input 2 timerx cap[3] capx[3] in timer x capture input 3 timerx mat[0] matx[0] out timer x match output 0 timerx mat[1] matx[1] out timer x match output 1 timerx mat[2] matx[2] out timer x match output 2 timerx mat[3] matx[3] out timer x match output 3
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 26 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? 16-byte receive and transmit fifos. ? register locations conform to 550 industry standard. ? receiver fifo trigger points at 1 byte, 4 bytes, 8 bytes and 14 bytes. ? built-in baud rate generator. ? support for rs-485/9-bit mode allows both software address detection and automatic address detection using 9-bit mode. the uart is commonly used to implement a serial interface such as rs232. the LPC2921/2923/2925 contains two industry-sta ndard 550 uarts with 16-byte transmit and receive fifos, but they can also be put into 450 mode without fifos. remark: the lin controller can be configured to provide two additional standard uart interfaces (see section 6.13.2 ). 6.12.4.1 pin description the uart pins are combined with other functions on the port pins of the LPC2921/2923/2925. ta b l e 1 4 shows the uart pins (x runs from 0 to 1). 6.12.4.2 clock description the uart modules are clocked by two different clo cks; clk_sys_pess and clk_uartx (x = 0-1), see section 6.7.2 . note that each uart has its own clk_uartx branch clock for power management. the frequen cy of all clk_uartx clocks is identical since they are derived fr om the same base clock base_clk_uart. the register interface towards the system bus is clocked by clk_sys_p ess. the baud generator is clocked by the clk_uartx. 6.12.5 serial peripheral interface (spi) the LPC2921/2923/2925 contains three serial peripheral interface modules (spis) to allow synchronous serial communication with slave or master peripherals. the key features are: ? master or slave operation ? each spi supports up to four slaves in sequential multi-slave operation ? supports timer-triggered operation ? programmable clock bit rate and prescale based on spi source clock (base_spi_clk), independent of system clock ? separate transmit and receive fifo memo ry buffers; 16 bits wide, 32 locations deep ? programmable choice of interface operation: motorola spi or texas instruments synchronous serial interfaces ? programmable data-frame size from 4 to 16 bits ? independent masking of transmit fifo, rece ive fifo and receive overrun interrupts ? serial clock-rate mast er mode: fserial_clk f clk(spi) /2 table 14. uart pins symbol pin name direction description uartx txd txdx out uart channel x transmit data output uartx rxd rxdx in uart channel x receive data input
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 27 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? serial clock-rate slav e mode: fserial_clk = f clk(spi) /4 ? internal loopback test mode the spi module can operate in: ? master mode: ? normal transmission mode ? sequential slave mode ? slave mode 6.12.5.1 functional description the spi module is a master or slave interf ace for synchronous serial communication with peripheral devices that have either motorola spi or texas instruments synchronous serial interfaces. the spi module performs serial-to-parallel conv ersion on data received from a peripheral device. the transmit and receive paths are buffered with fifo memories (16 bits wide 32 words deep). serial data is transmitted on spi_txd and received on spi_rxd. the spi module includes a programmable bit-ra te clock divider and prescaler to generate the spi serial clock from the input clock clk_spix. the spi module?s operating mode, frame format, and word size are programmed through the slvn_settings registers. a single combined interrupt request spi_intreq output is asserted if any of the interrupts are asserted and unmasked. depending on the operating mode selected , the spi_cs_out outputs operate as an active-high frame synchronization output for texas instruments synchronous serial frame format or an active -low chip select for spi. each data frame is between four and 16 bits long, depending on the size of words programmed, and is transmitted starting with the msb. 6.12.5.2 pin description the spi pins are combined with other functions on the port pins of the LPC2921/2923/2925, see section 6.11.3 . ta b l e 1 5 shows the spi pins (x runs from 0 to 2; y runs from 0 to 3). [1] direction of spix scs and spix sck pins depends on master or slave mode. these pins are output in master mode, input in slave mode. [2] in slave mode there is only one chip select input pin, spix scs0. the other chip selects have no function in slave mode. table 15. spi pins symbol pin name direction description spix scsy scsx[y] in/out spix chip select [1] [2] spix sck sckx in/out spix clock [1] spix sdi sdix in spix data input spix sdo sdox out spix data output
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 28 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.12.5.3 clock description the spi modules are clocked by two di fferent clocks; clk_ sys_pess and clk_spix (x = 0, 1, 2), see section 6.7.2 . note that each spi has its own clk_spix branch clock for power management. the frequency of all clocks clk_spix is identical as they are derived from the same base clock base_clk_spi. the register interface to wards the system bus is clocked by clk_sys_pess. the serial-clo ck rate divisor is clocked by clk_spix. the spi clock frequency can be controlled by the cgu. in master mode the spi clock frequency (clk_spix) must be set to at least twice the spi serial clock rate on the interface. in slave mode clk_spix must be set to four times the spi serial clock rate on the interface. 6.12.6 general-purpose i/o the LPC2921/2923/2925 contains two general-purpose i/o ports located at different peripheral base addresses. all i/o pins are bidirectional, and the direction can be programmed individually. the i/o pad behavior depends on the configuration programmed in the port function-select registers. the key features are: ? general-purpose parallel inputs and outputs ? direction control of individual bits ? synchronized input sampling for stable input-data values ? all i/o defaults to input at reset to avoid any possible bus conflicts 6.12.6.1 functional description the general-purpose i/o provides individual c ontrol over each bidirectional port pin. there are two registers to control i/o direction and output level. the inputs are synchronized to achieve stable read-levels. to generate an open-drain output, set the bit in the output register to the desired value. use the direction register to control the signa l. when set to outpu t, the output driver actively drives the value on the output: when set to input the signal floats and can be pulled up internally or externally. 6.12.6.2 pin description the five gpio ports in the LPC2921/2923/2925 have the pins listed below. the gpio pins are combined with other functions on th e port pins of th e LPC2921/2923/2925. table 16 shows the gpio pins. table 16. gpio pins symbol pin name direction description gpio0 pin[31:0] p0[31:0] in/out gpio port x pins 31 to 0 gpio1 pin[27:0] p1[27:0] in/out gpio port x pins 27 to 0 gpio5 pin[19:18] p5[19:18] in/out gpio port x pins 19 and 18
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 29 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.12.6.3 clock description the gpio modules are clocked by several clocks, all of which are derived from base_sys_clk; clk_sys_pess and clk_sys_ gpiox (x = 0, 1, 5), see section 6.7.2 . note that each gpio has its ow n clk__sys_gpiox branch clock for power management. the frequency of all cl ocks clk_sys_gpiox is identical to clk_sys_pess since they are derived from the same base clock base_sys_clk. 6.13 networking subsystem 6.13.1 can gateway controller area network (can) is the definition of a high-performance communication protocol for serial data communication. the two can controllers in the LPC2921/2923/2925 provide a full implementation of the can protocol according to the can specification version 2.0b . the gateway concept is fully scalable with the number of can controllers, and always operates together with a separate powerful and flexible hardware acceptance filter. the key features are: ? supports 11-bit as well as 29-bit identifiers ? double receive buffer and triple transmit buffer ? programmable error-warning limit and error counters with read/write access ? arbitration-lost capture and error-code capture with detailed bit position ? single-shot transmission (i.e. no re-transmission) ? listen-only mode (no acknowledge; no active error flags) ? reception of ?own? message s (self-reception request) ? full can mode for message reception 6.13.1.1 global acceptance filter the global acceptance filter provides look-up of received identifiers - called acceptance filtering in can terminology - for all the can controllers. it in cludes a can id look-up table memory, in which software maintains one to five sections of identifiers. the can id look-up table memory is 2 kb large (512 words, each of 32 bits). it can contain up to 1024 standard frame identifiers or 512 extended frame identifiers or a mixture of both types. it is also possible to define identifier groups for standard and extended message formats. 6.13.1.2 pin description the two can controllers in the LPC2921/29 23/2925 have the pins listed below. the can pins are combined with other functions on the port pins of th e LPC2921/2923/2925. ta b l e 1 7 shows the can pins (x runs from 0 to 1). table 17. can pins symbol pin name direction description canx txd txdc0/1 out can channel x transmit data output canx rxd rxdc0/1 in can channel x receive data input
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 30 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.13.2 lin the LPC2921/2923/2925 contain two lin 2.0 master controllers. these can be used as dedicated lin 2.0 master controllers with addi tional support for sync break generation and with hardware implementation of the li n protocol according to spec 2.0. the key features are: ? complete lin 2.0 message handling and transfer ? one interrupt per lin message ? slave response time-out detection ? programmable sync-break length ? automatic sync-field an d sync-break generation ? programmable inter-byte space ? hardware or software parity generation ? automatic checksum generation ? fault confinement ? fractional baud rate generator 6.13.2.1 pin description the two lin 2.0 master controllers in the lp c2921/2923/2925 have the pins listed below. the lin pins are combined with other functions on the port pins of the LPC2921/2923/2925. ta b l e 1 8 shows the lin pins. for more information see ref. 1 subsection 3.43, lin master controller. remark: both lin channels can be also configured as uart channels. 6.13.3 i 2 c-bus serial i/o controllers the LPC2921/2923/2925 each contain two i 2 c-bus controllers. the i 2 c-bus is bidirectional for inter-ic contro l using only two wires: a serial clock line (scl) and a serial data line (sda). each device is recognized by a unique address and can operate as either a receiver-only device (e.g., an lcd driver) or as a transmitter with the capability to both receive and send information (such as memory). transmitters and/or receivers can operate in either master or sl ave mode, depending on whether the chip has to initiate a data transfer or is only addressed. the i 2 c is a multi-master bus, and it can be controlled by more than one bus master connected to it. the main features if the i 2 c-bus interfaces are: ? i 2 c0 and i 2 c1 use standard i/o pins with bit rates of up to 400 kbit/s (fast i 2 c-bus) and do not support powering off of indivi dual devices connected to the same bus lines. ? easy to configure as master, slave, or master/slave. table 18. lin controller pins symbol pin name direction description lin0/1 txd txdl0/1 out lin channel 0/1 transmit data output lin0/1 rxd rxdl0/1 in lin channel 0/1 receive data input
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 31 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? programmable clocks allow versatile rate control. ? bidirectional data transfer between masters and slaves. ? multi-master bus (no central master). ? arbitration between simultaneously transmit ting masters without corruption of serial data on the bus. ? serial clock synchronization allows devices with different bit rates to communicate via one serial bus. ? serial clock synchronization can be used as a handshake mechanism to suspend and resume serial transfer. ? the i 2 c-bus can be used for test and diagnostic purposes. ? all i 2 c-bus controllers support multiple address recognition and a bus monitor mode. 6.13.3.1 pin description [1] note that the pins are not i 2 c-bus compliant open-drain pins. 6.14 modulation and samp ling control subsystem the modulation and sampling control sub system (mscss) in the LPC2921/2923/2925 includes four pulse-width modulators (pwm s), two 10-bit successive approximation analog-to-digital converters (adcs) and two timers. the key features of the mscss are: ? two 10-bit, 400 ksamples/s, 8-channel adcs with 3.3 v inputs and various trigger- start options. ? four 6-channel pwms (pulse-width modulators) with capture and trap functionality. ? two dedicated timers to schedule and synchronize the pwms and adcs. ? quadrature encoder interface. 6.14.1 functional description the mscss contains pulse-width modulator s (pwms), analog-to-digital converters (adcs) and timers. figure 5 provides an overview of the mscss. an ahb-to-apb bus brid ge takes care of communication with the ahb system bus. two internal timers are dedicated to this subsystem. mscss timer 0 can be used to generate start pulses for the adcs and the first pwm. the second timer (mscss timer 1) is used to generate ?carrier? signals for the pwms. these carrier patterns can be used, for example, in applications requiring current control. several other trigger possibilities are provided for the adcs (external, cascaded or following a pwm). the capture inputs of both timers can also be used to capture the start pulse of the adcs. table 19. i 2 c-bus pins [1] symbol pin name direction description i2c scl0/1 scl0/1 i/o i2 c clock input/output i2c sda0/1 sda0/1 i/o i2c data input/output
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 32 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin the pwms can be used to generate waveforms in which the frequency, duty cycle and rising and falling edges can be controlled very precisely. capt ure inputs are provided to measure event phases compared to the main counter. depending on the applications, these inputs can be connected to digital sensor motor outputs or digital external signals. interrupt signals are generated on several events to closely interact with the cpu. the adcs can be used for any application nee ding accurate digitized data from analog sources. to support applications like motor control, a mechanism to synchronize several pwms and adcs is availabl e (sync_in and sync_out). note that the pwms run on the pwm cloc k and the adcs on the adc clock, see section 6.15.2 .
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 33 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin fig 5. modulation and sampling control sub system (mscss) block diagram 002aae248 pwm0 mat[5:0] pwm1 mat[5:0] pwm2 mat[5:0] pwm3 mat[5:0] pwm0 cap[2:0] pause mscss timer0 mscss timer1 adc1 adc2 pwm0 pwm1 adc1 in[7:0] adc2 in[7:0] adc2 ext start qei pwm1 cap[2:0] pwm2 trap pwm2 cap[2:0] pwm3 trap pwm3 cap[2:0] start start start synch pwm2 synch pwm3 synch carrier carrier carrier carrier pha0 phb0 mscss ahb-to-apb bridge capture capture
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 34 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.14.2 pin description the pins of the LPC2921/2923/2925 mscss associated with the two adc modules are described in section 6.14.4.2 . pins connected to the four pwm modules are described in section 6.14.5.4 , pins directly connected to the mscss timer 1 module are described in section 6.14.6.1 , and pins connected to the quadrature encoder interface are described in section 6.14.7.1 . remark: the idx0 function for the qei, the external start function for adc1, and the trap0/1 functions for the pwm0/1 are no t pinned out on the LPC2921/2923/2925. 6.14.3 clock description the mscss is clocked from a number of different sources: ? clk_sys_mscss_a clocks the ahb si de of the ahb-to-apb bus bridge ? clk_mscss_apb clocks the subsystem apb bus ? clk_mscss_mtmr0/1 clocks the timers ? clk_mscss_pwm0..3 clocks the pwms. each adc has two clock areas; a apb part clocked by clk_ms css_adcx_apb (x = 1 or 2) and a control part for the analog section clocked by clk_adcx = 1 or 2), see section 6.7.2 . all clocks are derived from the base_ms css_clk, except fo r clk_sys_mscss_a which is derived form base_sys_clk, and th e clk_adcx clocks which are derived from base_clk_adc. if specific pwm or adc modules are not used their corresponding clocks can be switched off. 6.14.4 analog-to-digital converter the mscss in the LPC2921/2923/2925 inclu des two 10-bit successive-approximation analog-to-digital converters. the key features of the adc interface module are: ? adc1 and adc2: eight analog inputs; time -multiplexed; measurement range up to 3.3 v. ? external reference-level inputs. ? 400 ksamples per second at 10-bit resolution up to 1500 ksamples per second at 2-bit resolution. ? programmable resolution from 2-bit to 10-bit. ? single analog-to-digital conversion scan mode and continuous analog-to-digital conversion scan mode. ? optional conversion on transition on external start input, timer capture/match signal, pwm_sync or ?previous? adc. ? converted digital values are stored in a register for each channel. ? optional compare condition to generate a ?less than? or an ?equal to or greater than? compare-value indication for each channel. ? power-down mode.
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 35 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.14.4.1 functional description the adc block diagram, figure 6 , shows the basic architecture of each adc. the adc functionality is divided into two major parts; one part running on the mscss subsystem clock, the other on the adc clock. this split into two clock domains affects the behavior from a system-level perspective. the actual analog-to-digital conversions take place in the adc clock domain, but system control takes place in the system clock domain. a mechanism is provided to modify configurat ion of the adc and co ntrol the moment at which the updated configuration is transferred to the adc domain. the adc clock is limited to 4.5 mhz maximum frequency and should always be lower than or equal to the system clock frequency. to meet this constraint or to select the desired lower sampling frequency, the clock generation unit provides a programmable fractional system-clock divider dedicated to the adc clock. conversion rate is determined by the adc clock frequency divided by the number of resolution bits plus one. accessing adc registers requires an enabled adc cl ock, which is controllable via the clock generation unit, see section 6.15.2 . each adc has four start inputs . note that start 0 and start 2 are captured in the system clock domain while start 1 and start 3 are captured in the adc domain. the start inputs are connected at mscss level, see section 6.14 for details. 6.14.4.2 pin description the two adc modules in the mscss have the pins described below. the adcx input pins are combined with other functions on t he port pins of the LPC2921/2923/2925. the vrefn and vrefp pins are common for both adcs. table 20 shows the adc pins. fig 6. adc block diagram 002aae251 adc start 2 adc start 0 apb clock (base_mscss_clk) adc clock (up to 4.5 mhz) (base_adc_clk) apb system bus irq scan irq compare adc2 in[7:0] adc start 1 adc start 3 sync_out adc domain system domain adc control adc registers 3.3 v adc2 3.3 v adc1 analog mux conversion data update configuration data irq adc1 in[7:0] analog mux 3.3 v in 3.3 v in
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 36 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin remark: note that the adc1 and adc2 accept an input voltage up to of 3.6 v (see ta b l e 3 1 ) on the adc1/2 in pins. if the adc is not used, the pins are 5 v tolerant. 6.14.4.3 clock description the adc modules are clocked from two di fferent sources; clk_mscss_adcx_apb and clk_adcx (x = 1 or 2), see section 6.7.2 . note that each adc has its own clk_adcx and clk_mscss_adcx_apb br anch clocks for power management. if an adc is unused both its clk_mscss_adcx_apb and clk_adcx can be switched off. the frequency of all t he clk_mscss_adcx_apb clocks is identical to clk_mscss_apb since they are derived from the same base clock base_mscss_clk. likewise the fr equency of all the clk_a dcx clocks is identical since they are derived from t he same base clock base_adc_clk. the register inte rface towards the system bus is clocked by clk_ mscss_adcx_apb. control logic for the analog section of the adc is clocked by clk_adcx, see also figure 6 . 6.14.5 pulse width modulator (pwm) the mscss in the LPC2921/2923/2925 inclu des four pwm modules with the following features. ? six pulse-width modulated output signals ? double edge features (rising and falling edges programmed individually) ? optional interrupt generation on match (each edge) ? different operation modes: continuous or run-once ? 16-bit pwm counter and 16-bit prescale counter allow a large range of pwm periods ? a protective mode (trap) holding the output in a software-controllable state and with optional interrupt generation on a trap event ? three capture registers and capture trigger pins with optional interrupt generation on a capture event ? interrupt generation on match event, capture event, pwm counter overflow or trap event ? a burst mode mixing the external carrier signal with internally generated pwm ? programmable sync-delay output to tr igger other pwm modules (master/slave behavior) table 20. analog to digital converter pins symbol pin name direction description adc1/2 in[7:0] in1/2[7:0] in analog input for 3.3 v adc1/2, channel 7 to channel 0 adc2_ext_start cap1[2] in adc external start-trigger input vrefn vrefn in adc low reference level vrefp vrefp in adc high reference level
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 37 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.14.5.1 functional description the ability to provide flexible waveforms allows pwm blocks to be used in multiple applications; e.g. dimmer/lam p control and fan control. pu lse-width modula tion is the preferred method for regulating power since no additional heat is generated, and it is energy-efficient when compared with linea r-regulating voltage control networks. the pwm delivers the waveforms/pulses of the desired duty cycles and cycle periods. a very basic application of these pulses ca n be in controlling the amount of power transferred to a load. since the duty cycle of the pulses can be controlled, the desired amount of power can be transferred for a controlled duration. two examples of such applications are: ? dimmer controller: the flexibility of providi ng waves of a desired duty cycle and cycle period allows the pwm to control the amount of power to be transferred to the load. the pwm functions as a dimmer co ntroller in this application ? motor controller: the pwm provides multi- phase outputs, and these outputs can be controlled to have a certain pattern sequence. in this way the force/torque of the motor can be adjusted as desired. this makes the pwm function as a motor drive. the pwm block diagram in figure 7 shows the basic architecture of each pwm. pwm functionality is split into two major parts, a apb domain and a pwm dom ain, both of which run on clocks derived from the base_mscss_cl k. this split into two domains affects behavior from a system-level perspective. the actual pwm and prescale counters are located in the pwm domain but system control takes place in the apb domain. fig 7. pwm block diagram 002aad837 apb system bus irq pwm irq capt_match pwm control & registers update capture data pwm counter value config data irq's pwm, counter, prescale counter & shadow registers match outputs capture inputs trap input carrier inputs sync_in sync_out transfer_enable_in transfer_enable_out apb domain pwm domain
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 38 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin the actual pwm consists of two counters; a 16-bit prescale counter and a 16-bit pwm counter. the position of the rising an d falling edges of the pwm outputs can be programmed individually. the prescale counter allows high system bus frequencies to be scaled down to lower pwm periods. registers are available to capture the pwm counter values on external events. note that in the modulation and sampling subsystem, each pwm has its individual clock source clk_mscss_pwmx (x runs from 0 to 3). both the prescale and the timer counters within each pwm run on this cloc k clk_mscss_pwmx, and all time references are related to the period of this clock. see section 6.15 for information on generation of these clocks. 6.14.5.2 synchronizing the pwm counters a mechanism is included to synchronize the pwm period to other pwms by providing a sync input and a sync output with programmable delay. several pwms can be synchronized using the trans_enable_in/tran s_enable_out and sync_in/sync_out ports. see figure 5 for details of the connections of th e pwm modules within the mscss in the LPC2921/2923/2925. pwm 0 can be master over pwm 1; pwm 1 can be master over pwm 2, etc. 6.14.5.3 master and slave mode a pwm module can provide synchronization si gnals to other modules (also called master mode). the signal sync_out is a pulse of one clock cycle generated when the internal pwm counter (re)starts. the signal trans_enable_out is a pulse synchronous to sync_out, generated if a transfer from system registers to pwm shadow register s occurred when the pwm counter restarted. a delay may be inserted between the counter start and generation of trans_enable_out and sync_out. a pwm module can use input signals trans_enable_in and sync_in to synchronize its internal pwm counter and the transfer of shadow registers (slave mode). 6.14.5.4 pin description each of the four pwm modules in the mscss has the following pins. these are combined with other functions on the port pins of the LPC2921/2923/2925. ta b l e 2 1 shows the pwm0 to pwm3 pins (n = 0 to 3). table 21. pwm pins symbol pin name direction description pwmn cap[0] pcapn[0] in pwm n capture input 0 pwmn cap[1] pcapn[1] in pwm n capture input 1 pwmn cap[2] pcapn[2] in pwm n capture input 2 pwmn mat[0] pmatn[0] out pwm n match output 0 pwmn mat[1] pmatn[1] out pwm n match output 1 pwmn mat[2] pmatn[2] out pwm n match output 2 pwmn mat[3] pmatn[3] out pwm n match output 3 pwmn mat[4] pmatn[4] out pwm n match output 4 pwmn mat[5] pmatn[5] out pwm n match output 5 pwmn trap trapn in pwm n trap input (on the LPC2921/2923/2925 n= 2, 3)
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 39 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.14.5.5 clock description the pwm modules are clocked by cl k_mscss_pwmx (x = 0 - 3), see section 6.7.2 . note that each pwm has its own clk_ mscss_pwmx branch clock for power management. the frequency of all these clocks is identical to clk_mscss_apb since they are derived from the same base clock base_mscss_clk. also note that unlike the timer modules in the peripheral subsystem, the actual timer counter registers of the pwm modules run at the same clock as the apb system interface clk_mscss_apb. this clock is in dependent of the ahb system clock. if a pwm module is not used its clk_mscss_ pwmx branch clock ca n be switched off. 6.14.6 timers in the mscss the two timers in the mscss are functionally identical to the timers in the peripheral subsystem, see section 6.12.3 . the features of the timers in the mscss are the same as the timers in the peripheral subsystem, but the capture inputs and match outputs are not available on the device pins. these signals are instead connected to the adc and pwm modules as outlined in the description of the mscss, see section 6.14.1 . see section section 6.12.3 for a functional description of the timers. 6.14.6.1 pin description mscss timer 0 has no external pins. mscss timer 1 has a pause pin available as external pin. the pause pin is combined with other functions on the port pins of the LPC2921/2923/2925. ta b l e 2 2 shows the mscss timer 1 external pin. 6.14.6.2 clock description the timer modules in the mscss are clocked by clk_mscss_mtmrx (x = 0 to 1), see section 6.7.2 . note that each timer has its own clk_mscss_mtmrx branch clock for power management. the frequency of all thes e clocks is identica l to clk_mscss_apb since they are derived from t he same base clock base_mscss_clk. note that, unlike the timer modules in the peri pheral subsystem, the actual timer counter registers run at the same clock as the apb system interface clk_mscss_apb. this clock is independent of the ahb system clock. if a timer module is not used its clk_mscss_mtmrx branch clock can be switched off. 6.14.7 quadrature encoder interface (qei) a quadrature encoder, also known as a 2-chan nel incremental encoder, converts angular displacement into two pulse signals. by mo nitoring both the number of pulses and the relative phase of the two signals, the user ca n track the position, direction of rotation, and velocity. in addition, a third channel, or index signal, can be used to reset the position counter. the quadrature encoder interface decodes the digital pulses from a quadrature encoder wheel to integrate position over ti me and determine direction of rotation. in addition, the qei can capture the velocity of the encoder wheel. table 22. mscss timer 1 pin symbol direction description mscss pause in pause pin for mscss timer 1
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 40 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin the qei has the following features: ? tracks encoder position. ? increments/ decrements depending on direction. ? programmable for 2x or 4x position counting. ? velocity capture using built-in timer. ? velocity compare function with less than interrupt. ? uses 32-bit registers for position and velocity. ? three position compare registers with interrupts. ? index counter for re volution counting. ? index compare register with interrupts. ? can combine index and position interrupts to produce an interrupt for whole and partial revolution displacement. ? digital filter with prog rammable delays for encoder input signals. ? can accept decoded signal inputs (clk and direction). ? connected to apb. 6.14.7.1 pin description the qei module in the mscss has the following pins. these are combined with other functions on the port pins of the LPC2921/2923/2925. table 23 shows the qei pins. remark: the index function for the qei is not pinned out on the LPC2921/2923/2925. 6.14.7.2 clock description the qei module is clocked by clk_mscss_qei, see section 6.7.2 . the frequency of this clock is identical to clk_mscss_apb si nce they are derived from the same base clock base_mscss_clk. if the qei is not used its clk_mscss_qei branch clock can be switched off. 6.15 power, clock, and reset control sub system (pcrss) the power, clock, and reset control subsystem (pcrss) in the LPC2921/2923/2925 includes a clock generator unit (cgu), a reset genera tor unit (rgu) and a power management unit (pmu). figure 8 provides an overview of the pcrss. an ahb-to-dtl bridge controls the communication with the ahb system bus. table 23. qei pins symbol pin name direction description qei0 pha pha0 in sensor signal. corresponds to pha in quadrature mode and to direction in clock/direction mode. qei0 phb phb0 in sensor signal. corresponds to phb in quadrature mode and to clock signal in clock/direction mode.
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 41 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.15.1 clock description the pcrss is clocked by a number of different clocks. cl k_sys_pcrss clocks the ahb side of the ahb to dtl bus bridge an d clk_pcr_slow clocks the cgu, rgu and pmu internal logic, see section 6.7.2 . clk_sys_pcrss is derived from base_sys_clk, which can be switched off in low-power modes. clk_pcr_slow is derived from base_pcr_clk and is always on in order to be able to wake up from low-power modes. fig 8. power, clock, and reset control sub system (pcrss) block diagram 002aae249 ahb2dtl bridge reset output delay logic input deglitch/ sync branch clocks grant request wakeup_a ahb_rst scu_rst warm_rst cold_rst pcr_rst rgu_rst por_rst rst_n (device pin) reset from watchdog counter external oscillator pmu registers clock enable control clock gates low power ring oscillator cgu0/1 registers rgu registers por out0 out1 out5 out7 out9 out6 out11 out0 out2 pll fdiv[6:0] pll fdiv cgu0 cgu1 pmu rgu ahb master disable:
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 42 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.15.2 clock generation unit (cgu0) the key features are: ? generation of 11 base clocks selectab le from several embedded clock sources. ? crystal oscillator with power-down. ? control pll with power-down. ? very low-power ring oscillator, a lways on to provide a safe clock. ? seven fractional clock dividers with l/d division. ? individual source selector for each ba se clock, with glitch-free switching. ? autonomous clock-activity dete ction on every clock source. ? protection against switching to in valid or inactive clock sources. ? embedded frequency counter. ? register write-protection mechanism to pr event unintentional alteration of clocks. remark: any clock-frequency adjustment has a direct impact on the timing of all on-board peripherals. 6.15.2.1 functional description the clock generation unit provides 11 internal clock sources as described in ta b l e 2 4 . [1] maximum frequency that guarantees stable operation of the LPC2921/2923/2925. [2] fixed to low-power oscillator. for generation of these base clocks, the cgu consists of primary and secondary clock generators and one output ge nerator for each base clock. table 24. cgu0 base clocks number name frequency (mhz) [1] description 0 base_safe_clk 0.4 base sa fe clock (always on) 1 base_sys_clk 100 base system clock 2 base_pcr_clk 0.4 [2] base pcr subsystem clock 3 base_ivnss_clk 100 base ivnss subsystem clock 4 base_mscss_clk 100 base mscss subsystem clock 5 base_iclk0_clk 160 base inte rnal clock 0, for cgu1 6 base_uart_clk 100 base uart clock 7 base_spi_clk 50 base spi clock 8 base_tmr_clk 100 base timers clock 9 base_adc_clk 4.5 base adcs clock 10 reserved - - 11 base_iclk1_clk 160 base inte rnal clock 1, for cgu1
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 43 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin there are two primary clock generators: a low-power ring oscillator (lp_osc) and a crystal oscillator. see figure 9 . lp_osc is the source fo r the base_pcr_clk that clocks the cgu itself and for base_safe_clk that clocks a minimum of othe r logic in the device (like the watchdog timer). to prevent the device from losing it s clock source lp_osc cannot be put into power-down. the crystal oscillato r can be used as source for high-frequency clocks or as an external clock input if a crystal is not connected. secondary clock generators are a pll and se ven fractional dividers (fdiv0..6). the pll has three clock outputs: normal, 120 phase-shifted and 240 phase-shifted. configuration of the cgu0: for every output generator generating the base clocks a choice can be made from the primary and secondary clock generators according to figure 10 . fig 9. block diagram of the cgu0 (see table 24 for all base clocks) 400 khz lp_osc pll fdiv0 external osclllator fdiv1 fdiv6 out 0 out 1 out 11 002aae147 clkout clkout120 clkout240 clock generation unit (cgu0) frequency monitor clock detection ahb to dtl bridge base_sys_clk base_iclk1_clk out 3 base_ivnss_clk out 2 base_pcr_clk base_safe_clk
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 44 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin any output generator (except for base _safe_clk and base_pcr_clk) can be connected to either a fractional divider (fdiv0.. 6) or to one of the outputs of the pll or to lp_osc/crystal osc illator directly. base_safe_clk and base_pcr_clk can use only lp_osc as source. the fractional dividers can be connected to on e of the outputs of the pll or directly to lp_osc/crystal oscillator. the pll is connected to the crystal oscillator. in this way every output generating the base clocks can be configured to get the required clock. multiple output generators can be connected to the same primary or secondary clock source, and multiple secondary clock sources can be connected to the same pll output or primary clock source. invalid selections/programming - connecting the pll to an fdiv or to one of the pll outputs itself for example - will be blocked by hardware. the contro l register will not be written, the previous value will be kept, although all other fields will be written with new data. this prevents clocks being blocked by incorrect programming. default clock sources: every secondary clock generator or output generator is connected to lp_osc at reset. in this way the device runs at a low frequency after reset. it is recommended to switch base_sys_clk to a high-frequency clock generator as (one of) the first step(s) in the boot code after verifying that the high-frequency clock generator is running. clock activity detection: clocks that are inactive are automatically regarded as invalid, and values of ?clk_sel? that would select th ose clocks are masked and not written to the control registers. this is accomplished by adding a clock detector to every clock generator. the rdet register keeps track of which clocks are active and inactive, and the fig 10. structure of the clock generation scheme lp_osc pll fdiv0..6 external oscillator 002aad834 clkout clkout120 clkout240 output control clock outputs
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 45 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin appropriate ?clk_sel? values are masked and unmasked accordingly. each clock detector can also generate interrupts at clock activation and deactivation so that the system can be notified of a chan ge in internal clock status. clock detection is done using a counter running at the b ase_pcr_clk frequency. if no positive clock edge occurs before the counter has 32 cycles of base_pcr_clk the clock is assumed to be inactive. as base_pcr_clk is slower than any of the clocks to be detected, normally only one base_pcr_clk cycle is needed to detect activity. after reset all clocks are assumed to be ?non-present?, so t he rdet status register will be correct only after 32 base_pcr_clk cycles. note that this mechanism cannot protect again st a currently-select ed clock going from active to inactive state. ther efore an inactive clock may still be sent to the system under special circumstances, altho ugh an interrupt can still be generated to notify the system. glitch-free switching: provisions are included in th e cgu to allow clocks to be switched glitch-free, both at the output generator stage and also at secondary source generators. in the case of the pll the clock will be stopped and held lo w for long enough to allow the pll to stabilize and lock before being re-enabled. for a ll non-pll generato rs the switch will occur as quickly as possible, although th ere will always be a period when the clock is held low due to synchronization requirements. if the current clock is high and does not go low within 32 cycles of base_pcr_clk it is assumed to be inactive and is asynchronously forced low. this prevents deadlocks on the interface. 6.15.2.2 pll functional description a block diagram of the pll is shown in figure 11 . the input clock is fed directly to the analog section. this block co mpares the phase and frequency of the inputs and generates the main clock 2 . these clocks are either divided by 2 p by the programmable post divider to create the output clock, or sent di rectly to the output. the main output clock is then divided by m by the programmable feedback divider to generate the feedback clock. the output signal of the anal og section is also monitored by the lock detector to signal when the pll has locked onto the input clock. 2. generation of the main clock is restricted by the frequency range of the pll clock input. see table 32 , dynamic characteristics. fig 11. pll block diagram cco / 2pdiv p23 / mdiv 002aad833 bypass direct clkout120 clkout240 clkout clkout input clock psel bits p23en bit msel bits
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 46 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin triple output phases: for applications that require multiple clock phases two additional clock outputs can be enabled by setting register p23en to logic 1, thus giving three clocks with a 120 phase difference. in this mode all three clocks generated by the analog section are sent to the output dividers. when the pll has not yet achieved lock the second and third phase output dividers run unsynchronized, which means that the phase relation of the output clocks is unknown. when the pll lock register is set the second and third phase of the output dividers are syn chronized to the main output clock clkout pll, thus giving three clocks with a 120 phase difference. direct output mode: in normal operating mode (with direct set to logic 0) the cco clock is divided by 2, 4, 8 or 16 depending on the value on the psel[1:0] input, giving an output clock with a 50 % duty cycle. if a hi gher output frequency is needed the cco clock can be sent directly to the output by settin g direct to logic 1. since the cco does not directly generate a 50 % duty cycle clock, the output clock duty cycle in this mode can deviate from 50 %. power-down control: a power-down mode has been incorporated to reduce power consumption when the pll clock is not needed. this is enabled by setting the pd control register bit. in this mode th e analog section of the pll is turned off, the oscillator and the phase-frequency detector are stopped and th e dividers enter a reset state. while in power-down mode the lock output is low, indicating that the pll is not in lock. when power-down mode is terminated by clearing the pd control-register bit the pll resumes normal operation, and makes the lock signal high once it has regained lock on the input clock. 6.15.2.3 pin description the cgu0 module in the LPC2921/2923/2925 has the pins listed in ta b l e 2 5 below. 6.15.3 clock generation for usb (cgu1) the cgu1 block is functionally identical to the cgu0 block and generates the clock for the usb interface and a dedicated output clock. the cgu1 block uses its own pll and fractional divider. the plls used in cgu0 and cgu1 are identical (see section 6.15.2.2 ). the clock input to the cgu1 pll is provided by one of two base clocks generated in the cgu0: base_iclk0_clk or base_iclk1_clk. the base clock not used for the pll can be configured to drive the output clock directly. table 25. cgu0 pins symbol direction description xout_osc out oscillator crystal output xin_osc in oscillator crystal input or external clock input
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 47 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.15.3.1 pin description the cgu1 module in the LPC2921/2923/2925 has the pins listed in ta b l e 2 5 below. 6.15.4 reset generation unit (rgu) the rgu controls a ll internal resets. the key features of the reset generation unit (rgu) are: ? reset controlled indivi dually per subsystem ? automatic reset stre tching and release ? monitor function to trace resets back to source ? register write-protection mechanis m to prevent unintentional resets 6.15.4.1 functional description each reset output is defined as a combination of reset input sources including the external reset input pins and internal power-on reset, see ta b l e 2 7 . the first five resets listed in this table form a sort of cascade to provide th e multiple levels of im pact that a reset may have. the combined input sources are logically or-ed together so that activating any of the listed reset sources causes the output to go active. fig 12. block diagram of the cgu1 pll fdiv0 out 0 out 2 002aae250 clkout clkout120 clkout240 clock generation unit (cgu1) ahb to dtl bridge base_usb_clk base_out_clk base_iclk1_clk base_iclk0_clk table 26. cgu1 pins symbol direction description clk_out out clock output
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 48 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.15.4.2 pin description the rgu module in the LPC2921/2923/2925 has the following pins. ta b l e 2 8 shows the rgu pins. 6.15.5 power management unit (pmu) this module enables software to actively control the system?s power consumption by disabling clocks not required in a particular operating mode. table 27. reset output configuration reset output reset source parts of the device reset when activated por_rst power-on reset module lp_osc; is source for rgu_rst rgu_rst por_rst, rst_n pin rgu internal; is source for pcr_rst pcr_rst rgu_rst, watchdog pcr internal; is source for cold_rst cold_rst pcr_rst parts with cold_rst as reset source below warm_rst cold_rst parts with warm_rst as reset source below scu_rst cold_rst scu cfid_rst cold_rst cfid fmc_rst cold_rst embedded flash-memory controller (fmc) emc_rst cold_rst embedded sram-memory controller gess_a2v_rst warm_rst gess ahb-to-apb bridge pess_a2v_rst warm_rst pess ahb-to-apb bridge gpio_rst warm_rst all gpio modules uart_rst warm_rst all uart modules tmr_rst warm_rst all timer modules in pess spi_rst warm_rst all spi modules ivnss_a2v_rst warm_rst ivnss ahb-to-apb bridge ivnss_can_rst warm_rst all can modules including acceptance filter ivnss_lin_rst warm_rst all lin modules mscss_a2v_rst warm_rst mscss ahb to apb bridge mscss_pwm_rst warm_rst all pwm modules mscss_adc_rst warm_rst all adc modules mscss_tmr_rst warm_rst all timer modules in mscss i2c_rst all i2c modules qei_rst quadrature encoder dma_rst dma controller usb_rst usb controller vic_rst warm_rst vectored in terrupt controller (vic) ahb_rst warm_rst cpu and ahb bus infrastructure table 28. rgu pins symbol direction description rst_n in external reset input, active low; pulled up internally
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 49 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin using the base clocks from the cgu as inpu t, the pmu generates branch clocks to the rest of the LPC2921/2923/2925. output clocks branched from the same base clock are phase- and frequency-related. these branch clocks can be indivi dually controlled by software programming. the key features are: ? individual clock control for all LPC2921/2923/2925 sub-modules ? activates sleeping clocks when a wake-up event is detected ? clocks can be individually disabled by software ? supports ahb master-disable protocol when auto mode is set ? disables wake-up of enabled clocks when power-down mode is set ? activates wake-up of enabled clocks when a wake-up event is received ? status register is available to indicate if an input base clock can be safely switched off (i.e. all branch clocks are disabled) 6.15.5.1 functional description the pmu controls all inte rnal clocks coming out of the cgu0 for power-mode management. with some exceptions, each branch clock can be switched on or off individually under control of software register bits located in its individual configuration register. some branch clocks controlling vital parts of the device oper ate in a fixed mode. ta b l e 2 9 shows which mode- control bits are supported by each branch clock. by programming the configuration register the user can control which clocks are switched on or off, and which clocks are switched off when entering power-down mode. note that the standby-wait-for-interrupt inst ructions of the arm968e-s processor (putting the arm cpu into a low-power state) are not supported. instead putting the arm cpu into power-down should be controlled by disabling the branch clock for the cpu. remark: for any disabled branch clocks to be re-activated their corresponding base clocks must be running (controlled by the cgu0). ta b l e 2 9 shows the relation between branch and base clocks, see also section 6.7.1 . every branch clock is related to one particular base clock: it is not possible to switch the source of a branch clock in the pmu. table 29. branch clock overview legend: ?1? indicates that the re lated register bit is ti ed off to logic high, all writes are ignored ?0? indicates that the re lated register bit is ti ed off to logic low, all writes are ignored ?+? indicates that the related register bit is readable and writable branch clock name base clock implemented switch on/off mechanism wake-up auto run clk_safe base_safe_clk 0 0 1 clk_sys_cpu base_sys_clk + + 1 clk_sys base_sys_clk + + 1 clk_sys_pcr base_sys_clk + + 1 clk_sys_fmc base_sys_clk + + +
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 50 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin clk_sys_ram0 base_sys_clk + + + clk_sys_ram1 base_sys_clk + + + clk_sys_gess base_sys_clk + + + clk_sys_vic base_sys_clk + + + clk_sys_pess base_sys_clk + + + clk_sys_gpio0 base_sys_clk + + + clk_sys_gpio1 base_sys_clk + + + clk_sys_gpio5 base_sys_clk + + + clk_sys_ivnss_a base_sys_clk + + + clk_sys_mscss_a base_sys_clk + + + clk_sys_dma base_sys_clk + + + clk_sys_usb base_sys_clk + + + clk_pcr_slow base_pcr_clk + + 1 clk_ivnss_apb base_ivnss_clk + + + clk_ivnss_canc0 base_ivnss_clk + + + clk_ivnss_canc1 base_ivnss_clk + + + clk_ivnss_i2c0 base_ivnss_clk + + + clk_ivnss_i2c1 base_ivnss_clk + + + clk_ivnss_lin0 base_ivnss_clk + + + clk_ivnss_lin1 base_ivnss_clk + + + clk_mscss_apb base_mscss_clk + + + clk_mscss_mtmr0 base_mscss_clk + + + clk_mscss_mtmr1 base_mscss_clk + + + clk_mscss_pwm0 base_mscss_clk + + + clk_mscss_pwm1 base_mscss_clk + + + clk_mscss_pwm2 base_mscss_clk + + + clk_mscss_pwm3 base_mscss_clk + + + clk_mscss_adc1_apb base_mscss_clk + + + clk_mscss_adc2_apb base_mscss_clk + + + clk_mscss_qei base_mscss_clk + + + clk_out_clk bas e _ o u t _ c l k+++ clk_uart0 base_uart_clk + + + clk_uart1 base_uart_clk + + + clk_spi0 base_spi_clk + + + clk_spi1 base_spi_clk + + + clk_spi2 base_spi_clk + + + table 29. branch clock overview ?continued legend: ?1? indicates that the re lated register bit is ti ed off to logic high, all writes are ignored ?0? indicates that the re lated register bit is ti ed off to logic low, all writes are ignored ?+? indicates that the related register bit is readable and writable branch clock name base clock implemented switch on/off mechanism wake-up auto run
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 51 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 6.16 vectored interrupt controller the LPC2921/2923/2925 contains a very flexible and powerful vectored interrupt controller (vic) to interrupt the arm processor on request. the key features are: ? level-active interrupt request with programmable polarity. ? 56 interrupt-request inputs. ? software-interrupt request capability associated with each request input. ? interrupt request state can be observed before masking. ? software-programmable priority assignments to interrupt requests up to 15 levels. ? software-programmable routing of interr upt requests towards the arm-processor inputs irq and fiq. ? fast identification of interrupt requests through vector. ? support for nesting of interrupt service routines. 6.16.1 functional description the vectored interrupt controller routes incoming interrupt requests to the arm processor. the interrupt target is configured for each interrupt reque st input of the vic. the targets are defined as follows: ? target 0 is arm processor fiq (fast interrupt service) ? target 1 is arm processor irq (standard interrupt service) interrupt-request masking is performed individu ally per interrupt target by comparing the priority level assigned to a specific interrupt request with a target-specific priority threshold. the priority levels are defined as follows: ? priority level 0 corresponds to ?masked? (i.e. interrupt requests with priority 0 never lead to an interrupt) clk_tmr0 base_tmr_clk + + + clk_tmr1 base_tmr_clk + + + clk_tmr2 base_tmr_clk + + + clk_tmr3 base_tmr_clk + + + clk_adc1 base_adc_clk + + + clk_adc2 base_adc_clk + + + clk_testshell_ip bas e_clk_testshell 0 0 1 clk_usb base_usb_clk + + + table 29. branch clock overview ?continued legend: ?1? indicates that the re lated register bit is ti ed off to logic high, all writes are ignored ?0? indicates that the re lated register bit is ti ed off to logic low, all writes are ignored ?+? indicates that the related register bit is readable and writable branch clock name base clock implemented switch on/off mechanism wake-up auto run
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 52 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? priority 1 corresponds to the lowest priority ? priority 15 corresponds to the highest priority software interrupt support is provided and can be supplied for: ? testing rtos (real-time operating s ystem) interrupt handling without using device-specific interr upt service routines ? software emulation of an interrupt-requesting device, including interrupts 6.16.2 clock description the vic is clocked by clk_sys_vic, see section 6.7.2 .
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 53 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 7. limiting values table 30. limiting values in accordance with the absolute ma ximum rating system (iec 60134). symbol parameter conditions min max unit supply pins p tot total power dissipation [1] -1.5 w v dd(core) core supply voltage ? 0.5 +2.0 v v dd(osc_pll) oscillator and pll supply voltage ? 0.5 +2.0 v v dda(adc3v3) 3.3 v adc analog supply voltage ? 0.5 +4.6 v v dd(io) i/o supply voltage ? 0.5 +4.6 v i dd supply current average value per supply pin [2] -98 ma i ss ground current average value per ground pin [2] -98 ma input pins and i/o pins v xin_osc voltage on pin xin_osc ? 0.5 +2.0 v v i(io) i/o input voltage [3] [4] [6] ? 0.5 v dd(io) +3.0 v v i(adc) adc input voltage for adc1/2: i/o port 0 pin 8 to pin 23. [4] [6] ? 0.5 v dda(adc3v3) + 0.5 v v vrefp voltage on pin vrefp ? 0.5 +3.6 v v vrefn voltage on pin vrefn ? 0.5 +3.6 v i i(adc) adc input current average value per input pin [2] -35 ma output pins and i/o pins configured as output i ohs high-level short-circuit output current drive high, output shorted to v ss(io) [8] - ? 33 ma i ols low-level short-circuit output current drive low, output shorted to vdd(io) [8] -+38 ma general t stg storage temperature ? 65 +150 c t amb ambient temperature ? 40 +85 c
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 54 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin [1] based on package heat transfer, not device power consumption. [2] peak current must be limited at 25 times average current. [3] for i/o port 0, the maximu m input voltage is defined by v i(adc) . [4] only when v dd(io) is present. [5] not exceeding 6 v. [6] note that pull-up should be off. with pull-up do not exceed 3.6 v. [7] human-body model: discharging a 100 pf capacitor via a 10 k series resistor. [8] 112 ma per v dd(io) or v ss(io) should not be exceeded. esd v esd electrostatic discharge voltage on all pins human body model [7] ? 2000 +2000 v charged device model ? 500 +500 v on corner pins charged device model ? 750 +750 v table 30. limiting values ?continued in accordance with the absolute ma ximum rating system (iec 60134). symbol parameter conditions min max unit
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 55 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 8. static characteristics table 31. static characteristics v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; t vj =-40 cto+85 c; all voltages are measured with respect to ground; positive currents flow into the ic; unless otherwise specified. [1] symbol parameter conditions min typ max unit supplies core supply v dd(core) core supply volt age 1.71 1.80 1.89 v i dd(core) core supply current arm9 and all peripherals active at max clock speeds -1.12.5ma/ mhz all clocks off [2] -3 04 7 5 a i/o supply v dd(io) i/o supply voltage 2.7 - 3.6 v oscillator/pll supply v dd(osc_pll) oscillator and pll supply voltage 1.71 1.80 1.89 v i dd(osc_pll) oscillator and pll supply current normal mode - - 1 ma power-down mode - - 2 a analog-to-digital converter supply v dda(adc3v3) 3.3 v adc analog supply voltage 3.0 3.3 3.6 v i dda(adc3v3) 3.3 v adc analog supply current normal mode - - 1.9 ma power-down mode - - 4 a input pins and i/o pins configured as input v i input voltage all port pins and v dd(io) applied see section 7 [7] [8] ? 0.5 - + 5.5 v port 0 pins 8 to 23 when adc1/2 is used [8] v vrefp all port pins and v dd(io) not applied ? 0.5 - +3.6 v all other i/o pins, reset_n, trst_n, tdi, jtagsel, tms, tck ? 0.5 - v dd(io) v v ih high-level input voltage all port pins, reset_n, trst_n, tdi, jtagsel, tms, tck 2.0 - - v v il low-level input voltage a ll port pins, reset_n, trst_n, tdi, jtagsel, tms, tck --0.8v v hys hysteresis voltage 0.4 - - v i lih high-level input leakage current --1 a i lil low-level input leakage current --1 a
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 56 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin i i(pd) pull-down input current all port pins, v i = 3.3 v; v i = 5.5 v 25 50 100 a i i(pu) pull-up input current al l port pins, reset_n, trst_n, tdi, jtagsel, tms: v i =0v; v i > 3.6 v is not allowed ? 25 ? 50 ? 115 a c i input capacitance [3] -38p f output pins and i/o pins configured as output v o output voltage 0 - v dd(io) v v oh high-level output voltage i oh = ? 4ma v dd(io) ?0.4 - - v v ol low-level output voltage i ol =4ma - - 0.4 v c l load capacitance - - 25 pf analog-to-digital converter supply v vrefn voltage on pin vrefn 0 - v vrefp ? 2v v vrefp voltage on pin vrefp v vrefn +2 - v dda(adc3v3) v v i(adc) adc input voltage on port 0 pins v vrefn -v vrefp v z i input impedance between v vrefn and v vrefp 4.4 - - k between v vrefn and vdd(a5v) 13.7 - 23.6 k fsr full scale range 2 - 10 bit inl integral non-linearity ? 2-+ 2l s b dnl differential non-linearity ? 1-+ 1l s b v err(offset) offset error voltage ? 20 - +20 mv v err(fs) full-scale error voltage ? 20 - +20 mv table 31. static characteristics ?continued v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; t vj =-40 cto+85 c; all voltages are measured with respect to ground; positive currents flow into the ic; unless otherwise specified. [1] symbol parameter conditions min typ max unit
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 57 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin [1] all parameters are guaranteed over the virtual junction temperature range by design. pre-testing is performed at t amb = 125 c on wafer level. cased products are tested at t amb =25 c (final testing). both pre-testing and final testing use correlated test conditions to cover the specified temperature and power-supply voltage range. [2] leakage current is exponential to temperature; worst-case value is at 125 c t vj . all clocks off. analog modules and flash powered down. [3] for port 0, pin 0 to pin 15 add maximum 1.5 pf for input capa citance to adc. for port 0, pin 16 to pin 31 add maximum 1.0 pf for input capacitance to adc. [4] this value is the minimum driv e capability. maximum s hort-circuit output current is 33 ma (drive high-level, shorted to grou nd) or ? 38 ma. (drive low-level, shorted to v dd(io) ). the device will be damaged if multiple outputs are shorted. [5] c xtal is crystal load capacitance and c ext are the two external load capacitors. [6] the power-up reset has a time filter: v dd(core) must be above v trip(high) for 2 s before reset is de-asserted; v dd(core) must be below v trip(low) for 11 s before internal reset is asserted. [7] not 5 v-tolerant when pull-up is on. [8] for i/o port 0, the maximu m input voltage is defined by v i(adc) . [9] this parameter is not part of production testing or final te sting, hence only a typical value is stated. maximum and minimum values are based on simulation results. oscillator r s(xtal) crystal series resistance f osc = 10 mhz to 15 mhz [5] c xtal =10pf; c ext =18pf --160 c xtal =20pf; c ext =39pf --60 f osc = 15 mhz to 20 mhz [5] c xtal =10pf; c ext =18pf --80 c i input capacitance of xin_osc [9] -2p f power-up reset v trip(high) high trip level voltage [6] 1.1 1.4 1.6 v v trip(low) low trip level voltage [6] 1.0 1.3 1.5 v v trip(dif) difference between high and low trip level voltage [6] 50 120 180 mv table 31. static characteristics ?continued v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; t vj =-40 cto+85 c; all voltages are measured with respect to ground; positive currents flow into the ic; unless otherwise specified. [1] symbol parameter conditions min typ max unit
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 58 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin fig 13. adc characteristics 002aac046 1023 1022 1021 1020 1019 (2) (1) 1024 1018 1019 1020 1021 1022 1023 7 123456 7 6 5 4 3 2 1 0 1018 (5) (4) (3) 1 lsb (ideal) code out v dda ? v ssa 1024 offset error e o gain error e g offset error e o v ia (lsb ideal ) 1 lsb =
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 59 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 8.1 power consumption conditions: t amb = 25 c; active mode entered executing code from flash; core voltage 1.8 v; all peripherals enabled but not configured to run. fig 14. i dd(core) at different core frequencies (active mode) conditions: t amb = 25 c; active mode entered executing code from flash; all peripherals enabled but not configured to run. fig 15. i dd(core) at different core voltages v dd(core) (active mode) core frequency (mhz) 10 130 90 50 002aae241 40 20 60 80 i dd(core) (ma) 0 core voltage (v) 1.7 1.9 1.8 002aae240 40 20 60 80 i dd(core) (ma) 0 10 mhz 40 mhz 80 mhz 100 mhz 125 mhz
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 60 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 8.2 electrical pi n characteristics conditions: active mode entered executing code from flash; core voltage 1.8 v; all peripherals enabled but not configured to run. fig 16. i dd(core) at different temperatures (active mode) temperature ( c) ?40 85 60 10 35 ?15 002aae239 40 20 60 80 i dd(core) (ma) 0 10 mhz 80 mhz 100 mhz 40 mhz 125 mhz measured on pins pn.m; v ddio = v. fig 17. typical low-level output i ol current versus low-level output v ol x (x) x x x xx 001aac984 x x x x x x (x) x
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 61 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin measured on pins pn.m; v ddio = v. fig 18. typical high-level output i oh current versus high-level output voltage v oh measured on pins pn.m; v ddio = v. fig 19. typical pull-up current i pu versus input voltage v i x (x) x x x xx 001aac984 x x x x x x (x) x x (x) x x x xx 001aac984 x x x x x x (x) x
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 62 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin measured on pins pn.m; v ddio = v. fig 20. typical pull-down current i pd versus input voltage v i x (x) x x x xx 001aac984 x x x x x x (x) x
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 63 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 9. dynamic characteristics 9.1 dynamic characteristics: i/o pins, in ternal clock, oscillators, pll, and can [1] all parameters are guaranteed over the virtual junction temperature range by design. pre-testing is performed at t amb =125 c ambient temperature on wafer level. cased products are tested at t amb =25 c (final testing). both pre-testi ng and final testing use correlated test conditions to cover the specifi ed temperature and power supply voltage range. [2] see table 24 . [3] this parameter is not part of production testing or final testing, hence only a typical value is stated. [4] oscillator start-up time depends on the quality of the crystal. for most crystals it takes about 1000 clock pulses until the clock is fully stable. table 32. dynamic characteristics v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; all voltages are measured with respect to ground; positive currents flow into the ic; unless otherwise specified. [1] symbol parameter conditions min typ max unit i/o pins t thl high-to-low transition time c l = 30 pf 4 - 13.8 ns t tlh low-to-high transition time c l = 30 pf 4 - 13.8 ns internal clock f clk(sys) system clock frequency [2] 10 - 125 mhz t clk(sys) system clock period [2] 8 - 100 ns low-power ring oscillator f ref(ro) ro reference frequency 0.36 0.4 0.42 mhz t startup start-up time at maximum frequency [3] -6- s oscillator f i(osc) oscillator input frequency maximum frequency is the clock input of an external clock source applied to the xin pin 10 - 100 mhz t startup start-up time at maximum frequency [3] [4] -5 0 0- s pll f i(pll) pll input frequency 10 - 25 mhz f o(pll) pll output frequency 10 - 160 mhz cco; direct mode 156 - 320 mhz t a(clk) clock access time - - 63.4 ns t a(a) address access time - - 60.3 ns jitter specification for can t jit(cc)(p-p) cycle to cycle jitter (peak-to-peak value) on can txdc pin [3] -0 . 41n s
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 64 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 9.2 usb interface [1] characterized but not implemented as production test. guaranteed by design. table 33. dynamic characteris tics: usb pins (full-speed) c l = 50 pf; r pu = 1.5 k on d+ to v dd(3v3) , unless otherwise specified. symbol parameter conditions min typ max unit t r rise time 10 % to 90 % 8.5 - 13.8 ns t f fall time 10 % to 90 % 7.7 - 13.7 ns t frfm differential rise and fall time matching t r /t f --1 0 9% v crs output signal crossover voltage 1.3 - 2.0 v t feopt source se0 interval of eop see figure 21 160 - 175 ns t fdeop source jitter for differential transition to se0 transition see figure 21 ? 2-+5ns t jr1 receiver jitter to next transition ? 18.5 - +18.5 ns t jr2 receiver jitter for paired transitions 10 % to 90 % ? 9-+9ns t eopr1 eop width at receiver must reject as eop; see figure 21 [1] 40 --ns t eopr2 eop width at receiver must accept as eop; see figure 21 [1] 82 --ns fig 21. differential da ta-to-eop transition skew and eop width 002aab561 t period differential data lines crossover point source eop width: t feopt receiver eop width: t eopr1 , t eopr2 crossover point extended differential data to se0/eop skew n t period + t fdeop
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 65 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 9.3 dynamic characteristics: i 2 c-bus interface [1] all parameters are guaranteed over the virtual junction temperature range by design. pre-testing is performed at t amb =125 c ambient temperature on wafer level. cased products are tested at t amb =25 c (final testing). both pre-testi ng and final testing use correlated test conditions to cover the specified temperature and power supply voltage range. [2] typical ratings are not guaranteed. the va lues listed are at room temperature (25 c), nominal supply voltages. [3] bus capacitance c b in pf, from 10 pf to 400 pf. table 34. dynamic characteristic: i 2 c-bus pins v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; all voltages are measured with respect to ground; positive currents flow into the ic; unless otherwise specified [1] symbol parameter conditions min typ [2] max unit t f(o) output fall time v ih to v il 20 + 0.1 c b [3] --ns t r rise time t f fall time t buf bus free time between a stop and start condition - t low low period of the scl clock - t hd;sta hold time (repeated) start condition - t high high period of the scl clock - t su;dat data set-up time - t su;sta set-up time for a repeated start condition - t su;sto set-up time for stop condition - fig 22. i 2 c-bus pins clock timing p ss p 002aad985 t hd;sta t buf t hd;sta t su;sta t su;dat t f t high t su;sto t r t hd;sta t low sda scl
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 66 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 9.4 dynamic characteristics: spi [1] all parameters are guaranteed over the virtual junction temperature range by design. pre-testing is performed at t amb =125 c ambient temperature on wafer level. cased products are tested at t amb =25 c (final testing). both pre-testi ng and final testing use correlated test conditions to cover the specifi ed temperature and power supply voltage range. table 35. dynamic characteristics of spi pins v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; t vj =-40 cto+85 c; all voltages are measured with respect to ground; positive currents flow into the ic; unless otherwise specified. [1] symbol parameter conditions min typ max unit f spi spi operating frequency master operation 1 ? 65024 f clk(spi) - 1 ? 2 f clk(spi) mhz slave operation 1 ? 65024 f clk(spi) - 1 ? 4 f clk(spi) mhz spi master t spicyc spi cycle time - ns t spiclkh spiclk high time - ns t spiclkl spiclk low time - ns t spidsu spi data set-up time - ns t spidh spi data hold time - ns t spiqv spi data output valid time - ns t spioh spi output data hold time - ns spi slave - t spicyc spi cycle time - ns t spiclkh spiclk high time - ns t spiclkl spiclk low time - ns t spidsu spi data set-up time - ns t spidh spi data hold time - ns t spiqv spi data output valid time - ns t spioh spi output data hold time - ns fig 23. spi master timing (cpha = 1) sck (cpol = 0) mosi miso 002aad986 t spiclk t spiclkh t spiclkl t spidsu t spidh t spiqv data valid data valid t spioh sck (cpol = 1) data valid data valid
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 67 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin fig 24. spi master timing (cpha = 0) fig 25. spi slave timing (cpha = 1) sck (cpol = 0) mosi miso 002aad987 t spiclk t spiclkh t spiclkl t spidsu t spidh data valid data valid t spioh sck (cpol = 1) data valid data valid t spiqv sck (cpol = 0) mosi miso 002aad988 t spiclk t spiclkh t spiclkl t spidsu t spidh t spiqv data valid data valid t spioh sck (cpol = 1) data valid data valid
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 68 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin fig 26. spi slave timing (cpha = 0) sck (cpol = 0) mosi miso 002aad989 t spiclk t spiclkh t spiclkl t spidsu t spidh t spiqv data valid data valid t spioh sck (cpol = 1) data valid data valid
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 69 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 9.5 dynamic characteristics: flash memory [1] all parameters are guaranteed over the virtual junction temperature range by design. pre-testing is performed at t amb =125 c ambient temperature on wafer level. cased products are tested at t amb =25 c (final testing). both pre-testi ng and final testing use correlated test conditions to cover the specifi ed temperature and power supply voltage range. table 36. flash characteristics v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; all voltages are measured with respect to ground. [1] symbol parameter conditions min typ max unit n endu endurance number of program/erase cycles 10,000 cycles t ret retention time average t amb = 85 c 10 20 years t prog programming time word - s t er erase time page - ms global - ms sector 95 100 105 ms t init initialization time - - 150 s t wr(pg) page write time 0.95 1 1.05 ms t fl(bist) flash word bist time - 38 70 ns t a(clk) clock access time - - 63.4 ns t a(a) address access time - - 60.3 ns
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 70 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 9.6 dynamic characteristics: adc1/2 [1] all parameters are guaranteed over the virtual junction temperature range by design. pre-testing is performed at t amb =125 c ambient temperature on wafer level. cased products are tested at t amb =25 c (final testing). both pre-testi ng and final testing use correlated test conditions to cover the specifi ed temperature and power supply voltage range. [2] duty cycle clock should be as close as possible to 50 %. 10. application information 10.1 operating frequency selection table 37. adc dynamic characteristics v dd(core) =v dd(osc_pll) ; v dd(io) = 2.7 v to 3.6 v; v dda(adc3v3) = 3.0 v to 3.6 v; all voltages are measured with respect to ground. [1] symbol parameter conditions min typ max unit f i(adc) adc input frequency [2] 4- 4 . 5m h z f s(max) maximum sampling rate f i(adc) = 4.5 mhz; f s =f i(adc) /(n + 1) with n=resolution resolution 2 bit - - 1500 ksampl e/s resolution 10 bit - - 400 ksampl e/s t conv conversion time in number of adc clock cycles 3 - 11 cycles in number of bits 2 - 10 bits fig 27. lpc29xx core operating frequency versus temperature for different core voltages. temperature ( c) 25 85 65 45 002aae194 125 115 135 145 core frequency (mhz) 105 v dd(core) = 1.95 v v dd(core) = 1.8 v v dd(core) = 1.65 v
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 71 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 10.2 suggested usb interface solutions fig 28. lpc29xx core operating frequency versus core voltage for different temperatures core voltage (v) 1.65 1.95 1.85 1.75 002aae193 125 115 135 145 core frequency (mhz) 105 25 c 45 c 65 c 85 c fig 29. LPC2921/2923/2925 usb interface on a self-powered device lpc29xx usb-b connector usb_d+ usb_connect soft-connect switch usb_d? usb_vbus v ss(io) v dd(io) r1 1.5 k r s = 33 002aae149 r s = 33 usb_up_led
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 72 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin fig 30. LPC2921/2923/2925 usb interface on a bus-powered device lpc29xx v dd(io) r1 1.5 k r2 usb_up_led 002aae150 usb-b connector usb_d+ usb_d? usb_vbus v ss(io) r s = 33  r s = 33 
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 73 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 11. package outline fig 31. package outline (lqfp100) unit a max. a 1 a 2 a 3 b p ce (1) eh e ll p z ywv references outline version european projection issue date iec jedec jeita mm 1.6 0.15 0.05 1.45 1.35 0.25 0.27 0.17 0.20 0.09 14.1 13.9 0.5 16.25 15.75 1.15 0.85 7 0 o o 0.08 0.08 0.2 1 dimensions (mm are the original dimensions) note 1. plastic or metal protrusions of 0.25 mm maximum per side are not included. 0.75 0.45 sot407-1 136e20 ms-026 00-02-01 03-02-20 d (1) (1)(1) 14.1 13.9 h d 16.25 15.75 e z 1.15 0.85 d b p e lqfp100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm sot407-1
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 74 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 12. soldering of smd packages this text provides a very brief insight into a complex technology. a more in-depth account of soldering ics can be found in application note an10365 ?surface mount reflow soldering description? . 12.1 introduction to soldering soldering is one of the most common methods through which packages are attached to printed circuit boards (pcbs), to form electr ical circuits. the soldered joint provides both the mechanical and the electrical connection. th ere is no single sold ering method that is ideal for all ic packages. wave soldering is often preferred when through-hole and surface mount devices (smds) are mixed on one printed wiring board; however, it is not suitable for fine pitch smds. reflow soldering is ideal for the small pitches and high densities that come with increased miniaturization. 12.2 wave and reflow soldering wave soldering is a joining technology in which the joints are made by solder coming from a standing wave of liquid solder. the wave soldering process is suitable for the following: ? through-hole components ? leaded or leadless smds, which are glued to the surface of the printed circuit board not all smds can be wave soldered. packages with solder balls, and some leadless packages which have solder lands underneath the body, cannot be wave soldered. also, leaded smds with leads having a pitch smaller than ~0.6 mm cannot be wave soldered, due to an increased pr obability of bridging. the reflow soldering process involves applying solder paste to a board, followed by component placement and exposure to a temperature profile. leaded packages, packages with solder balls, and leadless packages are all reflow solderable. key characteristics in both wave and reflow soldering are: ? board specifications, in cluding the board finish , solder masks and vias ? package footprints, including solder thieves and orientation ? the moisture sensitivit y level of the packages ? package placement ? inspection and repair ? lead-free soldering versus snpb soldering 12.3 wave soldering key characteristics in wave soldering are: ? process issues, such as application of adhe sive and flux, clinching of leads, board transport, the solder wave parameters, and the time during which components are exposed to the wave ? solder bath specifications, including temperature and impurities
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 75 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 12.4 reflow soldering key characteristics in reflow soldering are: ? lead-free versus snpb solderi ng; note that a lead-free reflow process usually leads to higher minimum peak temperatures (see figure 32 ) than a snpb process, thus reducing the process window ? solder paste printing issues including smearing, release, and adjusting the process window for a mix of large and small components on one board ? reflow temperature profile; this profile includ es preheat, reflow (in which the board is heated to the peak temperature) and cooling down. it is imperative that the peak temperature is high enough for the solder to make reliable solder joints (a solder paste characteristic). in addition, the peak temperature must be low enough that the packages and/or boards are not damaged. the peak temperature of the package depends on package thickness and volume and is classified in accordance with ta b l e 3 8 and 39 moisture sensitivity precautions, as indicat ed on the packing, must be respected at all times. studies have shown that small packages reach higher temperatures during reflow soldering, see figure 32 . table 38. snpb eutectic process (from j-std-020c) package thickness (mm) package reflow temperature ( c) volume (mm 3 ) < 350 350 < 2.5 235 220 2.5 220 220 table 39. lead-free process (from j-std-020c) package thickness (mm) package reflow temperature ( c) volume (mm 3 ) < 350 350 to 2000 > 2000 < 1.6 260 260 260 1.6 to 2.5 260 250 245 > 2.5 250 245 245
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 76 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin for further information on temperature profiles, refer to application note an10365 ?surface mount reflow soldering description? . msl: moisture sensitivity level fig 32. temperature profiles for large and small components 001aac844 temperature time minimum peak temperature = minimum soldering temperature maximum peak temperature = msl limit, damage level peak temperature
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 77 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 13. abbreviations 14. references [1] um ? LPC2921/2923/2925 user manual [2] arm ? arm web site [3] arm-ssp ? arm primecell synchronous serial port (pl022) technical reference manual [4] can ? iso 11898-1: 2002 road vehicles - controller area network (can) - part 1: data link layer and physical signalling [5] lin ? lin specification package, revision 2.0 table 40. abbreviations list abbreviation description ahb advanced high-performance bus bcl buffer control list bdl buffer descriptor list cisc complex instruction set computers dtl device transaction level sfsp scu function select port x,y (u se without the p if there are no x,y) scl slot control list bel buffer entry list cco current controlled oscillator bist built-in self test risc reduced instruction set computer uart universal asynchronous receiver transmitter apb arm peripheral bus
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 78 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 15. revision history table 41. revision history document id release date data sheet status change notice supersedes LPC2921_2923_2925_0. 01 preliminary data sheet
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 79 of 81 nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 16. legal information 16.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 16.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. 16.3 disclaimers general ? information in this document is believed to be accurate and reliable. however, nxp semiconductors d oes not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale ? nxp semiconductors products are sold subject to the general terms and condit ions of commercial sale, as published at http://www.nxp.com/profile/terms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writ ing by nxp semiconductors. in case of any inconsistency or conflict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. 16.4 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. goodlink ? is a trademark of nxp b.v. i 2 c-bus ? logo is a trademark of nxp b.v. softconnect ? is a trademark of nxp b.v. 17. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objecti ve specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this document contains the product specification.
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra LPC2921_2923_2925_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.01 ? 24 october 2008 80 of 81 continued >> nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin 18. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 ordering information . . . . . . . . . . . . . . . . . . . . . 3 3.1 ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3 4 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 pinning information . . . . . . . . . . . . . . . . . . . . . . 5 5.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5 5.2.1 general description . . . . . . . . . . . . . . . . . . . . . 5 5.2.2 lqfp100 pin assignment . . . . . . . . . . . . . . . . . 5 6 functional description . . . . . . . . . . . . . . . . . . . 9 6.1 architectural overview . . . . . . . . . . . . . . . . . . . 9 6.2 arm968e-s processor . . . . . . . . . . . . . . . . . . . 9 6.3 on-chip flash memory system . . . . . . . . . . . . 10 6.4 on-chip static ram. . . . . . . . . . . . . . . . . . . . . 10 6.5 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 11 6.6 reset, debug, test, and power description . . . 12 6.6.1 reset and power-up behavior . . . . . . . . . . . . 12 6.6.2 reset strategy . . . . . . . . . . . . . . . . . . . . . . . . 12 6.6.3 ieee 1149.1 interface pins (jtag boundary-scan test). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.6.3.1 etm/etb . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6.6.4 power supply pins . . . . . . . . . . . . . . . . . . . . . 13 6.7 clocking strategy . . . . . . . . . . . . . . . . . . . . . . 13 6.7.1 clock architecture . . . . . . . . . . . . . . . . . . . . . . 13 6.7.2 base clock and branch clock relationship. . . . 14 6.8 flash memory controller . . . . . . . . . . . . . . . . . 16 6.8.1 functional description. . . . . . . . . . . . . . . . . . . 17 6.8.2 flash layout . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.8.3 flash bridge wait-states . . . . . . . . . . . . . . . . . 19 6.8.4 pin description . . . . . . . . . . . . . . . . . . . . . . . . 19 6.8.5 clock description . . . . . . . . . . . . . . . . . . . . . . 19 6.8.6 eeprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.9 general purpose dma (gpdma) controller . . 19 6.9.1 dma support for peripherals. . . . . . . . . . . . . . 20 6.9.2 clock description . . . . . . . . . . . . . . . . . . . . . . 20 6.10 usb interface . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.10.1 usb device controller . . . . . . . . . . . . . . . . . . . 20 6.10.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 21 6.10.3 clock description . . . . . . . . . . . . . . . . . . . . . . 21 6.11 general subsystem. . . . . . . . . . . . . . . . . . . . . 22 6.11.1 general subsystem clock description . . . . . . . 22 6.11.2 chip and feature identification . . . . . . . . . . . . 22 6.11.3 system control unit (scu). . . . . . . . . . . . . . . 22 6.11.4 event router . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.11.4.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 23 6.12 peripheral subsystem . . . . . . . . . . . . . . . . . . . 23 6.12.1 peripheral subsystem cloc k description. . . . . 23 6.12.2 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 23 6.12.2.1 functional description . . . . . . . . . . . . . . . . . . 24 6.12.2.2 clock description . . . . . . . . . . . . . . . . . . . . . . 24 6.12.3 timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 6.12.3.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 25 6.12.3.2 clock description . . . . . . . . . . . . . . . . . . . . . . 25 6.12.4 uarts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6.12.4.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 26 6.12.4.2 clock description . . . . . . . . . . . . . . . . . . . . . . 26 6.12.5 serial peripheral interface (spi). . . . . . . . . . . 26 6.12.5.1 functional description . . . . . . . . . . . . . . . . . . 27 6.12.5.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 27 6.12.5.3 clock description . . . . . . . . . . . . . . . . . . . . . . 28 6.12.6 general-purpose i/o . . . . . . . . . . . . . . . . . . . 28 6.12.6.1 functional description . . . . . . . . . . . . . . . . . . 28 6.12.6.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 28 6.12.6.3 clock description . . . . . . . . . . . . . . . . . . . . . . 29 6.13 networking subsystem. . . . . . . . . . . . . . . . . . 29 6.13.1 can gateway . . . . . . . . . . . . . . . . . . . . . . . . . 29 6.13.1.1 global acceptance filter . . . . . . . . . . . . . . . . . 29 6.13.1.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 29 6.13.2 lin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.13.2.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 30 6.13.3 i 2 c-bus serial i/o controllers . . . . . . . . . . . . . 30 6.13.3.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 31 6.14 modulation and sampling control subsystem . 31 6.14.1 functional description . . . . . . . . . . . . . . . . . . 31 6.14.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 34 6.14.3 clock description . . . . . . . . . . . . . . . . . . . . . . 34 6.14.4 analog-to-digital converter . . . . . . . . . . . . . . . 34 6.14.4.1 functional description . . . . . . . . . . . . . . . . . . 35 6.14.4.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 35 6.14.4.3 clock description . . . . . . . . . . . . . . . . . . . . . . 36 6.14.5 pulse width modulator (pwm). . . . . . . . . . . . 36 6.14.5.1 functional description . . . . . . . . . . . . . . . . . . 37 6.14.5.2 synchronizing the pwm co unters . . . . . . . . . 38 6.14.5.3 master and slave mode . . . . . . . . . . . . . . . . . 38 6.14.5.4 pin description . . . . . . . . . . . . . . . . . . . . . . . . 38 6.14.5.5 clock description . . . . . . . . . . . . . . . . . . . . . . 39 6.14.6 timers in the mscss. . . . . . . . . . . . . . . . . . . 39 6.14.6.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 39 6.14.6.2 clock description . . . . . . . . . . . . . . . . . . . . . . 39 6.14.7 quadrature encoder inte rface (qei) . . . . . . . 39 6.14.7.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 40 6.14.7.2 clock description . . . . . . . . . . . . . . . . . . . . . . 40 6.15 power, clock, and re set control sub system (pcrss) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
dr aft dr aft draft dr d raft draft dra f t draf d raft draft draft draft draft d draft d raft dra f t draft draft draft dra nxp semiconductors LPC2921/2923/2925 arm9 microcontroller with can and lin ? nxp b.v. 2008. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 24 october 2008 document identifier: LPC2921_2923_2925_0 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 6.15.1 clock description . . . . . . . . . . . . . . . . . . . . . . 41 6.15.2 clock generation unit (cgu0) . . . . . . . . . . . . 42 6.15.2.1 functional description. . . . . . . . . . . . . . . . . . . 42 6.15.2.2 pll functional description . . . . . . . . . . . . . . . 45 6.15.2.3 pin description . . . . . . . . . . . . . . . . . . . . . . . . 46 6.15.3 clock generation for usb (cgu1) . . . . . . . . . 46 6.15.3.1 pin description . . . . . . . . . . . . . . . . . . . . . . . . 47 6.15.4 reset generation unit (rgu). . . . . . . . . . . . . 47 6.15.4.1 functional description. . . . . . . . . . . . . . . . . . . 47 6.15.4.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . 48 6.15.5 power management unit (pmu). . . . . . . . . . . 48 6.15.5.1 functional description. . . . . . . . . . . . . . . . . . . 49 6.16 vectored interrupt controller . . . . . . . . . . . . . . 51 6.16.1 functional description. . . . . . . . . . . . . . . . . . . 51 6.16.2 clock description . . . . . . . . . . . . . . . . . . . . . . 52 7 limiting values. . . . . . . . . . . . . . . . . . . . . . . . . 53 8 static characteristics. . . . . . . . . . . . . . . . . . . . 55 8.1 power consumption . . . . . . . . . . . . . . . . . . . . 59 8.2 electrical pin characteristics . . . . . . . . . . . . . . 60 9 dynamic characteristics . . . . . . . . . . . . . . . . . 63 9.1 dynamic characteristics: i/o pins, internal clock, oscillators, pll, and can. . . . . . . . . . . . . . . . 63 9.2 usb interface . . . . . . . . . . . . . . . . . . . . . . . . . 64 9.3 dynamic characteristics: i 2 c-bus interface. . . 65 9.4 dynamic characteristics: spi . . . . . . . . . . . . . 66 9.5 dynamic characteristics: flash memory . . . . . 69 9.6 dynamic characteristics: adc1/2 . . . . . . . . . 70 10 application information. . . . . . . . . . . . . . . . . . 70 10.1 operating frequency selection . . . . . . . . . . . . 70 10.2 suggested usb interface so lutions . . . . . . . . 71 11 package outline . . . . . . . . . . . . . . . . . . . . . . . . 73 12 soldering of smd packages . . . . . . . . . . . . . . 74 12.1 introduction to soldering . . . . . . . . . . . . . . . . . 74 12.2 wave and reflow soldering . . . . . . . . . . . . . . . 74 12.3 wave soldering . . . . . . . . . . . . . . . . . . . . . . . . 74 12.4 reflow soldering . . . . . . . . . . . . . . . . . . . . . . . 75 13 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . 77 14 references . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 15 revision history . . . . . . . . . . . . . . . . . . . . . . . . 78 16 legal information. . . . . . . . . . . . . . . . . . . . . . . 79 16.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 79 16.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 16.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 16.4 trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 79 17 contact information. . . . . . . . . . . . . . . . . . . . . 79 18 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80


▲Up To Search▲   

 
Price & Availability of LPC2921

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X