DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
567 of 571
continued >>
NXP Semiconductors
UM10316
Chapter 32: LPC29xx Supplementary information
LIN master . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
LIN sync-break generation . . . . . . . . . . . . . . 363
Registers and mapping. . . . . . . . . . . . . . . . . 363
Error detection . . . . . . . . . . . . . . . . . . . . . . . 363
Line-clamped detection versus bit-error detection
364
Wake-up interrupt handling. . . . . . . . . . . . . . 364
LIN register overview . . . . . . . . . . . . . . . . . . 365
LIN master-controller mode register . . . . . . . 366
LIN master-controller configuration register . 366
LIN master-controller command register . . . 367
LIN master-controller status register . . . . . . 369
LIN master-controller interrupt enable register . .
373
LIN master-controller checksum register . . . 374
LIN master-controller time-out register . . . . 375
LIN master-controller message buffer registers . .
376
Step-by-step example for using the LIN master. .
379
Chapter 23: LPC2xx I2C-interface
How to read this chapter . . . . . . . . . . . . . . . . 381
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Pin description . . . . . . . . . . . . . . . . . . . . . . . . 382
2
C operating modes . . . . . . . . . . . . . . . . . . . 382
Master Transmitter mode . . . . . . . . . . . . . . . 383
Master Receiver mode . . . . . . . . . . . . . . . . . 384
Slave Receiver mode . . . . . . . . . . . . . . . . . . 384
Slave Transmitter mode . . . . . . . . . . . . . . . . 385
2
C implementation and operation . . . . . . . . 386
Input filters and output stages. . . . . . . . . . . . 386
Address Register I2ADDR . . . . . . . . . . . . . . 388
Comparator. . . . . . . . . . . . . . . . . . . . . . . . . . 388
Shift register I2DAT. . . . . . . . . . . . . . . . . . . . 388
Arbitration and synchronization logic . . . . . . 388
Serial clock generator . . . . . . . . . . . . . . . . . . 389
Timing and control . . . . . . . . . . . . . . . . . . . . 389
Control register I2CONSET and I2CONCLR 389
Status decoder and status register . . . . . . . . 390
Register description . . . . . . . . . . . . . . . . . . . 390
C Control Set Register (I2C[0/1]CONSET:
0xE008 2000, 0xE008 3000) . . . . . . . . . . . . 391
C Status Register (I2C[0/1]STAT - 0xE008 2004,
0xE008 3004) . . . . . . . . . . . . . . . . . . . . . . . . 393
C Data Register (I2C[0/1]DAT - 0xE008 2008,
0xE008 3008) . . . . . . . . . . . . . . . . . . . . . . . . 393
C Slave Address Register (I2C[0/1]ADR -
0xE008 200C, 0xE008 300C) . . . . . . . . . . . . 394
C SCL High Duty Cycle Register (I2C[0/1]SCLH
- 0xE008 2010, 0xE008 3010) . . . . . . . . . . . 394
C SCL Low Duty Cycle Register (I2C[0/1]SCLL -
0xE008 2014, 0xE008 3014) . . . . . . . . . . . . 394
C data rate and duty
cycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
2
C Control Clear Register (I2C[0/1]CONCLR:
0xE008 2018, 0xE008 3018) . . . . . . . . . . . . 395
2
C Monitor mode control register (I2MMCTRL:
I2C0, I2CMMCTRL0 - 0xE008 201C; I2C1,
I2C1MMCTRL- 0xE008 301C). . . . . . . . . . . 396
Interrupt in Monitor mode. . . . . . . . . . . . . . . 397
Loss of arbitration in Monitor mode . . . . . . . 397
2
C Data buffer register (I2DATA_BUFFER: I2C0,
I2CDATA_BUFFER - 0xE008 202C; I2C1,
I2C1DATA_BUFFER- 0xE008 302C). . . . . . 397
2
C Slave Address registers (I2ADR0 to 3: I2C0,
I2C0ADR[0, 1, 2, 3]- 0xE008 20[0C, 20, 24, 28];
I2C1, I2C1ADR[0, 1, 2, 3] - address
0xE008 30[0C, 20, 24, 28]) . . . . . . . . . . . . . 398
2
C Mask registers (I2MASK0 to 3: I2C0,
I2C0MASK[0, 1, 2, 3] - 0xE008 20[30, 34, 38, 3C];
I2C1, I2C1MASK[0, 1, 2, 3] - address
0xE008 30[30, 34, 38, 3C]) . . . . . . . . . . . . . 398
2
C operating modes . . . . . . . . . . 399
Master Transmitter mode . . . . . . . . . . . . . . . 399
Master Receiver mode. . . . . . . . . . . . . . . . . 400
Slave Receiver mode. . . . . . . . . . . . . . . . . . 400
Slave Transmitter mode . . . . . . . . . . . . . . . . 405
Miscellaneous states . . . . . . . . . . . . . . . . . . . 411
I2STAT = 0xF8 . . . . . . . . . . . . . . . . . . . . . . . . 411
I2STAT = 0x00 . . . . . . . . . . . . . . . . . . . . . . . . 411
Some special cases . . . . . . . . . . . . . . . . . . . 412
Data transfer after loss of arbitration . . . . . . 412
2
C bus. . . . . . . . . . . . 412