OTC Datasheet
OTC Datasheet
OTC Datasheet
1. General description
The LPC2364/66/68 microcontrollers are based on a 16-bit/32-bit ARM7TDMI-S CPU with
real-time emulation that combines the microcontroller with up to 512 kB of embedded
high-speed flash memory. A 128-bit wide memory interface and a unique accelerator
architecture enable 32-bit code execution at the maximum clock rate. For critical
performance in interrupt service routines and DSP algorithms, this increases performance
up to 30 % over Thumb mode. For critical code size applications, the alternative 16-bit
Thumb mode reduces code by more than 30 % with minimal performance penalty.
The LPC2364/66/68 are ideal for multi-purpose serial communication applications. They
incorporate a 10/100 Ethernet Media Access Controller (MAC), USB full speed device
with 4 kB Endpoint RAM, four UARTs, two CAN channels, an SPI interface, two
Synchronous Serial Ports (SSP), three I2C interfaces, and an I2S interface. This blend of
serial communications interfaces combined with an on-chip 4 MHz internal oscillator,
SRAM of up to 32 kB, 16 kB SRAM for Ethernet, 8 kB SRAM for USB and general
purpose use, together with 2 kB battery powered SRAM make these devices very well
suited for communication gateways and protocol converters. Various 32-bit timers, an
improved 10-bit ADC, 10-bit DAC, one PWM unit, a CAN control unit, and up to 70 fast
GPIO lines with up to 12 edge or level sensitive external interrupt pins make these
microcontrollers particularly suitable for industrial control and medical systems.
2. Features
ARM7TDMI-S processor, running at up to 72 MHz.
Up to 512 kB on-chip Flash Program Memory with In-System Programming (ISP) and
In-Application Programming (IAP) capabilities. Flash program memory is on the ARM
local bus for high performance CPU access.
8/32 kB of SRAM on the ARM local bus for high performance CPU access.
16 kB SRAM for Ethernet interface. Can also be used as general purpose SRAM.
8 kB SRAM for general purpose DMA use also accessible by the USB.
Dual AHB system that provides for simultaneous Ethernet DMA, USB DMA, and
program execution from on-chip Flash with no contention between those functions. A
bus bridge allows the Ethernet DMA to access the other AHB subsystem.
Advanced Vectored Interrupt Controller, supporting up to 32 vectored interrupts.
General Purpose AHB DMA controller (GPDMA) that can be used with the SSP serial
interfaces, the I2S port, and the SD/MMC card port, as well as for memory-to-memory
transfers.
Serial Interfaces:
Philips Semiconductors LPC2364/2366/2368
Fast communication chip
On-chip PLL allows CPU operation up to the maximum CPU rate without the need for
a high frequency crystal. May be run from the main oscillator, the internal RC oscillator,
or the RTC oscillator.
Versatile pin function selections allow more possibilities for using on-chip peripheral
functions.
3. Applications
Industrial control
Medical systems
Protocol converter
Communications
4. Ordering information
Table 1. Ordering information
Type number Package
Name Description Version
LPC2364FBD100 LQFP100 plastic low profile quad flat package; 100 leads; body 14 × 14 × 1.4 mm SOT407-1
LPC2366FBD100
LPC2368FBD100
5. Block diagram
LPC2364/66/68 VREF
128/256/ SYSTEM
P0, P1, P2, 8/32 kB PLL
TRACE MODULE
512 kB TEST/DEBUG FUNCTIONS VSSA, VSS
P3, P4
EMULATION
SRAM FLASH INTERFACE
system INTERNAL RC
HIGH SPEED clock
GP I/O INTERNAL OSCILLATOR
ARM7TDMI-S
70 PINS CONTROLLERS
TOTAL SRAM FLASH
VECTORED
INTERRUPT
CONTROLLER
AHB2 AHB1
AHB AHB
BRIDGE BRIDGE
VBUS
MASTER AHB TO SLAVE USB WITH
ETHERNET 8 kB U1D+, U1D−
16 kB PORT APB BRIDGE PORT 4 kB RAM
RMII(8) MAC WITH SRAM U1CONNECT
SRAM & DMA
DMA U1UP_LED
AHB TO
APB BRIDGE GP DMA
CONTROLLER
EINT3 to EINT0 I2SRX_CLK
EXTERNAL INTERRUPTS
P0, P2 I2STX_CLK
I2SRX_WS
2 × CAP0, 1, 2, 3 I2S INTERFACE I2STX_WS
CAPTURE/COMPARE
TIMER0/TIMER1/ I2SRX_SDA
4 × MAT2,
TIMER2/TIMER3 I2STX_SDA
2 × MAT0, 1, 3
SCK, SCK0
6 × PWM1 MOSI, MOSI0
PWM1 SPI, SSP0 INTERFACE MISO, MISO0
2 × PCAP1
SSEL, SSEL1
SCK1
LEGAC Y GP I/O MOSI1
P0, P1 SSP1 INTERFACE
52 PINS TOTAL MIS01
SSEL1
002aac566
6. Pinning information
6.1 Pinning
100
76
1 75
LPC2364FBD100
LPC2366FBD100
LPC2368FBD100
25 51
26
50
002aac576
7. Functional description
The LPC2364/66/68 implements two AHB buses in order to allow the Ethernet block to
operate without interference caused by other system activity. The primary AHB, referred
to as AHB1, includes the Vectored Interrupt Controller, and General Purpose DMA
Controller.
The second AHB, referred to as AHB2, includes only the Ethernet block and an
associated 16 kB SRAM. In addition, a bus bridge is provided that allows the secondary
AHB to be a bus master on AHB1, allowing expansion of Ethernet buffer space into
off-chip memory or unused space in memory residing on AHB1.
In summary, bus masters with access to AHB1 are the ARM7 itself, the General Purpose
DMA function, and the Ethernet block (via the bus bridge from AHB2). Bus masters with
access to AHB2 are the ARM7 and the Ethernet block.
AHB peripherals are allocated a 2 MB range of addresses at the very top of the 4 GB
ARM memory space. Each AHB peripheral is allocated a 16 kB address space within the
AHB address space. Lower speed peripheral functions are connected to the APB bus.
The AHB to APB bridge interfaces the APB bus to the AHB bus. APB peripherals are also
allocated a 2 MB range of addresses, beginning at the 3.5 GB address point. Each APB
peripheral is allocated a 16 kB address space within the APB address space.
Pipeline techniques are employed so that all parts of the processing and memory systems
can operate continuously. Typically, while one instruction is being executed, its successor
is being decoded, and a third instruction is being fetched from memory.
The key idea behind Thumb is that of a super-reduced instruction set. Essentially, the
ARM7TDMI-S processor has two instruction sets:
Thumb code is able to provide up to 65 % of the code size of ARM, and 160 % of the
performance of an equivalent ARM processor connected to a 16-bit memory system.
The flash memory is 128 bits wide and includes pre-fetching and buffering techniques to
allow it to operate at SRAM speeds of 72 MHz.
A 16 kB SRAM block serving as a buffer for the Ethernet controller and an 8 kB SRAM
associated with the USB device can be used both for data and code storage, too.
Remaining SRAM such as a 4 kB USB FIFO and a 2 kB RTC SRAM can be used for data
storage only. The RTC SRAM is battery powered and retains the content in the absence of
the main power supply.
In addition, the CPU interrupt vectors may be remapped to allow them to reside in either
flash memory (default), Boot ROM, or SRAM (see Section 7.25.6).
APB PERIPHERALS
3.5 GB 0xE000 0000
0x0008 0000
0x0007 FFFF
TOTAL OF 512 kB ON-CHIP NON-VOLATILE MEMORY (LPC2368)
0x0004 0000
0x0003 FFFF
TOTAL OF 256 kB ON-CHIP NON-VOLATILE MEMORY (LPC2366)
0x0002 0000
0x0001 FFFF
TOTAL OF 128 kB ON-CHIP NON-VOLATILE MEMORY (LPC2364)
0.0 GB 0x0000 0000
002aac577
FIQs have the highest priority. If more than one request is assigned to FIQ, the VIC ORs
the requests to produce the FIQ signal to the ARM processor. The fastest possible FIQ
latency is achieved when only one request is classified as FIQ, because then the FIQ
service routine can simply start dealing with that device. But if more than one request is
assigned to the FIQ class, the FIQ service routine can read a word from the VIC that
identifies which FIQ source(s) is (are) requesting an interrupt.
Vectored IRQs, which include all interrupt requests that are not classified as FIQs, have a
programmable interrupt priority. When more than one interrupt is assigned the same
priority and occur simultaneously, the one connected to the lowest numbered VIC channel
will be serviced first.
The VIC ORs the requests from all of the vectored IRQs to produce the IRQ signal to the
ARM processor. The IRQ service routine can start by reading a register from the VIC and
jumping to the address supplied by that register.
Any pin on PORT0 and PORT2 (total of 42 pins) regardless of the selected function, can
be programmed to generate an interrupt on a rising edge, a falling edge, or both. Such
interrupt request coming from PORT0 and/or PORT2 will be combined with the EINT3
interrupt requests.
Peripherals should be connected to the appropriate pins prior to being activated and prior
to any related interrupt(s) being enabled. Activity of any enabled peripheral function that is
not mapped to a related pin should be considered undefined.
7.7.1 Features
• Two DMA channels. Each channel can support a unidirectional transfer.
• The GPDMA can transfer data between the 8 kB SRAM and peripherals such as the
SD/MMC, two SSP, and I2S interfaces.
LPC2364_66_68_1 © Koninklijke Philips Electronics N.V. 2006. All rights reserved.
• Single DMA and burst DMA request signals. Each peripheral connected to the
GPDMA can assert either a burst DMA request or a single DMA request. The DMA
burst size is set by programming the GPDMA.
• Memory-to-memory, memory-to-peripheral, peripheral-to-memory, and
peripheral-to-peripheral transfers.
• 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.
• Hardware DMA channel priority. Each DMA channel has a specific hardware priority.
DMA channel 0 has the highest priority and channel 1 has the lowest priority. If
requests from two channels become active at the same time the channel with the
highest priority is serviced first.
• AHB slave DMA programming interface. The GPDMA is programmed by writing to the
DMA control registers over the AHB slave interface.
• One AHB bus master for transferring data. This interface transfers data when a DMA
request goes active.
• 32-bit AHB master bus width.
• Incrementing or non-incrementing addressing for source and destination.
• Programmable DMA burst size. The DMA burst size can be programmed to more
efficiently transfer data. Usually the burst size is set to half the size of the FIFO in the
peripheral.
• Internal four-word FIFO per channel.
• Supports 8-bit, 16-bit, and 32-bit wide transactions.
• An interrupt to the processor can be generated on a DMA completion or when a DMA
error has occurred.
• Interrupt masking. The DMA error and DMA terminal count interrupt requests can be
masked.
• Raw interrupt status. The DMA error and DMA count raw interrupt status can be read
prior to masking.
• GPIO registers are relocated to the ARM local bus so that the fastest possible I/O
timing can be achieved.
• Mask registers allow treating sets of port bits as a group, leaving other bits
unchanged.
• All GPIO registers are byte and half-word addressable.
• Entire port value can be written in one instruction.
Additionally, any pin on PORT0 and PORT2 (total of 42 pins) providing a digital function
can be programmed to generate an interrupt on a rising edge, a falling edge, or both. The
edge detection is asynchronous, so it may operate when clocks are not present such as
during Power-down mode. Each enabled interrupt can be used to wake up the chip from
Power-down mode.
7.8.1 Features
• Bit level set and clear registers allow a single instruction to set or clear any number of
bits in one port.
• Direction control of individual bits.
• All I/O default to inputs after reset.
• Backward compatibility with other earlier devices is maintained with legacy PORT0
and PORT1 registers appearing at the original addresses on the APB bus.
7.9 Ethernet
The Ethernet block contains a full featured 10 Mbit/s or 100 Mbit/s Ethernet MAC
designed to provide optimized performance through the use of DMA hardware
acceleration. Features include a generous suite of control registers, half or full duplex
operation, flow control, control frames, hardware acceleration for transmit retry, receive
packet filtering and wake-up on LAN activity. Automatic frame transmission and reception
with Scatter-Gather DMA off-loads many operations from the CPU.
The Ethernet block and the CPU share a dedicated AHB subsystem that is used to access
the Ethernet SRAM for Ethernet data, control, and status information. All other AHB traffic
in the LPC2364/66/68 takes place on a different AHB subsystem, effectively separating
Ethernet activity from the rest of the system. The Ethernet DMA can also access the USB
SRAM if it is not being used by the USB block.
The Ethernet block interfaces between an off-chip Ethernet PHY using the RMII (reduced
MII) protocol and the on-chip MIIM (Media Independent Interface Management) serial
bus.
7.9.1 Features
• Ethernet standards support:
– Supports 10 Mbit/s or 100 Mbit/s PHY devices including 10 Base-T, 100 Base-TX,
100 Base-FX, and 100 Base-T4.
– Fully compliant with IEEE standard 802.3.
– Fully compliant with 802.3x Full Duplex Flow Control and Half Duplex back
pressure.
– Flexible transmit and receive frame options.
– VLAN frame support.
• Memory management:
– Independent transmit and receive buffers memory mapped to shared SRAM.
– DMA managers with scatter/gather DMA and arrays of frame descriptors.
– Memory traffic optimized by buffering and pre-fetching.
• Physical interface:
– Attachment of external PHY chip through standard Reduced MII (RMII) interface.
– PHY register access is available via the Media Independent Interface Management
(MIIM) interface.
7.10.2 Features
• Fully compliant with USB 2.0 specification (full speed).
• Supports 32 physical (16 logical) endpoints with a 4 kB USB buffer.
• 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, LPC2364/66/68 can enter one of the reduced
power down modes and wake up on a USB activity.
• Supports DMA transfers with the DMA RAM of 8 kB on all non-control endpoints.
LPC2364_66_68_1 © Koninklijke Philips Electronics N.V. 2006. All rights reserved.
The CAN block is intended to support multiple CAN buses simultaneously, allowing the
device to be used as a gateway, switch, or router among a number of CAN buses in
industrial or automotive applications.
Each CAN controller has a register structure similar to the Philips SJA1000 and the
PeliCAN Library block, but the 8-bit registers of those devices have been combined in
32-bit words to allow simultaneous access in the ARM environment. The main operational
difference is that the recognition of received Identifiers, known in CAN terminology as
Acceptance Filtering, has been removed from the CAN controllers and centralized in a
global Acceptance Filter.
7.11.1 Features
• Two CAN controllers and buses.
• Data rates to 1 Mbit/s on each bus.
• 32-bit register and RAM access.
• Compatible with CAN specification 2.0B, ISO 11898-1.
• Global Acceptance Filter recognizes 11-bit and 29-bit Rx Identifiers for all CAN buses.
• Acceptance Filter can provide FullCAN-style automatic reception for selected
Standard Identifiers.
• Full CAN messages can generate interrupts.
7.12.1 Features
• 10-bit successive approximation ADC.
• Input multiplexing among 6 pins.
• Power-down mode.
• Measurement range 0 V to Vi(VREF).
• 10-bit conversion time ≥ 2.44 µs.
• Burst conversion mode for single or multiple inputs.
• Optional conversion on transition of input pin or Timer Match signal.
• Individual result registers for each ADC channel to reduce interrupt overhead.
7.13.1 Features
• 10-bit DAC
• Resistor string architecture
• Buffered output
• Power-down mode
• Selectable output drive
7.14 UARTs
The LPC2364/66/68 each contain four UARTs. In addition to standard transmit and
receive data lines, UART1 also provides a full modem control handshake interface.
The UARTs include a fractional baud rate generator. Standard baud rates such as 115200
can be achieved with any crystal frequency above 2 MHz.
7.14.1 Features
• 16 B 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 covering wide range of baud rates without a
need for external crystals of particular values.
• Fractional divider for baud rate control, autobaud capabilities and FIFO control
mechanism that enables software flow control implementation.
• UART1 equipped with standard modem interface signals. This module also provides
full support for hardware flow control (auto-CTS/RTS)
• UART3 includes an IrDA mode to support infrared communication.
7.15.1 Features
• Compliant with Serial Peripheral Interface (SPI) specification
• Synchronous, Serial, Full Duplex Communication
• Combined SPI master and slave
• Maximum data bit rate of one eighth of the input clock rate
• 8 bits to 16 bits per transfer
7.16.1 Features
• Compatible with Motorola SPI, 4-wire TI SSI, and National Semiconductor Microwire
buses
• Synchronous Serial Communication
• Master or slave operation
• 8-frame FIFOs for both transmit and receive
• Four bits to 16 bits frame
• DMA transfers supported by GPDMA
7.17.1 Features
• The MCI interface provides all functions specific to the Secure Digital/MultiMedia
memory card. These include the clock generation unit, power management control,
and command and data transfer.
• Conformance to Multimedia Card Specification v2.11.
• Conformance to Secure Digital Memory Card Physical Layer Specification, v0.96.
• Can be used as a multimedia card bus or a secure digital memory card bus host. The
SD/MMC can be connected to several multimedia cards or a single secure digital
memory card.
• DMA supported through the General Purpose DMA Controller.
The I2C-bus is bidirectional, for inter-IC control 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 memory). Transmitters and/or
receivers can operate in either master or slave mode, depending on whether the chip has
to initiate a data transfer or is only addressed. The I2C-bus is a multi-master bus, it can be
controlled by more than one bus master connected to it.
The I2C-bus implemented in LPC2364/66/68 supports bit rates up to 400 kbit/s (Fast
I2C-bus).
7.18.1 Features
• I2C0 is a standard I2C compliant bus interface with open-drain pins.
• I2C1 and I2C2 use standard I/O pins and do not support powering off of individual
devices connected to the same bus lines
• 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 transmitting 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 I2C-bus can be used for test and diagnostic purposes.
The I2S-bus specification defines a 3-wire serial bus using one data line, one clock line,
and one word select signal. The basic I2S connection has one master, which is always the
master, and one slave. The I2S interface on the LPC2364/66/68 provides a separate
transmit and receive channel, each of which can operate as either a master or a slave.
7.19.1 Features
• The interface has separate input output channels each of which can operate in master
or slave mode.
• Capable of handling 8-bit, 16-bit, and 32-bit word sizes.
• Mono and stereo audio data supported.
• The sampling frequency can range from 16 kHz to 48 kHz (16, 22.05, 32, 44.1,
48) kHz.
• Configurable Word Select period in master mode (separately for I2S input and output).
• Two 8 word FIFO data buffers are provided, one for transmit and one for receive.
• Generates interrupt requests when buffer levels cross a programmable boundary.
• Two DMA requests, controlled by programmable buffer levels. These are connected
to the General Purpose DMA block.
• Controls include reset, stop and mute options separately for I2S input and I2S output.
7.20.1 Features
• A 32-bit Timer/Counter with a programmable 32-bit Prescaler.
• Counter or Timer operation
• Two 32-bit capture channels per timer, that can take a snapshot of the timer value
when an input signal transitions. A capture event may also generate an interrupt.
• Four 32-bit match registers 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 ability to separately control rising and falling edge locations allows the PWM to be
used for more applications. For instance, multi-phase motor control typically requires
three non-overlapping PWM outputs with individual control of all three pulse widths and
positions.
Two match registers can be used to provide a single edge controlled PWM output. One
match register (PWMMR0) controls the PWM cycle rate, by resetting the count upon
match. The other match register controls the PWM edge position. Additional single edge
controlled PWM outputs require only one match register each, since the repetition rate is
the same for all PWM outputs. Multiple single edge controlled PWM outputs will all have a
rising edge at the beginning of each PWM cycle, when an PWMMR0 match occurs.
Three match registers can be used to provide a PWM output with both edges controlled.
Again, the PWMMR0 match register controls the PWM cycle rate. The other match
registers control the two PWM edge positions. Additional double edge controlled PWM
outputs require only two match registers each, since the repetition rate is the same for all
PWM outputs.
LPC2364_66_68_1 © Koninklijke Philips Electronics N.V. 2006. All rights reserved.
With double edge controlled PWM outputs, specific match registers control the rising and
falling edge of the output. This allows both positive going PWM pulses (when the rising
edge occurs prior to the falling edge), and negative going PWM pulses (when the falling
edge occurs prior to the rising edge).
7.21.1 Features
• LPC2364/66/68 has one PWM block with Counter or Timer operation (may use the
peripheral clock or one of the capture inputs as the clock source).
• Seven match registers allow up to 6 single edge controlled or 3 double edge
controlled PWM outputs, or a mix of both types. The match registers also 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.
• Supports single edge controlled and/or double edge controlled PWM outputs. Single
edge controlled PWM outputs all go high at the beginning of each cycle unless the
output is a constant low. Double edge controlled PWM outputs can have either edge
occur at any position within a cycle. This allows for both positive going and negative
going pulses.
• Pulse period and width can be any number of timer counts. This allows complete
flexibility in the trade-off between resolution and repetition rate. All PWM outputs will
occur at the same repetition rate.
• Double edge controlled PWM outputs can be programmed to be either positive going
or negative going pulses.
• Match register updates are synchronized with pulse outputs to prevent generation of
erroneous pulses. Software must ‘release’ new match values before they can become
effective.
• May be used as a standard timer if the PWM mode is not enabled.
• A 32-bit Timer/Counter with a programmable 32-bit Prescaler.
7.22.1 Features
• Internally resets chip if not periodically reloaded.
• Debug mode.
• Enabled by software but requires a hardware reset or a Watchdog reset/interrupt to be
disabled.
• Incorrect/Incomplete feed sequence causes reset/interrupt if enabled.
• Flag to indicate Watchdog reset.
• Programmable 32-bit timer with internal pre-scaler.
The VBAT pin supplies power only to the RTC and the Battery RAM. These two functions
require a minimum of power to operate, which can be supplied by an external battery.
7.23.1 Features
• Measures the passage of time to maintain a calendar and clock.
• Ultra Low Power design to support battery powered systems.
• Provides Seconds, Minutes, Hours, Day of Month, Month, Year, Day of Week, and
Day of Year.
• Dedicated 32 kHz oscillator or programmable prescaler from APB clock.
• Dedicated power supply pin can be connected to a battery or to the main 3.3 V.
• Periodic interrupts can be generated from increments of any field of the time registers,
and selected fractional second values.
• 2 kB data SRAM powered by VBAT.
• RTC and Battery RAM power supply is isolated from the rest of the chip.
Following reset, the LPC2364/66/68 will operate from the Internal RC oscillator until
switched by software. This allows systems to operate without any external crystal and the
bootloader code to operate at a known frequency.
Upon power-up or any chip reset, the LPC2364/66/68 uses the IRC as the clock source.
Software may later switch to one of the other available clock sources.
7.24.2 PLL
The PLL accepts an input clock frequency in the range of 31 kHz to 50 MHz. The input
frequency is multiplied up to a high frequency, then divided down to provide the actual
clock used by the CPU and the USB block.
The PLL input, in the range of 32 kHZ to 50 MHz, may initially be divided down by a value
‘N’, which may be in the range of 1 to 256. This input division provides a wide range of
output frequencies from the same input frequency.
Following the PLL input divider is the PLL multiplier. This can multiply the input divider
output through the use of a Current Controlled Oscillator (CCO) by a value ‘M’, in the
range of 1 through 32768. The resulting frequency must be in the range of 275 MHz to
550 MHz. The multiplier works by dividing the CCO output by the value of M, then using a
phase-frequency detector to compare the divided CCO output to the multiplier input. The
error value is used to adjust the CCO frequency.
The PLL is turned off and bypassed following a chip Reset and by entering Power-down
mode. PLL is enabled by software only. The program must configure and activate the PLL,
wait for the PLL to Lock, then connect to the PLL as a clock source.
When the main oscillator is initially activated, the wake-up timer allows software to ensure
that the main oscillator is fully functional before the processor uses it as a clock source
and starts to execute instructions. This is important at power on, all types of Reset, and
whenever any of the aforementioned functions are turned off for any reason. Since the
oscillator and other functions are turned off during Power-down mode, any wake-up of the
processor from Power-down mode makes use of the wake-up Timer.
The Wake-up Timer monitors the crystal oscillator to check whether it is safe to begin
code execution. When power is applied to the chip, or when some event caused the chip
to exit Power-down mode, some time is required for the oscillator to produce a signal of
sufficient amplitude to drive the clock logic. The amount of time depends on many factors,
including the rate of VDD ramp (in the case of power on), the type of crystal and its
electrical characteristics (if a quartz crystal is used), as well as any other external circuitry
(e.g. capacitors), and the characteristics of the oscillator itself under the existing ambient
conditions.
The LPC2364/66/68 also implements a separate power domain in order to allow turning
off power to the bulk of the device while maintaining operation of the Real Time Clock and
a small SRAM, referred to as the Battery RAM.
The Sleep mode can be terminated and normal operation resumed by either a Reset or
certain specific interrupts that are able to function without clocks. Since all dynamic
operation of the chip is suspended, Sleep mode reduces chip power consumption to a
very low value. The Flash memory is left on in Sleep mode, allowing a very quick
wake-up.
On the wake-up of sleep mode, if the IRC was used before entering sleep mode, the code
execution and peripherals activities will resume after 4 cycles expire. If the main external
oscillator was used, the code execution will resume when 4096 cycles expire.
The customers need to reconfigure the PLL and clock dividers accordingly.
On the wake-up of power-down mode, if the IRC was used before entering power-down
mode, it will take IRC 60 µs to start-up. After this 4 IRC cycles will expire before the code
execution can then be resumed if the code was running from SRAM. In the meantime, the
flash wake-up timer then counts 4 MHz IRC clock cycles to make the 100 µs Flash
start-up time. When it times out, access to the Flash will be allowed. The customers need
to reconfigure the PLL and clock dividers accordingly.
If power is supplied to the LPC2364/66/68 during Deep power-down mode, wake-up can
be caused by external Reset.
While in Deep power-down mode, external device power may be removed. In this case,
the LPC2364/66/68 will start up when external power is restored.
Essential data may be retained through Deep power-down mode (or through complete
powering off of the chip) by storing data in the Battery RAM, as long as the external power
to the VBAT pin is maintained.
The 3.3V (VDD(3V3)) pins power both the on-chip DC-DC converter and the I/O pads.
These pins provide the power for the CPU and most of the peripherals. If power is
removed from the VDD pins, the CPU and related peripherals stop.
The VBAT pin supplies power only to the RTC and the Battery RAM. These two functions
require a minimum of power to operate, which can be supplied by an external battery.
7.25.1 Reset
Reset has four sources on the LPC2364/66/68: the RESET pin, the Watchdog Reset,
Power On Reset (POR) and the Brown Out Detection circuit (BOD). 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 Wake-up timer (see description in Section 7.24.3
“Wake-up timer”), causing reset to remain asserted until the external Reset is
de-asserted, the oscillator is running, a fixed number of clocks have passed, and the
Flash controller has completed its initialization.
When the internal Reset is removed, the processor begins executing at address 0, which
is initially the Reset vector mapped from the Boot Block. At that point, all of the processor
and peripheral registers have been initialized to predetermined values.
The second stage of low-voltage detection asserts Reset to inactivate the LPC2364/66/68
when the voltage on the VDD pins falls below 2.65 V. This Reset prevents alteration of the
Flash as operation of the various elements of the chip would otherwise become unreliable
due to low voltage. The BOD circuit maintains this reset down below 1 V, at which point
the Power-On Reset circuitry maintains the overall Reset.
Both the 2.95 V and 2.65 V thresholds include some hysteresis. In normal operation, this
hysteresis allows the 2.95 V detection to reliably interrupt, or a regularly-executed event
loop to sense the condition.
If after reset the on-chip bootloader detects a valid checksum in flash and reads
0x8765 4321 from address 0x1FC in flash, debugging will be disabled and thus the code
in flash will be protected from observation. Once debugging is disabled, it can be enabled
by performing a full chip erase using the ISP.
The second AHB, referred to as AHB2, includes only the Ethernet block and an
associated 16 kB SRAM. In addition, a bus bridge is provided that allows the secondary
AHB to be a bus master on AHB1, allowing expansion of Ethernet buffer space into
unused space in memory residing on AHB1.
In summary, bus masters with access to AHB1 are the ARM7 itself, the USB block, the
General Purpose DMA function, and the Ethernet block (via the bus bridge from AHB2).
Bus masters with access to AHB2 are the ARM7 and the Ethernet block.
7.26.1 EmbeddedICE
The EmbeddedICE logic provides on-chip debug support. The debugging of the target
system requires a host computer running the debugger software and an EmbeddedICE
protocol convertor. The EmbeddedICE protocol convertor converts the Remote Debug
Protocol commands to the JTAG data needed to access the ARM7TDMI-S core present
on the target system.
The ARM core has a Debug Communication Channel (DCC) function built-in. The DCC
allows a program running on the target to communicate with the host debugger or another
separate host without stopping the program flow or even entering the debug state. The
DCC is accessed as a co-processor 14 by the program running on the ARM7TDMI-S
core. The DCC allows the JTAG port to be used for sending and receiving data without
affecting the normal program flow. The DCC data and control registers are mapped in to
addresses in the EmbeddedICE logic.
The ETM is connected directly to the ARM core and not to the main AMBA system bus. It
compresses the trace information and exports it through a narrow trace port. An external
Trace Port Analyzer captures the trace information under software debugger control. The
trace port can broadcast the Instruction trace information. Instruction trace (or PC trace)
shows the flow of execution of the processor and provides a list of all the instructions that
LPC2364_66_68_1 © Koninklijke Philips Electronics N.V. 2006. All rights reserved.
7.26.3 RealMonitor
RealMonitor is a configurable software module, developed by ARM Inc., which enables
real-time debug. It is a lightweight debug monitor that runs in the background while users
debug their foreground application. It communicates with the host using the DCC, which is
present in the EmbeddedICE logic. The LPC2364/66/68 contain a specific configuration of
RealMonitor software programmed into the on-chip ROM memory.
8. Limiting values
Table 4. Limiting values
In accordance with the Absolute Maximum Rating System (IEC 60134).[1]
Symbol Parameter Conditions Min Max Unit
VDD supply voltage (core and external rail) −0.5 +3.6 V
VDDA analog 3.3 V pad supply voltage −0.5 +4.6 V
Vi(VBAT) input voltage on pin VBAT for the RTC −0.5 +4.6 V
Vi(VREF) input voltage on pin VREF −0.5 +4.6 V
VIA analog input voltage on ADC related −0.5 +5.1 V
pins
VI input voltage 5 V tolerant I/O [2] −0.5 +6.0 V
pins; only valid
when the VDD
supply voltage is
present
other I/O pins [2][3] −0.5 VDD + 0.5 V
IDD supply current per supply pin [4] - 100 mA
ISS ground current per ground pin [4] - 100 mA
Tstg storage temperature [5] −40 +125 °C
Ptot(pack) total power dissipation (per package) based on package - 1.5 W
heat transfer, not
device power
consumption
Vesd electrostatic discharge voltage human body model [6]
all pins 2 V
9. Static characteristics
Table 5. Static characteristics
Tamb = −40 °C to +85 °C for commercial applications, unless otherwise specified.
Symbol Parameter Conditions Min Typ[1] Max Unit
VDD(3V3) supply voltage core and external rail 3.0 3.3 3.6 V
VDDA analog 3.3 V pad supply 3.0 3.3 3.6 V
voltage
Vi(VBAT) input voltage on pin [2] 2.0 3.3 3.6 V
VBAT
Vi(VREF) input voltage on pin 2.5 3.3 VDDA V
VREF
Standard port pins, RESET, RTCK
IIL LOW-level input current VI = 0 V; no pull-up - - 3 µA
IIH HIGH-level input VI = VDD; no pull-down - - 3 µA
current
IOZ OFF-state output VO = 0 V; VO = VDD; no - - 3 µA
current pull-up/down
Ilatch I/O latch-up current −(0.5VDD) < VI < (1.5VDD) - - 100 mA
Tj < 125 °C
VI input voltage pin configured to provide a [3][4][5] 0 - 5.5 V
digital function
VO output voltage output active 0 - VDD V
VIH HIGH-level input 2.0 - - V
voltage
VIL LOW-level input voltage - - 0.8 V
Vhys hysteresis voltage - 0.4 - V
VOH HIGH-level output IOH = −4 mA [6] VDD − 0.4 - - V
voltage
VOL LOW-level output IOL = −4 mA [6] - - 0.4 V
voltage
IOH HIGH-level output VOH = VDD − 0.4 V [6] −4 - - mA
current
IOL LOW-level output VOL = 0.4 V [6] 4 - - mA
current
IOHS HIGH-level short-circuit VOH = 0 V [7] - - −45 mA
output current
IOLS LOW-level short-circuit VOL = VDDA [7] - - 50 mA
output current
Ipd pull-down current VI = 5 V [8] 10 50 150 µA
Ipu pull-up current VI = 0 V −15 −50 −85 µA
VDD < VI < 5 V [8] 0 0 0 µA
[1] Typical ratings are not guaranteed. The values listed are at room temperature (+25 °C), nominal supply voltages.
[2] The RTC typically fails when Vi(VBAT) drops below 1.6 V.
[3] Including voltage on outputs in 3-state mode.
[4] VDD supply voltages must be present.
[5] 3-state outputs go into 3-state mode when VDD is grounded.
[6] Accounts for 100 mV voltage drop in all supply lines.
[7] Only allowed for a short time period.
[8] Minimum condition for VI = 4.5 V, maximum condition for VI = 5.5 V.
[9] On pin VBAT.
[10] Optimized for low battery consumption.
[11] To VSS.
[12] Includes external resistors of 18 Ω ± 1 % on D+ and D−.
offset gain
error error
EO EG
1023
1022
1021
1020
1019
1018
(2)
7
code (1)
out
6
(5)
4
(4)
3
(3)
2
1 1 LSB
(ideal)
0
1 2 3 4 5 6 7 1018 1019 1020 1021 1022 1023 1024
VIA (LSBideal)
offset error
EO VDDA − VSSA
1 LSB =
1024
002aac046
LPC2364/66/68
20 k Rvsi
ADx.y
ADx.ySAMPLE
3 pF 5 pF
VEXT
VSS
002aac575
[1] Parameters are valid over operating temperature range unless otherwise specified.
[2] Typical ratings are not guaranteed. The values listed are at room temperature (+25 °C), nominal supply voltages.
[3] Bus capacitance Cb in pF, from 10 pF to 400 pF.
10.1 Timing
VDD − 0.5 V
0.2VDD + 0.9 V
0.2VDD − 0.1 V
0.45 V
tCHCX
tCHCL tCLCX tCLCH
Tcy(clk)
002aaa907
002aab561
VDD
UP_LED
CONNECT
LPC23XX
soft-connect switch
R1
1.5 kΩ
VBUS
D+ RS = 33 Ω USB-B
connector
RS = 33 Ω
D-
VSS
002aac578
VDD
R2
LPC23XX R1
UP_LED 1.5 kΩ
VBUS
D+ RS = 33 Ω USB-B
connector
D- RS = 33 Ω
VSS
002aac579
LQFP100: plastic low profile quad flat package; 100 leads; body 14 x 14 x 1.4 mm SOT407-1
c
y
X
A
75 51
76 50
ZE
E HE A A2 (A 3)
A1
w M
bp
Lp
pin 1 index L
100 detail X
26
1 25
ZD v M A
e w M
bp
D B
HD v M B
0 5 10 mm
scale
mm 1.6
0.15 1.45 0.27 0.20 14.1 14.1 16.25 16.25 0.75 1.15 1.15 7o
0.25 0.5 1 0.2 0.08 0.08 o
0.05 1.35 0.17 0.09 13.9 13.9 15.75 15.75 0.45 0.85 0.85 0
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
00-02-01
SOT407-1 136E20 MS-026
03-02-20
13. Abbreviations
Table 9. Abbreviations
Acronym Description
ADC Analog-to-Digital Converter
AHB Advanced High-performance Bus
AMBA Advanced Microcontroller Bus Architecture
APB Advanced Peripheral Bus
BOD Brown-Out Detection
CPU Central Processing Unit
DAC Digital-to-Analog Converter
DCC Debug Communications Channel
DMA Direct Memory Access
ETM Embedded Trace Macrocell
FIFO First In, First Out
GPIO General Purpose Input/Output
JTAG Joint Test Action Group
PHY Physical Layer
PLL Phase-Locked Loop
POR Power-On Reset
PWM Pulse Width Modulator
RAM Random Access Memory
SPI Serial Peripheral Interface
SRAM Static Random Access Memory
SSP Synchronous Serial Port
UART Universal Asynchronous Receiver/Transmitter
USB Universal Serial Bus
[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 devices. The latest product status
information is available on the Internet at URL http://www.semiconductors.philips.com.
Short data sheet — A short data sheet is an extract from a full data sheet Limiting values — Stress above one or more limiting values (as defined in
with the same product type number(s) and title. A short data sheet is intended the Absolute Maximum Ratings System of IEC 60134) may cause permanent
for quick reference only and should not be relied upon to contain detailed and damage to the device. Limiting values are stress ratings only and operation of
full information. For detailed and full information see the relevant full data the device at these or any other conditions above those given in the
sheet, which is available on request via the local Philips Semiconductors Characteristics sections of this document is not implied. Exposure to limiting
sales office. In case of any inconsistency or conflict with the short data sheet, values for extended periods may affect device reliability.
the full data sheet shall prevail. Terms and conditions of sale — Philips Semiconductors products are sold
subject to the general terms and conditions of commercial sale, as published
at http://www.semiconductors.philips.com/profile/terms, including those
15.3 Disclaimers pertaining to warranty, intellectual property rights infringement and limitation
of liability, unless explicitly otherwise agreed to in writing by Philips
General — Information in this document is believed to be accurate and Semiconductors. In case of any inconsistency or conflict between information
reliable. However, Philips Semiconductors does not give any representations in this document and such terms and conditions, the latter will prevail.
or warranties, expressed or implied, as to the accuracy or completeness of
No offer to sell or license — Nothing in this document may be interpreted or
such information and shall have no liability for the consequences of use of
construed as an offer to sell products that is open for acceptance or the grant,
such information.
conveyance or implication of any license under any copyrights, patents or
Right to make changes — Philips Semiconductors reserves the right to other industrial or intellectual property rights.
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 15.4 Trademarks
to the publication hereof.
Notice: All referenced brands, product names, service names and trademarks
Suitability for use — Philips Semiconductors products are not designed,
are the property of their respective owners.
authorized or warranted to be suitable for use in medical, military, aircraft,
space or life support equipment, nor in applications where failure or I2C-bus — logo is a trademark of Koninklijke Philips Electronics N.V.
malfunction of a Philips Semiconductors product can reasonably be expected
17. Contents
1 General description . . . . . . . . . . . . . . . . . . . . . . 1 7.20.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 7.21 Pulse width modulator . . . . . . . . . . . . . . . . . . 24
3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7.21.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.22 Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 25
4 Ordering information . . . . . . . . . . . . . . . . . . . . . 3
7.22.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1 Ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3 7.23 Real time clock and battery RAM. . . . . . . . . . 26
5 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4 7.23.1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6 Pinning information . . . . . . . . . . . . . . . . . . . . . . 5 7.24 Clocking and power control . . . . . . . . . . . . . . 26
6.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 7.24.1 Crystal oscillators. . . . . . . . . . . . . . . . . . . . . . 26
6.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5 7.24.1.1 Internal RC oscillator . . . . . . . . . . . . . . . . . . . 27
7 Functional description . . . . . . . . . . . . . . . . . . 12 7.24.1.2 Main oscillator . . . . . . . . . . . . . . . . . . . . . . . . 27
7.1 Architectural overview . . . . . . . . . . . . . . . . . . 12 7.24.1.3 RTC oscillator . . . . . . . . . . . . . . . . . . . . . . . . 27
7.2 On-chip flash programming memory . . . . . . . 14 7.24.2 PLL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7.3 On-chip SRAM . . . . . . . . . . . . . . . . . . . . . . . . 14 7.24.3 Wake-up timer . . . . . . . . . . . . . . . . . . . . . . . . 27
7.4 Memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 14 7.24.4 Power control . . . . . . . . . . . . . . . . . . . . . . . . . 28
7.5 Interrupt controller . . . . . . . . . . . . . . . . . . . . . 15 7.24.4.1 Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
7.5.1 Interrupt sources. . . . . . . . . . . . . . . . . . . . . . . 16 7.24.4.2 Sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . 28
7.6 Pin connect block . . . . . . . . . . . . . . . . . . . . . . 16 7.24.4.3 Power-down mode . . . . . . . . . . . . . . . . . . . . . 29
7.7 General purpose DMA controller . . . . . . . . . . 16 7.24.4.4 Deep power-down mode . . . . . . . . . . . . . . . . 29
7.7.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 7.24.4.5 Power domains . . . . . . . . . . . . . . . . . . . . . . . 29
7.8 Fast general purpose parallel I/O . . . . . . . . . . 17 7.25 System control . . . . . . . . . . . . . . . . . . . . . . . . 30
7.8.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.25.1 Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.9 Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.25.2 Brown-out detection . . . . . . . . . . . . . . . . . . . . 30
7.9.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.25.3 Code security . . . . . . . . . . . . . . . . . . . . . . . . 30
7.10 USB interface . . . . . . . . . . . . . . . . . . . . . . . . . 19 7.25.4 AHB bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.10.1 USB device controller . . . . . . . . . . . . . . . . . . . 19 7.25.5 External interrupt inputs . . . . . . . . . . . . . . . . . 31
7.10.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 7.25.6 Memory mapping control . . . . . . . . . . . . . . . . 31
7.11 CAN controller and acceptance filters . . . . . . 20 7.26 Emulation and debugging . . . . . . . . . . . . . . . 31
7.11.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.26.1 EmbeddedICE . . . . . . . . . . . . . . . . . . . . . . . . 31
7.12 10-bit ADC . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.26.2 Embedded trace. . . . . . . . . . . . . . . . . . . . . . . 31
7.12.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.26.3 RealMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . 32
7.13 10-bit DAC . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 8 Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 33
7.13.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 9 Static characteristics . . . . . . . . . . . . . . . . . . . 34
7.14 UARTs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 10 Dynamic characteristics. . . . . . . . . . . . . . . . . 40
7.14.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 10.1 Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
7.15 SPI serial I/O controller. . . . . . . . . . . . . . . . . . 21
11 Application information . . . . . . . . . . . . . . . . . 42
7.15.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
11.1 Suggested USB interface solutions . . . . . . . . 42
7.16 SSP serial I/O controller . . . . . . . . . . . . . . . . . 22
7.16.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 12 Package outline. . . . . . . . . . . . . . . . . . . . . . . . 43
7.17 SD/MMC card interface (available in LPC2368 13 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 44
only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 14 Revision history . . . . . . . . . . . . . . . . . . . . . . . 45
7.17.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 15 Legal information . . . . . . . . . . . . . . . . . . . . . . 46
7.18 I2C-bus serial I/O controllers. . . . . . . . . . . . . . 22 15.1 Data sheet status . . . . . . . . . . . . . . . . . . . . . . 46
7.18.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 15.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
7.19 I2S-bus serial I/O controllers. . . . . . . . . . . . . . 23 15.3 Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 46
7.19.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 15.4 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 46
7.20 General purpose 32-bit timers/external event
16 Contact information . . . . . . . . . . . . . . . . . . . . 46
counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
continued >>
17 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.