
CMT2380F17
Rev0.1 | 258/347
www.cmostek.com
21 Two Wire serial Interface (TWI0/ I2C0)
The Two-Wire serial Interface is a two-wire, bi-directional serial bus. It is ideally suited for typical
microcontroller applications.
The TWI/ I2C protocol allows the systems designer to interconnect up to 128 different devices using only
two bi-directional bus lines, one for clock (TWI0_SCL) and one for data (TWI0_SDA). The TWI bus provides
control of TWI0_SDA (serial data), TWI0_SCL (serial clock) generation and synchronization, arbitration logic,
and START/STOP control and generation. The only external hardware needed to implement this bus is a
single pull-up resistor for each of the TWI bus lines. All devices connected to the bus have individual
addresses, and mechanisms for resolving bus contention are inherent in the TWI/ I2C protocol.
Device 0
Device 1
Device 2
Device n
TWI0_SDA
TWI0_SCL
VDD
………
Figure 21-1. TWI/ I2C Bus Interconnection
The TWI/ I2C bus may operate as a master and/or slave, and may function on a bus with multiple
masters. The CPU interfaces to the TWI/ I2C through the following four special function registers: SICON
configures the TWI/ I2C bus; SISTA reports the status code of the TWI/ I2C bus; and SIDAT is the data
register, used for both transmitting and receiving TWI/ I2C data. SIADR is the slave address register. And, the
TWI/ I2C hardware interfaces to the serial bus via two lines: SDA (serial data line) and SCL (serial clock line).
Figure 21-2. TWI/ I2C Block Diagram
21.1
Operating Modes
There are four operating modes for the TWI/ I2C:
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...