![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 1439](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_17218271439.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
1439 of 1441
NXP Semiconductors
UM10503
Chapter 54: Supplementary information
Chapter 46: LPC43xx/LPC43Sxx I2C-bus interface
How to read this chapter . . . . . . . . . . . . . . . 1279
Basic configuration . . . . . . . . . . . . . . . . . . . 1279
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1279
Applications . . . . . . . . . . . . . . . . . . . . . . . . . 1280
General description . . . . . . . . . . . . . . . . . . . 1280
C Fast-mode Plus . . . . . . . . . . . . . . . . . . 1281
Pin description . . . . . . . . . . . . . . . . . . . . . . . 1281
Register description . . . . . . . . . . . . . . . . . . 1281
C Control Set register. . . . . . . . . . . . . . . . 1284
C Status register. . . . . . . . . . . . . . . . . . . . 1286
C Data register . . . . . . . . . . . . . . . . . . . . 1286
C Slave Address register 0 . . . . . . . . . . . 1286
C SCL HIGH and LOW duty cycle
registers . . . . . . . . . . . . . . . . . . . . . . . . . . . 1287
46.7.5.1 Selecting the appropriate I
2
C data rate and duty
cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1287
C Control Clear register . . . . . . . . . . . . . 1288
C Monitor mode control register. . . . . . . . 1288
46.7.7.1 Interrupt in Monitor mode . . . . . . . . . . . . . . 1289
46.7.7.2 Loss of arbitration in Monitor mode . . . . . . 1290
46.7.8 I
C Slave Address registers 1 to 3 . . . . . . . 1290
C Data buffer register . . . . . . . . . . . . . . . . 1291
C Mask registers . . . . . . . . . . . . . . . . . . . 1291
2
C operating modes . . . . . . . . . . . . . . . . . . 1292
Master Transmitter mode . . . . . . . . . . . . . . 1292
Master Receiver mode . . . . . . . . . . . . . . . . 1293
Slave Receiver mode . . . . . . . . . . . . . . . . . 1294
Slave Transmitter mode . . . . . . . . . . . . . . . 1295
2
C implementation and operation . . . . . . . 1295
Input filters and output stages. . . . . . . . . . . 1296
Address Registers, ADR0 to ADR3 . . . . . . 1297
registers, MASK0 to MASK3 1297
Comparator. . . . . . . . . . . . . . . . . . . . . . . . . 1297
Shift register, DAT. . . . . . . . . . . . . . . . . . . . 1297
Arbitration and synchronization logic . . . . . 1297
Serial clock generator . . . . . . . . . . . . . . . . . 1298
Timing and control . . . . . . . . . . . . . . . . . . . 1299
Control register, CONSET and CONCLR . . 1299
Status decoder and status register . . . . . . . 1299
C operating modes. . . . . . . . . . 1299
Master Transmitter mode . . . . . . . . . . . . . . 1300
Master Receiver mode . . . . . . . . . . . . . . . . 1304
Slave Receiver mode . . . . . . . . . . . . . . . . . 1307
Slave Transmitter mode . . . . . . . . . . . . . . . 1311
Miscellaneous states . . . . . . . . . . . . . . . . . 1313
46.10.5.1 STAT = 0xF8 . . . . . . . . . . . . . . . . . . . . . . . . 1313
46.10.5.2 STAT = 0x00 . . . . . . . . . . . . . . . . . . . . . . . . 1313
46.10.6
Some special cases . . . . . . . . . . . . . . . . . . 1314
46.10.6.1 Simultaneous Repeated START conditions from
two masters . . . . . . . . . . . . . . . . . . . . . . . . 1314
46.10.6.2 Data transfer after loss of arbitration . . . . . 1315
46.10.6.3 Forced access to the I
2
C-bus. . . . . . . . . . . 1315
2
C-bus obstructed by a LOW level on SCL or SDA
1316
46.10.6.5 Bus error . . . . . . . . . . . . . . . . . . . . . . . . . . 1316
46.10.7 I
2
C state service routines . . . . . . . . . . . . . . 1316
Initialization . . . . . . . . . . . . . . . . . . . . . . . . 1317
2
C interrupt service . . . . . . . . . . . . . . . . . . 1317
Software example . . . . . . . . . . . . . . . . . . . . 1317
Initialization routine . . . . . . . . . . . . . . . . . . 1317
Start Master Transmit function . . . . . . . . . . 1317
Start Master Receive function . . . . . . . . . . 1318
2
C interrupt routine . . . . . . . . . . . . . . . . . . 1318
Non mode specific states . . . . . . . . . . . . . . 1318
46.11.5.1 State: 0x00 . . . . . . . . . . . . . . . . . . . . . . . . . 1318
46.11.5.2 Master States . . . . . . . . . . . . . . . . . . . . . . . 1318
46.11.5.3 State: 0x08 . . . . . . . . . . . . . . . . . . . . . . . . . 1318
46.11.5.4 State: 0x10 . . . . . . . . . . . . . . . . . . . . . . . . . 1319
46.11.6
Master Transmitter states . . . . . . . . . . . . . 1319
46.11.6.1 State: 0x18 . . . . . . . . . . . . . . . . . . . . . . . . . 1319
46.11.6.2 State: 0x20 . . . . . . . . . . . . . . . . . . . . . . . . . 1319
46.11.6.3 State: 0x28 . . . . . . . . . . . . . . . . . . . . . . . . . 1319
46.11.6.4 State: 0x30 . . . . . . . . . . . . . . . . . . . . . . . . . 1320
46.11.6.5 State: 0x38 . . . . . . . . . . . . . . . . . . . . . . . . . 1320
46.11.7
Master Receive states . . . . . . . . . . . . . . . . 1320
46.11.7.1 State: 0x40 . . . . . . . . . . . . . . . . . . . . . . . . . 1320
46.11.7.2 State: 0x48 . . . . . . . . . . . . . . . . . . . . . . . . . 1320
46.11.7.3 State: 0x50 . . . . . . . . . . . . . . . . . . . . . . . . . 1320
46.11.7.4 State: 0x58 . . . . . . . . . . . . . . . . . . . . . . . . . 1321
46.11.8
Slave Receiver states . . . . . . . . . . . . . . . . 1321
46.11.8.1 State: 0x60 . . . . . . . . . . . . . . . . . . . . . . . . . 1321
46.11.8.2 State: 0x68 . . . . . . . . . . . . . . . . . . . . . . . . . 1321
46.11.8.3 State: 0x70 . . . . . . . . . . . . . . . . . . . . . . . . . 1321
46.11.8.4 State: 0x78 . . . . . . . . . . . . . . . . . . . . . . . . . 1322
46.11.8.5 State: 0x80 . . . . . . . . . . . . . . . . . . . . . . . . . 1322
46.11.8.6 State: 0x88 . . . . . . . . . . . . . . . . . . . . . . . . . 1322
46.11.8.7 State: 0x90 . . . . . . . . . . . . . . . . . . . . . . . . . 1322
46.11.8.8 State: 0x98 . . . . . . . . . . . . . . . . . . . . . . . . . 1323
46.11.8.9 State: 0xA0. . . . . . . . . . . . . . . . . . . . . . . . . 1323
46.11.9
Slave Transmitter states . . . . . . . . . . . . . . 1323
46.11.9.1 State: 0xA8. . . . . . . . . . . . . . . . . . . . . . . . . 1323
46.11.9.2 State: 0xB0. . . . . . . . . . . . . . . . . . . . . . . . . 1323
46.11.9.3 State: 0xB8. . . . . . . . . . . . . . . . . . . . . . . . . 1323
46.11.9.4 State: 0xC0 . . . . . . . . . . . . . . . . . . . . . . . . 1324
46.11.9.5 State: 0xC8 . . . . . . . . . . . . . . . . . . . . . . . . 1324
Chapter 47: LPC43xx/LPC43Sxx 10-bit ADC0/1
How to read this chapter . . . . . . . . . . . . . . . 1325
Basic configuration . . . . . . . . . . . . . . . . . . . 1326
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1327
description . . . . . . . . . . . . . . . . . . 1327
Pin description . . . . . . . . . . . . . . . . . . . . . . 1327
Register description . . . . . . . . . . . . . . . . . . 1328