![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
1. general description the lpc11u6x are an arm cortex-m0+ based, low-cost 32-bit mcu family operating at cpu frequencies of up to 50 mhz. the lpc11u6x support up to 256 kb of flash memory, a 4 kb eeprom, and 36 kb of sram. the arm cortex-m0+ is an easy-to-use, ener gy-efficient core using a two-stage pipeline and fast single-cycle i/o access. the peripheral complement of the lpc11u6x includes a dma controller, a crc engine, one full-speed usb device controller with xtal-less low-speed mode, two i 2 c-bus interfaces, up to five usarts, two ssp interfaces, pwm/timer subsystem with six configurable multi-purpose timers, a real-time clock, one 12-bit adc, temperature sensor, function-configurable i/o ports, and up to 80 general-purpose i/o pins. for additional documentation related to the lpc11u6x parts, see section 17 ? references ? . 2. features and benefits ? system: ? arm cortex-m0+ processor (version r0p1), running at frequencies of up to 50 mhz with single-cycle multiplier and fast single-cycle i/o port. ? arm cortex-m0+ built-in nested vectored interrupt controller (nvic). ? ahb multilayer matrix. ? system tick timer. ? serial wire debug (swd) and jtag boundary scan modes supported. ? micro trace buffer (mtb) supported. ? memory: ? up to 256 kb on-chip flash programming memory with page erase. ? up to 32 kb main sram. ? up to two additional sram blocks of 2 kb each. ? up to 4 kb eeprom. ? rom api support: ? boot loader. ? usart drivers. ? i2c drivers. ? usb drivers. ? dma drivers. lpc11u6x 32-bit arm cortex-m0+ microcontr oller; up to 256 kb flash and 36 kb sram; 4 kb eeprom; usb; 12-bit adc rev. 1.1 ? 12 march 2014 product data sheet
lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 2 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller ? power profiles. ? flash in-application programming (iap) and in-system programming (isp). ? 32-bit integer division routines. ? digital peripherals: ? simple dma engine with 16 channels and programmable input triggers. ? high-speed gpio interface connected to th e arm cortex-m0+ io bus with up to 80 general-purpose i/o (gpio) pins with conf igurable pull-up/pu ll-down resistors, programmable open-drain mode, input inverter, and programmable glitch filter and digital filter. ? pin interrupt and pattern match engine using eight selectable gpio pins. ? two gpio group interrupt generators. ? crc engine. ? configurable pwm/timer subsystem (two 16-bit and two 32-bit standard counter/timers, two state-configurable timers (sctimer/pwm)) that provides: ? up to four 32-bit and two 16-bit counter/timers or two 32-bit and six 16-bit counter/timers. ? up to 21 match outputs and 16 capture inputs. ? up to 19 pwm outputs with 6 independent time bases. ? windowed watchdog timer (wwdt). ? real-time clock (rtc) in the always-on power domain with separate battery supply pin and 32 khz oscillator. ? analog peripherals: ? one 12-bit adc with up to 12 input channel s with multiple inte rnal and external trigger inputs and with sample rates of up to 2 msamples/s. the adc supports two independent conversion sequences. ? temperature sensor. ? serial interfaces: ? up to five usart interfaces, all with dma, synchronous mode, and rs-485 mode support. four usarts use a shared fractional baud generator. ? two ssp controllers with dma support. ? two i 2 c-bus interfaces. one i 2 c-bus interface with specialized open-drain pins supports i2c fast-mode plus. ? usb 2.0 full-speed device controller with on-chip phy. xtal-less low-speed mode supported. ? clock generation: ? 12 mhz internal rc oscillator trimmed to 1 % accuracy for ? 25 ? c ? t amb ? +85 ? c that can optionally be used as a system clock. ? on-chip 32 khz oscillator for rtc. ? crystal oscillator with an op erating range of 1 mhz to 25 mhz. oscillator pins are shared with the gpio pins. ? programmable watchdog osc illator with a frequency range of 9.4 khz to 2.3 mhz. ? pll allows cpu operation up to the maximum cpu rate without the need for a high-frequency crystal. ? a second, dedicated pll is provided for usb. ? clock output function with divi der that can reflec t the crystal oscillator, the main clock, the irc, or the watchdog oscillator. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 3 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller ? power control: ? integrated pmu (power management unit) to minimize power consumption. ? reduced power modes: sleep mode, deep-sleep mode, power-down mode, and deep power-down mode. ? wake-up from deep-sleep and power-down modes on external pin inputs and usart activity. ? power-on reset (por). ? brownout detect. ? unique device serial number for identification. ? single power supply (2.4 v to 3.6 v). ? separate vbat supply for rtc. ? operating temperature range ? 40 c to 105 c. ? available as lqfp48, lqfp64, and lqfp100 packages. 3. applications 4. ordering information 4.1 ordering options ? three-phase e-meter ? car radio ? gps tracker ? medical monitor ? gaming accessories ? pc peripherals table 1. ordering information type number package name description version lpc11u67jbd48 lqfp48 plastic low profile quad flat package; 48 leads; body 7 ? 7 ? 1.4 mm sot313-2 LPC11U68JBD48 lqfp48 plastic low profile quad flat package; 48 leads; body 7 ? 7 ? 1.4 mm sot313-2 lpc11u68jbd64 lqfp64 plastic low profile quad flat package; 64 leads; body 10 ? 10 ? 1.4 mm sot314-2 lpc11u68jbd100 lqfp100 plastic low profile quad flat package; 100 leads; body 14 ? 14 ? 1.4 mm sot407-1 table 2. ordering options type number flash/ kb eeprom/ kb sram/ kb usb usart0 usart1 usart2 usart3 usart4 i 2 c ssp timers with pwm 12-bit adc channels gpio lpc11u67jbd48 128 4 20 1 yyynn2 2 6 8 34 LPC11U68JBD48 256 4 36 1 yyynn2 2 6 8 34 lpc11u68jbd64 256 4 36 1 yyynn2 2 6 10 48 lpc11u68jbd100256 4 36 1 yyyyy2 2 6 12 80 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 4 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 5. marking the lpc11u6x devices typically have the following top-side marking for lqfp100 packages: lpc11u6xjxxx xxxxxx xx xxxyywwxxx the lpc11u6x devices typically have the following top-side marking for lqfp64 packages: lpc11u6xj xxxxxx xx xxxyywwxxx the lpc11u6x devices typically have the following top-side marking for lqfp48 packages: lpc11u6xj xxxxxx xxxyy wwxxx field ?yy? states the year the device was m anufactured. field ?ww? states the week the device was manufactured during that year. fig 1. lqfp64/100 package marking fig 2. lqfp48 package marking 1 n terminal 1 index area aaa-011231 aaa-011232 terminal 1 index area 1 n lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 5 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 6. block diagram grey-shaded blocks show peripherals that can provide hardware triggers for dm a transfers or have dma request lines. (1) available on lpc11u68jbd100 only. fig 3. lpc11u6x block diagram arm cortex-m0+ swd test/debug interface systick nvic processor core precision irc system pll watchdog oscillator usb pll system oscillator rtc oscillator general purpose backup registers clock generation 256/128 kb flash rom 36/20 kb sram 4 kb eeprom temperature sensor memory port0/1/2 gint0/1 pintsel pint/ pattern match sctimer0/ pwm hs gpio+ sctimer1/ pwm dma trigger pwm/timer subsystem usart0 usart1 usart3 (1) usart4 (1) fm+ i2c0 usart2 ssp1 ssp0 i2c1 fs usb/ phy syscon iocon pmu crc flash ctrl eeprom ctrl system/memory control ct16b0 ct32b0 ct16b1 ct32b1 wwdt rtc always-on power domain system timer serial peripherals 12-bit adc0 trigger mux analog peripherals ahb multilayer matrix ahb/apb bridges dma lpc11u6x pads n iocon aaa-010773 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 6 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 7. pinning information 7.1 pinning fig 4. lqfp48 pinning lpc11u6xjbd48 37 swdio/pio0_15 24 pio0_7 38 pio0_16/wakeup 23 pio0_6 39 pio0_23 22 pio1_24 40 v dda 21 pio2_7 41 v ssa 20 usb_dp 42 pio0_17 19 usb_dm 43 v ss 18 pio1_23 44 v dd 17 pio0_21 45 pio0_18 16 pio0_5 46 pio0_19 15 pio0_4 47 vbat 14 pio0_3 48 rtcxin 13 pio1_20 1 rtcxout 36 pio1_13 2v ss 35 vrefn 3 reset/pio0_0 34 vrefp 4pio0_1 33 trst/pio0_14 5v ss 32 tdo/pio0_13 6 pio2_0/xtalin 31 tms/pio0_12 7 pio2_1/xtalout 30 tdi/pio0_11 8v dd 29 pio0_22 9pio2_5 28 swclk/pio0_10 10 pio0_20 27 pio0_9 11 pio0_2 26 pio0_8 12 pio2_2 25 pio1_21 aaa-007794 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 7 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller fig 5. lqfp64 pinning lpc11u6xjbd64 49 pio1_13 32 pio2_15 50 swdio/piio0_15 31 pio1_28 51 pio0_16/wakeup 30 pio0_7 52 pio0_23 29 pio0_6 53 v dda 28 pio1_24 54 v ssa 27 pio2_7 55 pio1_9 26 usb_dp 56 pio0_17 25 usb_dm 57 v ss 24 pio2_6 58 v dd 23 pio1_23 59 v dd 22 pio0_21 60 pio0_18 21 pio0_5 61 pio0_19 20 pio0_4 62 pio1_0 19 pio0_3 63 vbat 18 pio1_20 64 pio1_19 17 pio1_27 1 rtcxin 48 vrefn 2 rtcxout 47 vrefp 3v ss 46 trst/pio0_14 4 reset/pio0_0 45 tdo/pio0_13 5pio0_1 44 pio1_30 6pio1_7 43 tms/pio0_12 7v ss 42 tdi/pio0_11 8pio2_0 41 pio1_29 9pio2_1 40 pio0_22 10 v dd 39 swclk/pio0_10 11 pio2_5 38 pio0_9 12 pio0_20 37 pio0_8 13 pio1_10 36 pio2_19 14 pio0_2 35 pio1_21 15 pio1_26 34 v dd 16 pio2_2 33 pio2_18 aaa-007795 fig 6. lqfp100 pinning lpc11u6xjbd100 76 100 50 26 1 25 75 51 aaa-007796 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 8 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 7.2 pin description table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions reset /pio0_0 348 [8] i; pu i reset ? external reset input with 20 ns glitch filter. a low-going pulse as short as 50 ns on this pin resets the device, causing i/o ports and peripherals to take on their default states, and processor execution to begin at address 0. this pin also serves as the debug select input. low level selects the jtag boundary scan. high level selects the arm swd debug mode. in deep power-down mode, this pin must be pulled high externally. the reset pin can be left unconnected or be used as a gpio pin if an external reset function is not needed and deep power-down mode is not used. io pio0_0 ? general purpose digital input/output pin. pio0_1 459 [6] i; pu io pio0_1 ? general purpose digital input/output pin. a low level on this pin during reset starts the isp command handler or the usb device enumeration. o clkout ? clockout pin. o ct32b0_mat2 ? match output 2 for 32-bit timer 0. o usb_ftoggle ? usb 1 ms start-of-frame signal. pio0_2 11 14 19 [6] i; pu io pio0_2 ? general purpose port 0 input/output 2. io ssp0_ssel ? slave select for ssp0. i ct16b0_cap0 ? capture input 0 for 16-bit timer 0. - r_0 ? reserved. pio0_3 14 19 30 [6] i; pu io pio0_3 ? general purpose digital input/output pin. a low level on this pin during reset starts the isp command handler. a high level during reset starts the usb device enumeration. i usb_vbus ? monitors the presence of usb bus power. - r_1 ? reserved. pio0_4 15 20 31 [7] ia io pio0_4 ? general purpose port 0 input/output 4 (open-drain). io i2c0_scl ? i 2 c-bus clock input/output (open-drain). high-current sink only if i 2 c fast-mode plus is selected in the i/o configuration register. - r_2 ? reserved. pio0_5 16 21 32 [7] ia io pio0_5 ? general purpose port 0 input/output 5 (open-drain). io i2c0_sda ? i 2 c-bus data input/output (open-drain). high-current sink only if i 2 c fast-mode plus is selected in the i/o configuration register. - r_3 ? reserved. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 9 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller pio0_6 23 29 44 [6] i; pu io pio0_6 ? general purpose port 0 input/output 6. - r ? reserved. io ssp0_sck ? serial clock for ssp0. - r_4 ? reserved. pio0_7 24 30 45 [5] i; pu io pio0_7 ? general purpose port 0 input/output 7 (high-current output driver). i u0_cts ? clear to send input for usart. - r_5 ? reserved. io i2c1_scl ? i 2 c-bus clock input/output. this pin is not open-drain. pio0_8 26 37 58 [6] i; pu io pio0_8 ? general purpose port 0 input/output 8. io ssp0_miso ? master in slave out for ssp0. o ct16b0_mat0 ? match output 0 for 16-bit timer 0. - r_6 ? reserved. pio0_9 27 38 59 [6] i; pu io pio0_9 ? general purpose port 0 input/output 9. io ssp0_mosi ? master out slave in for ssp0. o ct16b0_mat1 ? match output 1 for 16-bit timer 0. - r_7 ? reserved. swclk/pio0_10 28 39 60 [6] i; pu io swclk ? serial wire clock. swclk is enabled by default on this pin. in boundary scan mode: tck (test clock). io pio0_10 ? general purpose digital input/output pin. io ssp0_sck ? serial clock for ssp0. o ct16b0_mat2 ? 16-bit timer0 mat2 tdi/pio0_11 30 42 64 [3] i; pu io tdi ? test data in for jtag interface. in boundary scan mode only. io pio0_11 ? general purpose digital input/output pin. ai adc_9 ? a/d converter, input channel 9. o ct32b0_mat3 ? match output 3 for 32-bit timer 0. o u1_rts ? request to send output for usart1. io u1_sclk ? serial clock input/ou tput for usart1 in synchronous mode. tms/pio0_12 31 43 66 [3] i; pu io tms ? test mode select for jtag interface. in boundary scan mode only. io pio0_12 ? general purpose digital input/output pin. ai adc_8 ? a/d converter, input channel 8. i ct32b1_cap0 ? capture input 0 for 32-bit timer 1. i u1_cts ? clear to send input for usart1. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 10 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller tdo/pio0_13 32 45 68 [3] i; pu io tdo ? test data out for jtag interface. in boundary scan mode only. io pio0_13 ? general purpose digital input/output pin. ai adc_7 ? a/d converter, input channel 7. o ct32b1_mat0 ? match output 0 for 32-bit timer 1. i u1_rxd ? receiver input for usart1. trst /pio0_14 33 46 69 [3] i; pu io trst ? test reset for jtag interface. in boundary scan mode only. io pio0_14 ? general purpose digital input/output pin. ai adc_6 ? a/d converter, input channel 6. o ct32b1_mat1 ? match output 1 for 32-bit timer 1. o u1_txd ? transmitter output for usart1. swdio/pio0_15 37 50 81 [3] i; pu io swdio ? serial wire debug i/o. swdio is enabled by default on this pin. in boundary scan mode: tms (test mode select). io pio0_15 ? general purpose digital input/output pin. ai adc_3 ? a/d converter, input channel 3. o ct32b1_mat2 ? match output 2 for 32-bit timer 1. pio0_16/wakeup 38 51 82 [4] i; pu io pio0_16 ? general purpose digital input/output pin. this pin also serves as the deep power-down mode wake-up pin with 20 ns glitch filter. pull this pin high externally before entering deep power-down mode. pull this pin low to exit deep power-down mode. a low-going pulse as short as 50 ns wakes up the part. ai adc_2 ? a/d converter, input channel 2. o ct32b1_mat3 ? match output 3 for 32-bit timer 1. - r_8 ? reserved. pio0_17 42 56 90 [6] i; pu io pio0_17 ? general purpose digital input/output pin. o u0_rts ? request to send output for usart0. i ct32b0_cap0 ? capture input 0 for 32-bit timer 0. io u0_sclk ? serial clock input/ou tput for usart0 in synchronous mode. pio0_18 45 60 94 [6] i; pu io pio0_18 ? general purpose digital input/output pin. i u0_rxd ? receiver input for usart0. used in uart isp mode. o ct32b0_mat0 ? match output 0 for 32-bit timer 0. pio0_19 46 61 95 [6] i; pu io pio0_19 ? general purpose digital input/output pin. o u0_txd ? transmitter output for usart0. used in uart isp mode. o ct32b0_mat1 ? match output 1 for 32-bit timer 0. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 11 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller pio0_20 10 12 17 [6] i; pu io pio0_20 ? general purpose digital input/output pin. i ct16b1_cap0 ? capture input 0 for 16-bit timer 1. i u2_rxd ? receiver input for usart2. pio0_21 17 22 33 [6] i; pu io pio0_21 ? general purpose digital input/output pin. o ct16b1_mat0 ? match output 0 for 16-bit timer 1. io ssp1_mosi ? master out slave in for ssp1. pio0_22 29 40 62 [3] i; pu io pio0_22 ? general purpose digital input/output pin. ai adc_11 ? a/d converter, input channel 11. i ct16b1_cap1 ? capture input 1 for 16-bit timer 1. io ssp1_miso ? master in slave out for ssp1. pio0_23 39 52 83 [3] i; pu io pio0_23 ? general purpose digital input/output pin. ai adc_1 ? a/d converter, input channel 1. - r_9 ? reserved. i u0_ri ? ring indicator input for usart0. io ssp1_ssel ? slave select for ssp1. pio1_0 -6297 [6] i; pu io pio1_0 ? general purpose digital input/output pin. o ct32b1_mat0 ? match output 0 for 32-bit timer 1. - r_10 ? reserved. o u2_txd ? transmitter output for usart2. pio1_1 --28 [6] i; pu io pio1_1 ? general purpose digital input/output pin. o ct32b1_mat1 ? match output 1 for 32-bit timer 1. - r_11 ? reserved. o u0_dtr ? data terminal ready output for usart0. pio1_2 --55 [6] i; pu io pio1_2 ? general purpose digital input/output pin. o ct32b1_mat2 ? match output 2 for 32-bit timer 1. - r_12 ? reserved. i u1_rxd ? receiver input for usart1. pio1_3 --72 [3] i; pu io pio1_3 ? general purpose digital input/output pin. o ct32b1_mat3 ? match output 3 for 32-bit timer 1. - r_13 ? reserved. io i2c1_sda ? i 2 c-bus data input/output (not open-drain). ai adc_5 ? a/d converter, input channel 5. pio1_4 --23 [6] i; pu io pio1_4 ? general purpose digital input/output pin. i ct32b1_cap0 ? capture input 0 for 32-bit timer 1. - r_14 ? reserved. i u0_dsr ? data set ready input for usart0. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 12 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller pio1_5 --47 [6] i; pu io pio1_5 ? general purpose digital input/output pin. i ct32b1_cap1 ? capture input 1 for 32-bit timer 1. - r_15 ? reserved. i u0_dcd ? data carrier detect input for usart0. pio1_6 --98 [6] i; pu io pio1_6 ? general purpose digital input/output pin. - r_16 ? reserved. i u2_rxd ? receiver input for usart2. i ct32b0_cap1 ? capture input 1 for 32-bit timer 0. pio1_7 -610 [6] i; pu io pio1_7 ? general purpose digital input/output pin. - r_17 ? reserved. i u2_cts ? clear to send input for usart2. i ct16b1_cap0 ? capture input 0 for 32-bit timer 1. pio1_8 --61 [6] i; pu io pio1_8 ? general purpose digital input/output pin. - r_18 ? reserved. o u1_txd ? transmitter output for usart1. i ct16b0_cap0 ? capture input 0 for 16-bit timer 0. pio1_9 -5586 [3] i; pu io pio1_9 ? general purpose digital input/output pin. i u0_cts ? clear to send input for usart0. o ct16b1_mat1 ? match output 1 for 16-bit timer 1. i adc_0 ? a/d converter, input channel 0. pio1_10 -1318 [6] i; pu io pio1_10 ? general purpose digital input/output pin. o u2_rts ? request to send output for usart2. io u2_sclk ? serial clock input/ou tput for usart2 in synchronous mode. o ct16b1_mat0 ? match output 0 for 16-bit timer 1. pio1_11 --65 [6] i; pu io pio1_11 ? general purpose digital input/output pin. io i2c1_scl ? i 2 c1-bus clock input/output (not open-drain). o ct16b0_mat2 ? match output 2 for 16-bit timer 0. i u0_ri ? ring indicator input for usart0. pio1_12 --89 [6] i; pu io pio1_12 ? general purpose digital input/output pin. io ssp0_mosi ? master out slave in for ssp0. o ct16b0_mat1 ? match output 1 for 16-bit timer 0. - r_21 ? reserved. pio1_13 36 49 78 [6] i; pu io pio1_13 ? general purpose digital input/output pin. i u1_cts ? clear to send input for usart1. o sct0_out3 ? sctimer0/pwm output 3. - r_22 ? reserved. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 13 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller pio1_14 --79 [6] i; pu io pio1_14 ? general purpose digital input/output pin. io i2c1_sda ? i 2 c1-bus data input/out put (not open-drain). o ct32b1_mat2 ? match output 2 for 32-bit timer 1. - r_23 ? reserved. pio1_15 --87 [6] i; pu io pio1_15 ? general purpose digital input/output pin. io ssp0_ssel ? slave select for ssp0. o ct32b1_mat3 ? match output 3 for 32-bit timer 1. - r_24 ? reserved. pio1_16 --96 [6] i; pu io pio1_16 ? general purpose digital input/output pin. io ssp0_miso ? master in slave out for ssp0. o ct16b0_mat0 ? match output 0 for 16-bit timer 0. - r_25 ? reserved. pio1_17 --34 [6] i; pu io pio1_17 ? general purpose digital input/output pin. i ct16b0_cap2 ? capture input 2 for 16-bit timer 0. i u0_rxd ? receiver input for usart0. - r_26 ? reserved. pio1_18 --43 [6] i; pu io pio1_18 ? general purpose digital input/output pin. i ct16b1_cap1 ? capture input 1 for 16-bit timer 1. o u0_txd ? transmitter output for usart0. - r_27 ? reserved. pio1_19 -644 [6] i; pu io pio1_19 ? general purpose digital input/output pin. i u2_cts ? clear to send input for usart2. o sct0_out0 ? sctimer0/pwm output 0. - r_28 ? reserved. pio1_20 13 18 29 [6] i; pu io pio1_20 ? general purpose digital input/output pin. i u0_dsr ? data set ready input for usart0. io ssp1_sck ? serial clock for ssp1. o ct16b0_mat0 ? match output 0 for 16-bit timer 0. pio1_21 25 35 56 [6] i; pu io pio1_21 ? general purpose digital input/output pin. i u0_dcd ? data carrier detect input for usart0. io ssp1_miso ? master in slave out for ssp1. i ct16b0_cap1 ? capture input 1 for 16-bit timer 0. pio1_22 --80 [3] i; pu io pio1_22 ? general purpose digital input/output pin. io ssp1_mosi ? master out slave in for ssp1. i ct32b1_cap1 ? capture input 1 for 32-bit timer 1. ai adc_4 ? a/d converter, input channel 4. - r_29 ? reserved. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 14 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller pio1_23 18 23 35 [6] i; pu io pio1_23 ? general purpose digital input/output pin. o ct16b1_mat1 ? match output 1 for 16-bit timer 1. io ssp1_ssel ? slave select for ssp1. o u2_txd ? transmitter output for usart2. pio1_24 22 28 42 [6] i; pu io pio1_24 ? general purpose digital input/output pin. o ct32b0_mat0 ? match output 0 for 32-bit timer 0. io i2c1_sda ? i 2 c-bus data input/output (not open-drain). pio1_25 --100 [6] i; pu io pio1_25 ? general purpose digital input/output pin. o u2_rts ? request to send output for usart2. io u2_sclk ? serial clock input/ou tput for usart2 in synchronous mode. i sct0_in0 ? sctimer0/pwm input 0. - r_30 ? reserved. pio1_26 -1520 [6] i; pu io pio1_26 ? general purpose digital input/output pin. o ct32b0_mat2 ? match output 2 for 32-bit timer 0. i u0_rxd ? receiver input for usart0. - r_19 ? reserved. pio1_27 -1722 [6] i; pu io pio1_27 ? general purpose digital input/output pin. o ct32b0_mat3 ? match output 3 for 32-bit timer 0. o u0_txd ? transmitter output for usart0. - r_20 ? reserved. io ssp1_sck ? serial clock for ssp1. pio1_28 -3146 [6] i; pu io pio1_28 ? general purpose digital input/output pin. i ct32b0_cap0 ? capture input 0 for 32-bit timer 0. io u0_sclk ? serial clock input/ou tput for usart in synchronous mode. o u0_rts ? request to send output for usart0. pio1_29 -4163 [3] i; pu io pio1_29 ? general purpose digital input/output pin. io ssp0_sck ? serial clock for ssp0. i ct32b0_cap1 ? capture input 1 for 32-bit timer 0. o u0_dtr ? data terminal ready output for usart0. ai adc_10 ? a/d converter, input channel 10. pio1_30 -4467 [6] i; pu io pio1_30 ? general purpose digital input/output pin. io i2c1_scl ? i 2 c1-bus clock input/output (not open-drain). i sct0_in3 ? sctimer0/pwm input 3. - r_31 ? reserved. pio1_31 - - 48 [5] i; pu io pio1_31 ? general purpose digital input/output pin (high-current output driver). table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 15 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller pio2_0 6812 [10] i; pu io pio2_0 ? general purpose digital input/output pin. ai xtalin ? input to the oscillator circuit and internal clock generator circuits. input vo ltage must not exceed 1.8 v. pio2_1 7913 [10] i; pu io pio2_1 ? general purpose digital input/output pin. ao xtalout ? output from the oscillator amplifier. pio2_2 12 16 21 [6] i; pu io pio2_2 ? general purpose digital input/output pin. o u3_rts ? request to send output for usart3. io u3_sclk ? serial clock input/ou tput for usart3 in synchronous mode. sct0_out1 ? sctimer0/pwm output 1. pio2_3 --36 [6] i; pu io pio2_3 ? general purpose digital input/output pin. i u3_rxd ? receiver input for usart3. o ct32b0_mat1 ? match output 1 for 32-bit timer 0. pio2_4 --41 [6] i; pu io pio2_4 ? general purpose digital input/output pin. o u3_txd ? transmitter output for usart3. o ct32b0_mat2 ? match output 2 for 32-bit timer 0. pio2_5 91115 [6] i; pu io pio2_5 ? general purpose digital input/output pin. i u3_cts ? clear to send input for usart3. i sct0_in1 ? sctimer0/pwm input 1. pio2_6 -2437 [6] i; pu io pio2_6 ? general purpose digital input/output pin. o u1_rts ? request to send output for usart1. io u1_sclk ? serial clock input/ou tput for usart1 in synchronous mode. i sct0_in2 ? sctimer0/pwm input 2. pio2_7 21 27 40 [6] i; pu io pio2_7 ? general purpose digital input/output pin. io ssp0_sck ? serial clock for ssp0. i sct0_out2 ? sctimer0/pwm output 2. pio2_8 --2 [6] i; pu io pio2_8 ? general purpose digital input/output pin. i sct1_in0 ? sctimer1/pwm input 0. pio2_9 --3 [6] i; pu io pio2_9 ? general purpose digital input/output pin. i sct1_in1 ? sctimer1/pwm_in1 pio2_10 --16 [6] i; pu io pio2_10 ? general purpose digital input/output pin. o u4_rts ? request to send output for usart4. io u4_sclk ? serial clock input/ou tput for usart4 in synchronous mode. pio2_11 --24 [6] i; pu io pio2_11 ? general purpose digital input/output pin. i u4_rxd ? receiver input for usart4. pio2_12 --25 [6] i; pu io pio2_12 ? general purpose digital input/output pin. o u4_txd ? transmitter output for usart4. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 16 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller pio2_13 --26 [6] i; pu io pio2_13 ? general purpose digital input/output pin. i u4_cts ? clear to send input for usart4. pio2_14 --27 [6] i; pu io pio2_14 ? general purpose digital input/output pin. i sct1_in2 ? sctimer1/pwm input 2. pio2_15 -3249 [6] i; pu io pio2_15 ? general purpose digital input/output pin. i sct1_in3 ? sctimer1/pwm input 3. pio2_16 --50 [6] i; pu io pio2_16 ? general purpose digital input/output pin. o sct1_out0 ? sctimer1/pwm output 0. pio2_17 --51 [6] i; pu io pio2_17 ? general purpose digital input/output pin. o sct1_out1 ? sctimer1/pwm output 1. pio2_18 -3352 [6] i; pu io pio2_18 ? general purpose port 2 input/output 18. o sct1_out2 ? sctimer1/pwm output 2. pio2_19 -3657 [6] i; pu io pio2_19 ? general purpose port 2 input/output 19. o sct1_out3 ? sctimer1/pwm output 3. pio2_20 - - 75 [6] i; pu io pio2_20 ? general purpose port 2 input/output 20. pio2_21 - - 76 [6] i; pu io pio2_21 ? general purpose port 2 input/output 21. pio2_22 - - 77 [6] i; pu io pio2_22 ? general purpose port 2 input/output 22. pio2_23 - - 1 [6] i; pu io pio2_23 ? general purpose port 2 input/output 23. rstout - - 88 [6] ia io internal reset status output. usb_dp 20 26 39 [9] f - usb bidirectional d+ line. pad includes internal 33 ? series termination resistor. usb_dm 19 25 38 [9] f - usb bidirectional d ? line. pad includes internal 33 ? series termination resistor. rtcxin 48 1 5 [2] - - rtc oscillator input. this input should be grounded if the rtc is not used. rtcxout 1 2 6 [2] - - rtc oscillator output. vrefp 34 47 73 - - adc positive refe rence voltage. if the adc is not used, tie vrefp to v dd . vrefn 35 48 74 - - adc negative voltage reference. if the adc is not used, tie vrefn to v ss . v dda 40 53 84 - - analog voltage supply. v dda should typically be the same voltages as v dd but should be isolated to minimize noise and error. v dda should be tied to v dd if the adc is not used. v dd 44, 8 58, 10, 34, 59 92, 14, 71, 54, 93 - - supply voltage to the internal regulator and the external rail. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 17 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller [1] pin state at reset for default function: i = input; ai = anal og input; o = output; pu = internal pull-up enabled; ia = inact ive, no pull-up/down enabled; f = floating; if the pins are not used, tie floating pi ns to ground or power to mi nimize power consumption. [2] special analog pad. [3] 5 v tolerant pad providing digital i/o functions with conf igurable pull-up/pull-down resistor s, configurable hysteresis, and analog input. when configured as analog input, digital sect ion of the pad is disabled and the pin is not 5 v tolerant; includes digital, prog rammable filter. [4] 5 v tolerant pad providing digital i/o functions with conf igurable pull-up/pull-down resistor s, configurable hysteresis, and analog input. when configured as analog input, digital sect ion of the pad is disabled and the pin is not 5 v tolerant; includes digital input glitch filter. wakeup pin. the wake-up pin function can be disabled and the pin can be used for other purposes if the rtc is enabled for wakin g up the part from deep power-down mode. [5] 5 v tolerant pad providing digital i/o functions with conf igurable pull-up/pull-down resistor s and configurable hysteresis; includes high-current output driver. [6] 5 v tolerant pad providing digital i/o functions with conf igurable pull-up/pull-down resistor s and configurable hysteresis. [7] i 2 c-bus pin compliant with the i 2 c-bus specification for i 2 c standard mode, i 2 c fast-mode, and i 2 c fast-mode plus. the pin requires an external pull-up to provide output func tionality. when power is switched off, this pin is floating and does not disturb the i2c lines. open-drain configuration applies to all functions on this pin. [8] 5 v tolerant pad. reset functionality is not available in deep power-down mode. use the wakeup pin to reset the chip and wake up from deep power-down mode. an external pull-up resistor is required on this pin for the deep power-down mode. [9] pad provides usb functions. it is designed in accordance with the usb specification, revision 2.0 (full-speed and low-speed mode only). this pad is not 5 v tolerant. [10] 5 v tolerant pad providing digital i/o functions with conf igurable pull-up/pull-down resistor s, configurable hysteresis, an d analog crystal oscillator connections. when confi gured for the crystal oscillator input/output, digi tal section of the pad is disabled and the pin is not 5 v tolerant; includes digital, programmable filter. vbat 47 63 99 - - battery supply. su pplies power to the rtc. if no battery is used, tie vbat to vdd or to ground. v ssa 41 54 85 - - analog ground. v ssa should typically be the same voltage as v ss but should be isolated to minimize noise and error. v ssa should be tied to v ss if the adc is not used. v ss 43, 2, 5 57, 3, 7 91, 7, 11, 53, 70 - - ground. table 3. pin description pin functions are selected through the iocon registers. see table 2 for availability of usart3 and usart4 pin functions. symbol lqfp48 lqfp64 lqfp100 reset state [1] type description of pin functions lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 18 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8. functional description 8.1 arm cortex-m0+ core the arm cortex-m0+ core runs at an operating frequency of up to 50 mhz using a two-stage pipeline. integrated in the core ar e the nvic and serial wire debug with four breakpoints and two watchpoints. the arm co rtex-m0+ core supports a single-cycle i/o enabled port for fast gpio access. the core includes a single-cycle multiplier and a system tick timer. 8.2 ahb multilayer matrix the ahb multilayer matrix supports three masters, the m0+ core, the dma, and the usb. all masters can access all slaves (peripherals and memories). lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 19 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller fig 7. ahb multilayer matrix arm cortex-m0+ test/debug interface dma ahb-to-apb bridge eeprom hs gpio slaves sram1 system bus masters flash rom ahb multilayer matrix = master-slave connection wwdt usart0 ct32b0 i2c0 flashctrl ssp0 ct32b1 dma trigmux pmu i2c1 adc iocon rtc group0 group1 usart1 ssp1 usart4 syscon usb main sram0 sram usb sctimer0/pwm sctimer1/pwm pint/pattern match crc usb registers dma registers ct16b0 ct16b1 usart2 usart3 usart2 aaa-010774 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 20 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.3 on-chip flash programming memory the lpc11u6x contain up to 256 kb on-chip flash program memory. the flash can be programmed using in-system programming (isp) or in-application programming (iap) via the on-chip boot loader software. the flash memory is divided into 24 x 4 kb and 5 x 32 kb sectors. individual pages of 256 byte each can be erased using the iap erase page command. 8.4 eeprom the lpc11u6x contain 4 kb of on-chip by te-erasable and byte -programmable eeprom data memory. the eeprom can be programmed using in-application programming (iap) via the on-chip boot loader software. 8.5 sram the lpc11u6x contain a total of up to 36 kb on-chip static ram memory. the main sram block contains either 16 kb or 32 kb of main sram0. two a dditional sram blocks of 2 kb (sram1 and usb sram) are located in separate areas of the memory map. see figure 8 . 8.6 on-chip rom the on-chip rom contains the boot loader and the following application programming interfaces (apis): ? in-system programming (isp) and in-application programming (iap) support for flash including iap erase page command. ? iap support for eeprom ? usb api ? power profiles for configuring po wer consumption and pll settings ? 32-bit integer division routines ? apis to use the following peripherals: ? i2c ? usart0 and usart1/2/3/4 ? dma 8.7 memory mapping the lpc11u6x incorporates several distinct memory regions, shown in the following figures. figure 8 shows the overall map of the entire address space from the user program viewpoint following reset. the interrupt vector area supports address remapping. the ahb (advanced high-performance bus) perip heral area is 2 mb in size and is divided to allow for up to 128 peripherals. the apb (a dvanced peripheral bus) peripheral area is 512 kb in size and is divided to allow for up to 32 peripherals. each peripheral of either type is allocated 16 kb of space. this addr essing scheme allows si mplifying the address decoding for each peripheral. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 21 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.8 nested vectored inte rrupt controller (nvic) the nested vectored interrupt controller (nvi c) is part of the cortex-m0+. the tight coupling to the cpu allows for lo w interrupt latency and efficient processing of late arriving interrupts. fig 8. lpc11u6x memory map apb peripherals 0x4000 4000 0x4000 8000 0x4000 c000 0x4001 0000 0x4001 8000 0x4002 0000 0x4002 8000 0x4003 8000 0x4003 c000 0x4004 0000 0x4004 4000 0x4004 8000 0x4004 c000 0x4005 0000 0x4005 8000 0x4005 c000 0x4006 0000 0x4006 4000 0x4006 c000 0x4007 0000 0x4008 0000 0x4002 4000 0x4001 c000 0x4001 4000 0x4000 0000 wwdt 32-bit counter/timer 0 32-bit counter/timer 1 12-bit adc usart0 pmu i2c0 20 - 21 reserved 11 - 13 reserved rtc i2c1 30 - 31 reserved 0 1 2 3 4 5 6 7 8 9 0x4002 c000 dma trigmux 10 16 15 14 17 18 reserved reserved reserved 0x0000 0000 0 gb 0.5 gb 4 gb 1 gb 0x1000 8000 0x1fff 0000 0x1fff 8000 0x2000 0000 0x5000 0000 0x5000 4000 0xffff ffff reserved reserved reserved 2 kb usb sram reserved 0x4000 0000 0x4008 0000 0x4008 4000 apb peripherals usb crc 0x5000 8000 dma 0x5000 c000 0x5000 e000 sctimer0/pwm 0xa000 0000 gpio 0xa000 4000 0xa000 8000 gpio pint 0x5001 0000 sctimer1/pwm 0x2000 4000 0x2000 4800 2 kb sram1 0x2000 0800 32 kb main sram0 0x1000 4000 16 kb main sram0 0x1000 0000 lpc11u6x 0x0004 0000 256 kb on-chip flash (lpc11u68) 0x0002 0000 128 kb on-chip flash (lpc11u67) 32 kb boot rom 0x1400 0000 0x1400 1000 4 kb mtb registers 0x0000 0000 0x0000 00c0 active interrupt vectors reserved reserved reserved reserved ssp0 ssp1 16-bit counter/timer 1 16-bit counter/timer 0 iocon system control (syscon) 19 usart4 22 23 gpio group0 interrupt 24 gpio group1 interrupt 0x4007 4000 0x4007 8000 usart1 27 28 usart2 29 usart3 25 - 26 reserved flash/eeprom controller 0xe000 0000 0xe010 0000 private peripheral bus aaa-010775 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 22 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.8.1 features ? controls system exceptions and peripheral interrupts. ? in the lpc11u6x, the nvic supports vectored interrupts for each of the peripherals and the eight pin interrupts. the following peripheral interrupts are ored to contribute to one interrupt in the nvic: ? usart1, usart4 ? usart2, usart3 ? sctimer0/pwm, sctimer1/pwm ? bod, wwdt ? adc end-of-sequence a interrupt, threshold crossing interrupt ? adc end-of-sequence b interrupt, overrun interrupt ? flash, eeprom ? four programmable interrupt priority levels with hardware prio rity level masking. ? software interr upt generation. 8.8.2 interrupt sources each peripheral device has at least one interr upt line connected to the nvic but can have several interrupt flags. individual interrupt flags can also represent more than one interrupt source. 8.9 iocon block the iocon block allows selected pins of the microcontroller to have more than one function. configuration registers control the multiplexers to allow connection between the pin and the on-chip peripherals. connect peripherals to the appropriate pins be fore activating the peripheral and before enabling any related interrupt. enabling an analog function disables the digita l pad. however, the internal pull-up and pull-down resistors as well as the pin hysteres is must be disabled to obtain an accurate reading of the analog input. 8.9.1 features ? programmable pin function. ? programmable pull-up, pull-down, or repeater mode. ? all pins (except pio0_4 and pio0_5) are pulled up to 3.3 v (v dd = 3.3 v) if their pull-up resistor is enabled. ? programmable pseudo open-drain mode. ? programmable (on/off) 10 ns glitch filt er on pins pio0_22, pio0_23, pio0_11 to pio0_16, pio1_3, pio1_9, pio1_22, and pio 1_29. the glitch filter is turned on by default. ? programmable hysteresis. ? programmable input inverter. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 23 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller ? digital filter with programmabl e filter constant on all pins. the minimum filter constant is 1/50 mhz = 20 ns. 8.9.2 standard i/o pad configuration figure 9 shows the possible pin modes for standard i/o pins with analog input function: ? digital output driver with co nfigurable open-drain output ? digital input: weak pull-up resistor (pmos device) enabled/disabled ? digital input: weak pull-down resistor (nmos device) enabled/disabled ? digital input: repeater mode enabled/disabled ? digital input: input digital filter selectable on all pins. in addition, a 10 ns digital glitch filter is selectable on pins with analog function. ? analog input 8.10 fast general-purpo se parallel i/o (gpio) device pins that are not connec ted to a specific peripheral function are controlled by the gpio registers. pins may be dynamically configured as inputs or outputs. multiple outputs can be set or cleared in one write operation. fig 9. standard i/o pin configuration pin v dd v dd esd v ss esd strong pull-up strong pull-down v dd weak pull-up weak pull-down open-drain enable output enable repeater mode enable pull-up enable pull-down enable select data inverter data output data input select glitch filter analog input select analog input pin configured as digital output driver pin configured as digital input pin configured as analog input programmable digital filter 10 ns glitch filter aaa-010776 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 24 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller lpc11u6x use accelerated gpio functions: ? gpio registers are located on the arm co rtex m0+ io bus for fastest possible single-cycle i/o timing, allowing gpio toggling with rates of up to 25 mhz. ? an entire port value can be written in one instruction. ? mask, set, and clear operations are supported for the entire port. 8.10.1 features ? bit level port registers allow a single instruction to set and clear any number of bits in one write operation. ? direction control of individual bits. 8.11 pin interrupt/pattern match engine the pin interrupt block configures up to eight pins from all digital pins for providing eight external interrupts connected to the nvic. the pattern match engine can be used, in conjunction with software, to create complex state machines based on pin inputs. any digital pin except pins pio2_8 and pi o2_23 can be co nfigured through the syscon block as input to the pin interrupt or pattern match engine. the registers that control the pin interrupt or pattern match engine are lo cated on the io+ bus for fast single-cycle access. 8.11.1 features ? pin interrupts ? up to eight pins can be selected from all digital pins except pins pio2_8 and pio2_23 as edge- or level-sensitive inte rrupt requests. each request creates a separate interrupt in the nvic. ? edge-sensitive interrupt pins can interrupt on rising or falling edges or both. ? level-sensitive interrupt pins can be high- or low-active. ? pin interrupts can wake up the part from sleep mode, deep-sleep mode, and power-down mode. ? pin interrupt pattern match engine ? up to 8 pins can be selected from all digi tal pins except pins pio2_8 and pio2_23 to contribute to a boolean expression. the boolean expression consists of specified levels and/or transitions on various combinations of these pins. ? each minterm (product term) comprising the specified boolean expression can generate its own, dedicated interrupt request. ? any occurrence of a pattern match can be programmed to also generate an rxev notification to the arm cpu. ? the pattern match engine d oes not facilitate wake-up. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 25 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.12 gpio group interrupts the gpio pins can be used in several ways to set pins as inputs or outputs and use the inputs as combinations of level and edge sens itive interrupts. for each port/pin connected to one of the two the gpio grouped interr upt blocks (gint0 and gint1), the gpio grouped interrupt registers determine which pins are enabled to generate interrupts and what the active polarities of each of those inputs are. the gpio grouped in terrupt registers also se lect whether the interrup t output will be level or edge triggered and whether it will be based on the or or th e and of all of the enabled inputs. when the designated pattern is detected on the selected input pins, the gpio grouped interrupt block generates an interrupt. if the part is in a power-savings mode, it first asynchronously wakes the part up prior to asserting the interrupt request. the interrupt request line can be cleared by writing a one to the interrupt status bit in the control register. 8.12.1 features ? two group interrupts are supported to reflect two distinct interrupt patterns. ? the inputs from any number of digital pins can be enabled to contribute to a combined group interrupt. ? the polarity of each input enabled for th e group interrupt can be configured high or low. ? enabled interrupts can be logically combined through an or or and operation. ? the grouped interrupts can wake up the pa rt from sleep, deep-sleep or power-down modes. 8.13 dma controller the dma controller can access all memories and the usar t and ssp peripherals using dma requests. dma transfers can also be triggered by internal events like the adc interrupts, timer match outputs, the pin in terrupts (pint0 and pint1) and the sctimer dma requests. 8.13.1 features ? 16 channels with 14 channels connected to peripheral request inputs. ? dma operations can be triggered by on-chip events or two pin interrupts. each dma channel can select one trigger input from 12 sources. ? priority is user selectable for each channel. ? continuous priority arbitration. ? address cache with two entries. ? efficient use of data bus. ? supports single transfers up to 1,024 words. ? address increment options allow packing and/or unpacking data. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 26 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.14 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 host controller allocates the usb bandwidth to attached devices through a token-based protocol. the bus supports hot-plugging and dynamic configuration of the de vices. all transactions are initiated by the host controller. the usb interface consists of a full-speed device controller with on-chip phy (physical layer) for device functions. remark: configure the part in default power mode with the power profiles before using the usb (see section 8.25.7.1 ? power profiles ? ). do not use the usb when the part runs in performance, efficiency, or low-power mode. 8.14.1 full-speed 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, and endpoint buffer memory. the serial interface engine decodes 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. 8.14.1.1 features ? dedicated usb pll available. ? fully compliant with usb 2.0 specification (full speed) . ? supports 10 physical (5 logical) endpoints including one control endpoint. ? single and double buffering supported. ? each non-control endpoint supports bulk, interrupt, or isochronous endpoint types. ? supports wake-up from deep-sleep mode and power-down mode on usb activity and remote wake-up. ? supports softconnect functionality through internal pull-up resistor. ? internal 33 ? series termination resistors on usb_dp and usb_dm lines eliminate the need for external series resistors. ? supports link power management (lpm). ? supports xtal-less low-speed mode using the 1% accurate irc as the clock source for the usb pll. for board connection changes in low-speed mode, see section 14.3.1 ? usb low-speed operation ? . 8.15 usart0 remark: the lpc11u6x contains two distinctive types of uart interfaces: usart0 is software-compatible with the usart interf ace on the lpc11u1x/lpc11u2x/lpc11u3x parts. usart1 to usart4 use a different register interface. the usart0 includes full modem control, support for synchronous mode, and a smart card interface. the rs-485/9-bit mode a llows both software address detection and automatic address detection using 9-bit mode. the usart0 uses a fractional baud rate generator. standard baud rates such as 115200 bd can be achieved with any crystal frequency above 2 mhz. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 27 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.15.1 features ? maximum usart0 data bit rate of 3.125 mbit/s in asynchronous mode and 10 mbit/s in synchronous slave and master mode. ? 16 byte receive and transmit fifos. ? register locations conform to 16c550 industry standard. ? receiver fifo trigger points at 1 b, 4 b, 8 b, and 14 b. ? built-in fractional baud rate generator cove ring wide range of baud rates without a need for external crystals of particular values. ? fractional divider for baud rate control, auto baud capabilities and fifo control mechanism that enables software flow control implementation. ? support for rs-485/9-bit mode. ? support for modem control. ? support for synchronous mode. ? includes smart card interface. ? dma support. 8.16 usart1/2/3/4 remark: the lpc11u6x contains two distinctive types of uart interfaces: usart0 is software-compatible with the usart interf ace on the lpc11u1x/lpc11u2x/lpc11u3x parts. usart1 to usart4 use a different re gister interface to achieve the same uart functionality except for modem and smart card control. remark: usart3 and usart4 are available only on part lpc11u68jbd100. interrupts generated by the usart1/2/3/4 peripherals can wake up the part from deep-sleep and power-down modes if the usart is in synchronous mode, the 32 khz mode is enabled, or the cts interrupt is enabled. this wake-up mechanism is not available with the usart0 peripheral. 8.16.1 features ? maximum bit rates of 3.125 mbit/s in asynchronous mode and 10 mbit/s in synchronous mode. ? 7, 8, or 9 data bits and 1 or 2 stop bits ? synchronous mode with master or slave operation. includes data phase selection and continuous clock option. ? multiprocessor/multidrop (9-bit) mode with software address compare. (rs-485 possible with software address detection and transceiver direction control.) ? rs-485 transceiver output enable. ? autobaud mode for automatic baud rate detection ? parity generation and checking: odd, even, or none. ? one transmit and one receive data buffer. ? rts/cts for hardware signaling for automatic flow control. software flow control can be performed using delta cts detect, transmit disable control, and any gpio as an rts output. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 28 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller ? received data and status can optionally be read from a single register ? break generation and detection. ? receive data is 2 of 3 sample "voting". status flag set when one sample differs. ? built-in baud rate generator with auto-baud function. ? a fractional rate divider is shared among all usarts. ? interrupts available for receiver ready, tr ansmitter ready, receiver idle, change in receiver break detect, framing error, pari ty error, overrun, underrun, delta cts detect, and receiver sa mple noise detected. ? loopback mode for testing of data and flow control. ? in synchronous slave mode, wakes up the part from deep-sleep and power-down modes. ? special operating mode allows operation at up to 9600 baud using the 32 khz rtc oscillator as the uart clock. this mode can be used while the device is in deep-sleep or power-down mode and can wake-up the device when a character is received. ? usart transmit and receive functions c an operated with the system dma controller. 8.17 ssp serial i/o controller (ssp0/1) the ssp controllers operate on a ssp, 4-wire ssi, or microwire bus. the controller can interact with multiple masters and slaves on the bus. only a single master and a single slave can communicate on the bus during a given data trans fer. the ssp supports full duplex transfers, with frames of 4 bit to 16 bit of data flowing from the master to the slave and from the slave to the master. in practice, often only one of these data flows carries meaningful data. 8.17.1 features ? maximum ssp speed of 25 mbit/s (master) or 4.17 mbit/s (slave) (in ssp mode) ? compatible with motorola spi (serial peripheral interface), 4-wire texas instruments ssi (serial synchronous interface), and national semiconductor microwire buses ? synchronous serial communication ? master or slave operation ? 8-frame fifos for both transmit and receive ? 4-bit to 16-bit frame ? dma support 8.18 i 2 c-bus serial i/o controller the lpc11u6x 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 a transmitter with the capability to both receive and send information (such as me mory). 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 can be controlled by more than one bus master connected to it. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 29 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.18.1 features ? one i 2 c-interface (i2c0) is an i 2 c-bus compliant interface with open-drain pins. the i 2 c-bus interface supports fast-mode plus with bit rates up to 1 mbit/s. ? one i 2 c-interface (i2c1) uses standard digital pins. the i 2 c-bus interface supports bit rates up to 400 kbit/s. ? easy to configure as master, slave, or master/slave. ? 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. ? the i 2 c-bus controller supports multiple address recognition and a bus monitor mode. 8.19 timer/pwm subsystem four standard timers and two state configurable timers can be combined to create multiple pwm outputs using the match outputs and the match registers for each timers. each timer can create multiple pwm outputs with its own time base. table 4. pwm resources pwm outputs peripheral pin functions available for pwm match registers used lqfp100 lqfp64 lqfp48 lqfp100 lqfp64 lqfp48 3 3 3 ct16b0 ct16b0_mat0, ct16b0_mat1, ct16b0_mat2 ct16b0_mat0, ct16b0_mat1, ct16b0_mat2 ct16b0_mat0, ct16b0_mat1, ct16b0_mat2 4 2 2 2 ct16b1 ct16b1_mat0, ct16b1_mat1 ct16b1_mat0, ct16b1_mat1 ct16b1_mat0, ct16b1_mat1 3 3 3 3 ct32b0 three of ct32b0_mat0, ct32b0_mat1, ct32b0_mat2, ct32b0_mat3 three of ct32b0_mat0, ct32b0_mat1, ct32b0_mat2, ct32b0_mat3 three of ct32b0_mat0, ct32b0_mat1, ct32b0_mat2, ct32b0_mat3 4 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 30 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller the standard timers and the sctimers combine to up to eight independent timers. each sctimer can be configured either as one 32-bi t timer or two independently counting 16-bit timers which use the same input clock. the following combinations are possible: 8.19.1 state configurable timers (sctimer0/pwm and sctimer1/pwm) the state configurable timer can create timed output signals such as pwm outputs triggered by programmable events. combinations of events can be used to define timer states. the sctimer/pwm can control the ti mer operations, capture inputs, change states, and toggle outputs triggered only by events entirely without cpu intervention. if multiple states are not implemented, the sctimer/pwm simply operates as one 32-bit or two 16-bit timers with matc h, capture, and pwm functions. 3 3 3 ct32b1 three of ct32b1_mat0, ct32b1_mat1, ct32b1_mat2, ct32b1_mat3 three of ct32b1_mat0, ct32b1_mat1, ct32b1_mat2, ct32b1_mat3 three of ct32b1_mat0, ct32b1_mat1, ct32b1_mat2, ct32b1_mat3 4 443sctimer0/ pwm sct0_out0, sct0_out1, sct0_out2, sct0_out3 sct0_out0, sct0_out1, sct0_out2, sct0_out3 sct0_out1, sct0_out2, sct0_out3 up to 5 42- sctimer1/ pwm sct1_out0, sct1_out1, sct1_out2, sct1_out3 sct1_out2, sct1_out3 - up to 5 table 5. timer configurations 32-bit timers resources 16-bit timers resources 4 ct32b0, ct32b1, sctimer0/pwm as 32-bit timer, sctimer1/pwm as 32-bit timer 2 ct16b0, ct16b1 2 ct32b0, ct32b1 6 ct16b0, ct16b1, sctimer0/pwm as two 16-bit timers, sctimer1/pwm as two 16-bit timers 3 ct32b0, ct32b1, sctimer0/pwm as 32-bit timer (or sctimer1/pwm as 32-bit timer) 4 ct16b0, ct16b1, sctimer1/pwm as two 16-bit timers (or sctimer0/pwm as two 16-bit timers) table 4. pwm resources ?continued pwm outputs peripheral pin functions available for pwm match registers used lqfp100 lqfp64 lqfp48 lqfp100 lqfp64 lqfp48 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 31 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.19.1.1 features ? each sctimer/pwm supports: ? 5 match/capture registers. ? 6 events. ? 8 states. ? 4 inputs and 4 outputs. ? counter/timer features: ? each sctimer is configurable as two 16-bit counters or one 32-bit counter. ? counters can be clocked by the system clock or selected input. ? configurable as up counters or up-down counters. ? configurable number of match and capture registers. up to five match and capture registers total. ? upon match create the following events: inte rrupt; stop, limit, halt the timer or change counting direction; toggle outputs. ? counter value can be loaded into capture register triggered by a match or input/output toggle. ? pwm features: ? counters can be used in conjunction with match registers to toggle outputs and create time-proportioned pwm signals. ? up to four single-edge or dual-edge pwm outputs with independent duty cycle and common pwm cycle length. ? event creation features: ? the following conditions define an event: a counter match condition, an input (or output) condition such as an rising or fa lling edge or level, a combination of match and/or input/output condition. ? selected events can limit, halt, start, or stop a counter or change its direction. ? events trigger state changes, output togg les, interrupts, and dma transactions. ? match register 0 can be used as an automatic limit. ? in bi-directional mode, events can be enabled based on the count direction. ? match events can be held until another qualifying event occurs. ? state control features: ? a state is defined by events that can happen in the state while the counter is running. ? a state changes into another state as a result of an event. ? each event can be assigned to one or more states. ? state variable allows sequencing across multiple counter cycles. ? sctimer match outputs (ored with the gene ral purpose timer match outputs) serve as adc hardware trigger inputs. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 32 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.19.2 general purpose external event counter/timers (ct32b0/1 and ct16b0/1) the lpc11u6x includes two 32-bit counter/timers and two 16-bit counter/timers. the counter/timer is designed to count cycles of the system derived clock. it can optionally generate interrupts or perform other actions at specified timer values, based on four match registers. each counter/timer also incl udes one capture input to trap the timer value when an input signal transitions, optionally generating an interrupt. 8.19.2.1 features ? a 32-bit/16-bit timer/counter with a programmable 32-bit/16-bit prescaler. ? counter or timer operation. ? one capture channel per timer, that can ta ke a snapshot of the timer value when an input signal transitions. a capture event may also generate an interrupt. ? four 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 corresponding to match registers, with the following capabilities: ? set low on match. ? set high on match. ? toggle on match. ? do nothing on match. ? the timer and prescaler may be configured to be cleared on a designated capture event. this feature permits easy pulse-width measurement by clearing the timer on the leading edge of an input pulse and capt uring the timer value on the trailing edge. ? pwm output function. ? match outputs and capture inputs serve as hardware triggers for adc conversions. 8.20 system tick timer (systick) the arm cortex-m0+ incl udes a system tick timer (systic k) that is inte nded to generate a dedicated systick exception at a fi xed time interval (typically 10 ms). 8.21 windowed watc hdog timer (wwdt) the purpose of the wwdt is to prevent an unre sponsive system state. if software fails to update the watchdog within a programmable time window, the watchdog resets the microcontroller 8.21.1 features ? internally resets chip if not periodically reloaded during the programmable time-out period. ? optional windowed operation requires reload to occur between a minimum and maximum time period, both programmable. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 33 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller ? optional warning interrupt can be generated at a programmable time before watchdog time-out. ? software enables the wwdt, but a hardware reset or a watchdog reset/interrupt is required to disable the wwdt. ? incorrect feed sequence causes reset or interrupt, if enabled. ? flag to indicate watchdog reset. ? programmable 24-bit timer with internal prescaler. ? selectable time period from (t cy(wdclk) ? 256 ? 4) to (t cy(wdclk) ? 2 24 ? 4) in multiples of t cy(wdclk) ? 4. ? the watchdog clock (wdclk) source can be selected from the irc or the dedicated watchdog oscillator (wdosc). the clock sour ce selection provides a wide range of potential timing choices of watchdog oper ation under different power conditions. 8.22 real-time clock (rtc) the rtc resides in a separate always-on voltage domain with battery back-up. the rtc uses an independent oscilla tor, also located in th e always-on voltage domain. 8.22.1 features ? 32-bit, 1 hz rtc counter and associated match register for alarm generation. ? separate 16-bit high-resolution/wake-up timer clocked at 1 khz for 1 ms resolution with a more that one minute maximum time-out period. ? rtc alarm and high-resolution/wake-up ti mer time-out each generate independent interrupt requests. either time-out can wake up the part from any of the low power modes, including deep power-down. 8.23 analog-to-digital converter (adc) the adc supports a resolution of 12 bit and fast conversion rates of up to 2 msamples/s. sequences of analog-to-digital conversions can be triggered by multiple sources. possible trigger sources are the counter/timer match outputs and capture inputs and the arm txev. the adc includes a hardware threshold compar e function with zero-crossing detection. 8.23.1 features ? 12-bit successive approximation analog to digital converter. ? 12-bit conversion rate of up to 2 msamples/s. ? temperature sensor voltage output selectable as internal voltage source for channel 0. ? two configurable conversion sequ ences with independent triggers. ? optional automatic high/low threshold comparison and zero-crossing detection. ? power-down mode and low-power operating mode. ? measurement range vrefn to vrefp (typically 3 v; not to exceed v dda voltage level). ? burst conversion mode for single or multiple inputs. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 34 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.24 temperature sensor the temperature sensor transducer uses an intrinsic pn-junction diode reference and outputs a ctat voltage (complement to absolute temperature). the output voltage varies inversely with device temperature with an absolute accuracy of better than 5 ? c over the full temperature range ( ? 40 ? c to +105 ? c) for typical sample s. the temperature sensor is only approximately linear with a slight curvature. the output voltage is measured over different ranges of temperatures and fit with linear-least-square lines. after power-up and after switching the input channels of the adc, the temperature sensor output must be allowed to settle to its stab le value before it can be used as an accurate adc input. for an accurate measurement of the temper ature sensor by the adc, the adc must be configured in single-channel burst mode. the last value of a nine-conversion (or more) burst provides an accurate result. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 35 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.25 clocking and power control 8.25.1 clock generation fig 10. clock generation system oscillator watchdog oscillator irc oscillator irc usb pll usbpllclksel (usb clock select) system clock divider sysahbclkctrl (ahb clock enable) cpu, system control, pmu memories, peripheral clocks ssp0 peripheral clock divider ssp0 ssp1 peripheral clock divider ssp1 usart0 peripheral clock divider usart0 wdt wdclksel (wdt clock select) clkoutsel (clkout clock select) usb 48 mhz clock divider usb watchdog oscillator irc oscillator system oscillator usbclksel (usb clock select) clkout pin clock divider clkout pin rtc oscillator, 32 khz output rtcoscctrl (rtc osc enable) system clock system pll irc system oscillator watchdog oscillator mainclksel (main clock select) syspllclksel (system pll clock select) main clock irc n clock divider frgclkdiv usart1 usart2 usart3 usart4 ioconclkdiv clock divider iocon glitch filter 7 fractional rate generator aaa-010817 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 36 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.25.2 power domains the lpc11u6x provide two independent power domains that allow the bulk of the device to have power removed while maintaining operation of the rtc and the backup registers. the vbat pin supplies power only to the rtc domain. the rtc requires a minimum of power to operate, which can be supplied by an external battery. the device core power (v dd ) is used to operate the rtc whenever v dd is present. therefor e, there is no power drain from the rtc battery when v dd is available and v dd ? vbat + 0.3 v. 8.25.3 integrated oscillators the lpc11u6x include the fo llowing independent oscillators: the system oscillator, the internal rc oscillator (irc), the watchdog oscillator, and the 32 khz rtc oscillator. each oscillator can be used for more than one purpo se as required in a pa rticular application. following reset, the lpc11u6x o perates from the in ternal rc oscillator until software switches to a different clock source. the ir c allows the system to operate without any external crystal and the bootloader co de to operate at a known frequency. see figure 10 for an overview of the lpc11u6x clock generation. fig 11. power distribution real-time clock backup registers wake-up control regulator 32 khz oscillator always-on/rtc power domain main power domain rtcxin vbat vdd rtcxout vdd vss to memories, peripherals, oscillators, plls to core to i/o pads adc temp sense adc power domain vdda vssa lpc11u6x ultra low-power regulator wakeup aaa-010818 lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 37 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.25.3.1 internal rc oscillator the irc can be used as the clock source for the wdt, the usb pll in low-speed usb applications, or as the clock that drives the system pll and then the cpu. the nominal irc frequency is 12 mhz. upon power-up, any chip reset, or wake-u p from deep power-down mode, the lpc11u6x use the irc as the clock source. software can later switch to one of the other available clock sources. 8.25.3.2 system oscillator the system oscillator can be used as the clock source for the cpu, with or without using the pll. use the system oscillator to provide the clock source to usb. the system oscillator operates at frequencies of 1 mhz to 25 mhz. this frequency can be boosted to a higher frequency, up to the maximum cpu operating frequency, by the system pll. the system oscillator has a wake -up time of approximately 500 s. 8.25.3.3 watchdog oscillator the watchdog oscillator can be used as a clock source that directly drives the cpu, the watchdog timer, or the clkout pin. the watchdog oscillator nominal frequency is programmable between 9.4 khz and 2.3 mhz. th e frequency spread over processing and temperature is ? 40 % (see also ta b l e 1 4 ). 8.25.3.4 rtc oscillator the low-power rtc osc illator provides a 1 hz clock and a 1 khz clock to the rtc and a 32 khz clock output that can be used to obtain the main clock (see figure 10 ). 8.25.4 system pll and usb pll the lpc11u6x contain a system pll and a dedicated pll for generating the 48 mhz usb clock. the system and usb plls are identical. the pll accepts an input clock frequency in the range of 10 mhz to 25 mhz. the input frequency is multiplied up to a high frequency with a curren t controlled oscillator (cco). the multiplier can be an integer value from 1 to 32. the cco operates in the range of 156 mhz to 320 mhz. to support this frequency range, an additional divider keeps the cco within its frequency range while the pll is providing the desired output frequency. the output divider can be set to divide by 2, 4, 8, or 16 to produce the output clock. the pll output frequency must be lower than 100 mhz. since the minimum output divider value is 2, it is insured that the pll output has a 50 % duty cycle. the pll is turned off and bypassed following a chip reset. software can enable the pll later. the program must configure and activate the pll, wait for the pll to lock, and then connect to the pll as a clock source. the pll settling time is 100 ? s. 8.25.5 clock output the lpc11u6x feature a clock output function that routes the irc os cillator, the system oscillator, the watchdog oscillator, or the main clock to an output pin. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 38 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.25.6 wake-up process the lpc11u6x begin operation by using the 12 mhz irc oscillator as the clock source at power-up and when awakened from deep power-down mode. this mechanism allows chip operation to resume quickl y. if the application uses the main oscillator or the pll, software must enable these comp onents and wait for them to stabilize. only then can the system use the pll and main os cillator as a clock source. 8.25.7 power control the lpc11u6x support various power control features. there are four special modes of processor power reduction: sleep mode, deep-sleep mode, power-down mode, and deep power-down mode. the cpu clock rate can also be controlled as needed by changing clock sources, reconfiguring pll values, and/or altering the cpu clock divider value. this power cont rol mechanism allows a trade-off of power versus processing speed based on application requirements. in addition, a register is provided for shutting down the clocks to individual on-chip peripherals. this register allows fine-tuning of power consumption by eliminating all dynamic power use in any peripherals that are not required for the application. selected peripherals have their own clock divider which provides even better power control. 8.25.7.1 power profiles the power consumption in active and sleep modes can be optimized for the application through simple calls to the power profile. the power configuration routine configures the lpc11u6x for one of the following power modes: ? default mode corresponding to power configuration after reset. ? cpu performance mode co rresponding to optimize d processing capability. ? efficiency mode corresponding to optimize d balance of current consumption and cpu performance. ? low-current mode corresponding to lowest power consumption. in addition, the power profile includes routines to select the optimal pll settings for a given system clock and pll input clock. remark: when using the usb, configure the lpc11u6x in default mode. 8.25.7.2 sleep mode when sleep mode is entered, the clock to the core is stopped. resumption from the sleep mode does not need any special sequence but re-enabling the clock to the arm core. in sleep mode, execution of instructions is suspended until either a reset or interrupt occurs. peripheral functions continue opera tion during sleep mode and can generate interrupts to cause the processor to resume execution. sleep mode eliminates dynamic power used by the processor itself, by memory systems and related controllers, and by internal buses. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 39 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller 8.25.7.3 deep-sleep mode in deep-sleep mode, the lpc11u6x core is in sleep-mode and all peripheral clocks and all clock sources are off except for the irc. the irc output is disabled unless the irc is selected as input to the watchdog timer. in addition all analog blocks are shut down and the flash is in stand-by mode. in deep-sleep mode, the application can keep the watchdog oscillator and the bod circuit running for self-timed wake-up and bod protection. the lpc11u6x can wake up from deep-sleep mode via reset, selected gpio pins, a watchdog timer interrupt, an interrupt generating usb port activity, an rtc interrupt, or any interrupts that the usart1 to usart4 interfaces can create in deep-sleep mode. the usart wake-up requires the 32 khz mode, the synchronous mode, or the cts interrupt to be set up. deep-sleep mode saves power and allows for short wake-up times. 8.25.7.4 power-down mode in power-down mode, the lpc11u6x is in sleep-mode and all peripheral clocks and all clock sources are off except for watchdog os cillator if selected. in addition all analog blocks and the flash are shut down. in powe r-down mode, the application can keep the bod circuit running for bod protection. the lpc11u6x can wake up from power-down mode via reset, selected gpio pins, a watchdog timer interrupt, an interrupt generating usb port activity, an rtc interrupt, or any interrupts that the usart1 to usart4 interfaces can create in power-down mode. the usart wake-up requires the 32 khz mode, the synchronous mode, or the cts interrupt to be set up. power-down mode reduces power consumption compared to deep-sleep mode at the expense of longer wake-up times. 8.25.7.5 deep power-down mode in deep power-down mode, power is shut off to the entire chip except for the wakeup pin and the always-on rtc power domain. the lpc11u6x can wake up from deep power-down mode via the wakeup pin or a wake-up signal generated by the rtc interrupt. the lpc11u6x can be blocked from entering deep power-down mode by setting a lock bit in the pmu block. blocking the deep power-down mode enables the application to keep the watchdog timer or the bod running at all times. if the wakeup pin is used in th e application, an ex ternal pull-up resist or is required on the wakeup pin to hold it h igh while the part is in deep power-down mode. to wake up from deep power-down mode, pull the wakeup pin low. in addition, pull the reset pin high to prevent it from floating while in deep power-down mode. 8.26 system control 8.26.1 reset reset has four sources on the lpc11u6x: the reset pin, the watchdog reset, power-on reset (por), and the brownout detection (bod) circuit. the reset pin is a schmitt trigger input pin. assertion of chip reset by any source, once the operating voltage attains a usable level, starts the irc an d initializes the flash controller. lpc11u6x all information provided in this document is subject to legal disclaimers. ? nxp semiconductors n.v. 2014. all rights re served. product data sheet rev. 1.1 ? 12 march 2014 40 of 90 nxp semiconductors lpc11u6x 32-bit arm cortex-m0+ microcontroller when the internal reset is removed, the proc essor begins executing at address 0, which is initially the reset vector mapped from the bo ot block. at that point, all of the processor and peripheral registers have been initialized to predetermined values. the internal reset status is reflected on the rstout pin. in deep power-down mode, an external pull-up resistor is required on the reset pin. the reset pin is operational in active, sleep, deep-sleep, and power-down modes if the reset function is selected in the iocon regist er for pin pio0_0 (this is the default). a low-going pulse as short as 50 ns executes the reset and also wakes up the part if in sleep, deep-sleep or power-down mode. the reset pin is not functional in deep power-down mode. 8.26.2 brownout detection the lpc11u6x includes two levels for monitoring the voltage on the v dd pin. if this voltage falls below one of the selected levels, the bod asserts an interrupt signal to the nvic. this signal can be enabled for interrupt in the interrupt enable register in the nvic to cause a cpu interrupt. alternatively, so ftware can monitor the signal by reading a dedicated status register. two threshold levels can be selected to cause a forced reset of the chip. 8.26.3 code security (code read protection - crp) crp provides different levels of security in th e system so that access to the on-chip flash and use of the serial wire debugger (swd) and in-system programming (isp) can be restricted. programming a specific pattern in to a dedicated flash location invokes crp. iap commands are not affected by the crp. in addition, isp entry via the pio0_1 pin can be disabled without enabling crp. for details, see the lpc11uxx user manual . there are three levels of code read protection: fig 12. reset pin configuration 9 6 6 u h v h w d d d 9 ' ' 9 ' ' 9 ' ' 5 s x ( 6 ' ( 6 ' q v 5 & * / , 7 & |