
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
IIC-Bus Module
User’s Manual
20-5
V2.2, 2004-01
IIC_X, V2.0
20.2
Register Description
In the following, the registers of the IIC-Bus Module are described in detail.
IIC_CON
Control Register
XSFR (E602
H
/--)
Reset Value: 0000
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
-
-
-
-
CI
STP IGE TRX INT
ACK
DIS
BUM
MOD
RSC M10
-
-
-
-
rw
rwh
rw
rwh
rw
rwh
rwh
rw
rwh
rw
Field
Bits
Type
Description
CI
[11:10] rw
Transmit Buffer Length Control
00
1 byte (RTB0)
01
2 bytes (RTB1 … RTB0)
10
3 bytes (RTB2 … RTB0)
11
4 bytes (RTB3 … RTB0)
STP
9
rwh
Master Stop Control
0
No action
1
Setting bit STP generates a stop condition
after the next transmission. Bit BUM is cleared.
Note: STP is automatically cleared by a stop
condition.
IGE
8
rw
Ignore End-of-Transmission (IRQE) Interrupt
0
The IIC is stopped at IRQE interrupt
1
The IIC ignores the IRQE interrupt
TRX
7
rwh
Transmit Select
0
No data is transmitted to the IIC bus
1
Data is transmitted to the IIC bus
Note: TRX is set automatically when writing to the
transmit buffer. TRX is automatically cleared
after the last byte as a slave transmitter.
INT
6
rw
Interrupt Flag Clear Control
0
Interrupt flag IRQD is cleared
by a read/write access to RTB0 … 3
1
Interrupt flag IRQD is not cleared
by a read/write access to RTB0 … 3