I2CTOC Register
Bit
7
6
5
4
3
2
1
0
Name
I2CTOEN
I2CTOF
I2CTOS5
I2CTOS4
I2CTOS3
I2CTOS2
I2CTOS1
I2CTOS0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7
I2CTOEN
: I
2
C Time-out Control
0: disable
1: enable
Bit 6
I2CTOF
: Time-out flag
0: no time-out
1: time-out occurred
Bit 5~0
I2CTOS5
~
I2CTOS0
: Time-Out Time Definition
I
2
C time-out clock source is f
LIRC
/32.
I
2
C Time-Out time is given by: [I2CTOS5 : I1) x (32/f
LIRC
)
The SIMD register is used to store the data being transmitted and received. The same register is used
by both the SPI and I
2
C functions. Before the device writes data to the I
2
C bus, the actual data to be
transmitted must be placed in the SIMD register. After the data is received from the I
2
C bus, the de-
vice can read it from the SIMD register. Any transmission or reception of data from the I
2
C bus must
be made via the SIMD register.
SIMD Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
x
x
x
x
x
x
x
x
²
x
²
unknown
SIMA Register
Bit
7
6
5
4
3
2
1
0
Name
IICA6
IICA5
IICA4
IICA3
IICA2
IICA1
IICA0
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
x
x
x
x
x
x
x
x
²
x
²
unknown
Bit 7~1
IICA6~ IICA0
: I
2
C slave address
IICA6~ IICA0 is the I
2
C slave address bit 6~bit 0.
The SIMA register is also used by the SPI interface but has the name SIMC2. The SIMA
register is the location where the 7-bit slave address of the slave device is stored. Bits 7~1 of the
SIMA register define the device slave address. Bit 0 is not defined.
When a master device, which is connected to the I
2
C bus, sends out an address, which
matches the slave address in the SIMA register, the slave device will be selected. Note that the
SIMA register is the same register address as SIMC2 which is used by the SPI interface.
Bit 0
Undefined bit
This bit can be read or written by user software program.
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit Touch Key Flash MCU
Rev. 1.50
91
April 28, 2020