Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual
Page 784
![background image](/manuals/190592/784/background.png)
UM10237_4
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 04 — 26 August 2009
784 of 792
NXP Semiconductors
UM10237
Chapter 36: LPC24XX Supplementary information
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 441
Basic configuration . . . . . . . . . . . . . . . . . . . . 443
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 444
Register description . . . . . . . . . . . . . . . . . . . 444
UART1 Receiver Buffer Register (U1RBR -
0xE001 0000, when DLAB = 0 Read Only) . 447
UART1 Transmitter Holding Register (U1THR -
0xE001 0000 when DLAB = 0, Write Only) . 447
UART1 Interrupt Enable Register (U1IER -
0xE001 0004, when DLAB = 0) . . . . . . . . . . 448
UART1 FIFO Control Register (U1FCR -
0xE001 0008, Write Only). . . . . . . . . . . . . . . 452
UART1 Line Control Register (U1LCR -
0xE001 000C). . . . . . . . . . . . . . . . . . . . . . . . 452
Auto-flow control . . . . . . . . . . . . . . . . . . . . . . 454
Auto-RTS . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
Auto-CTS . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
UART1 Line Status Register (U1LSR -
0xE001 0014, Read Only) . . . . . . . . . . . . . . 456
UART1 Modem Status Register (U1MSR -
0xE001 0018). . . . . . . . . . . . . . . . . . . . . . . . 457
UART1 Scratch Pad Register (U1SCR -
0xE001 001C) . . . . . . . . . . . . . . . . . . . . . . . 458
Auto-baud . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Auto-baud modes. . . . . . . . . . . . . . . . . . . . . 460
Baudrate calculation . . . . . . . . . . . . . . . . . . 462
Example 1: PCLK = 14.7456 MHz,
BR = 9600 . . . . . . . . . . . . . . . . . . . . . . . . . . 464
Example 2: PCLK = 12 MHz, BR = 115200 . 464
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 465
Chapter 18: LPC24XX CAN controllers CAN1/2
How to read this chapter . . . . . . . . . . . . . . . . 467
Basic configuration . . . . . . . . . . . . . . . . . . . . 467
CAN controllers . . . . . . . . . . . . . . . . . . . . . . . 467
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468
General CAN features . . . . . . . . . . . . . . . . . 468
CAN controller features . . . . . . . . . . . . . . . . 468
Acceptance filter features . . . . . . . . . . . . . . . 468
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 468
CAN controller architecture . . . . . . . . . . . . . 469
APB Interface Block (AIB) . . . . . . . . . . . . . . 469
Interface Management Logic (IML). . . . . . . . 469
Transmit Buffers (TXB) . . . . . . . . . . . . . . . . . 470
Receive Buffer (RXB) . . . . . . . . . . . . . . . . . 470
Error Management Logic (EML) . . . . . . . . . 471
Bit Timing Logic (BTL) . . . . . . . . . . . . . . . . . 471
Bit Stream Processor (BSP) . . . . . . . . . . . . . 471
CAN controller self-tests . . . . . . . . . . . . . . . . 471
Global self test . . . . . . . . . . . . . . . . . . . . . . . .472
Local self test . . . . . . . . . . . . . . . . . . . . . . . . .472
Memory map of the CAN block. . . . . . . . . . . 473
Register description . . . . . . . . . . . . . . . . . . . 473
Mode Register (CAN1MOD - 0xE004 4000,
CAN2MOD - 0xE004 8000) . . . . . . . . . . . . . 475
Command Register (CAN1CMR - 0xE004 x004,
CAN2CMR - 0xE004 8004) . . . . . . . . . . . . . 476
Global Status Register (CAN1GSR -
0xE004 x008, CAN2GSR - 0xE004 8008) . . 478
RX error counter . . . . . . . . . . . . . . . . . . . . . . .479
TX error counter. . . . . . . . . . . . . . . . . . . . . . . 480
Interrupt and Capture Register (CAN1ICR -
0xE004 400C, CAN2ICR - 0xE004 800C) . . 480
Interrupt Enable Register (CAN1IER -
0xE004 4010, CAN2IER - 0xE004 8010). . . 484
Bus Timing Register (CAN1BTR - 0xE004 4014,
CAN2BTR - 0xE004 8014). . . . . . . . . . . . . . 485
Baud rate prescaler . . . . . . . . . . . . . . . . . . . . 486
Synchronization jump width . . . . . . . . . . . . . . 486
Time segment 1 and time segment 2. . . . . . . 486
Error Warning Limit Register (CAN1EWL -
0xE004 4018, CAN2EWL - 0xE004 8018). . 487
Status Register (CAN1SR - 0xE004 401C,
CAN2SR - 0xE004 801C) . . . . . . . . . . . . . . 487
Receive Frame Status Register (CAN1RFS -
0xE004 4020, CAN2RFS - 0xE004 8020) . . 489
ID index field . . . . . . . . . . . . . . . . . . . . . . . . 490
Receive Identifier Register (CAN1RID -
0xE004 4024, CAN2RID - 0xE004 8024) . . 490
Receive Data Register A (CAN1RDA -
0xE004 4028, CAN2RDA - 0xE004 8028) . . 490
Receive Data Register B (CAN1RDB -
0xE004 402C, CAN2RDB - 0xE004 802C) . 491
Transmit Frame Information Register
(CAN1TFI[1/2/3] - 0xE004 40[30/ 40/50],
CAN2TFI[1/2/3] - 0xE004 80[30/40/50]) . . . 491
Automatic transmit priority detection . . . . . . . 492
Tx DLC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492