![NXP Semiconductors LPC84x Скачать руководство пользователя страница 330](http://html.mh-extra.com/html/nxp-semiconductors/lpc84x/lpc84x_user-manual_1721742330.webp)
UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
330 of 515
NXP Semiconductors
UM11029
Chapter 19: LPC84x I2C0/1/2/3
19.3.1 I2C transmit/receive in master mode
In this example, the I2C is configured as the master. The master sends 8 bits to the slave
and then receives 8 bits from the slave. The system clock is set to 30 MHz and the bit rate
is approximately 400 kHz. You must enable the I2C0_SCL and I2C0_SDA functions on
pins PIO0_11 and PIO0_10 or assign the SCL and SDA functions for any of the other I2C
blocks to pins through the switch matrix. See
For a 400 kHz bit rate, the I2C0 pins can be configured in standard mode in the IOCON
block. See
Table 206 “PIO0_11 register (PIO0_11, address 0x4004 401C) bit description”
and
Table 207 “PIO0_10 register (PIO0_10, address 0x4004 4020) bit description”
Gray-shaded blocks show peripherals that can provide hardware triggers or fixed DMA requests for DMA transfers.
Fig 34. I2C clocking-need to draw
PDLQBFORFN
IUJFONVHOHFW
)5*&/.6(/>@['
IUR
V\VBSOOBFON
)5*
)5*',9['['
IUJFON
PDLQBFORFN
IUJFONVHOHFW
)5*&/.6(/>@[(
IUR
V\VBSOOBFON
)5*
)5*',9[([(
IUJFON
IUR
PDLQBFORFN
IUJFON
IUJFON
IURBGLY
IFON
,&
IUR
PDLQBFORFN
IUJFON
IUJFON
IURBGLY
IFON
)&/.6(/>@[$
)&/.6(/>@[%
V\VWHPBDKEBFONBL
FONBDQGBVDIH
V\VWHPBDKEBFONBHQDEOHL
V\VWHPBDKEBFONL
EDVHBFON
,&
EDVHBFON
IUJFON )5*LQSXWFORFN08/',9
IUJFON )5*LQSXWFORFN08/',9