Rev. 1.00
82
March 24, 2020
Rev. 1.00
83
March 24, 2020
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
• IICD 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
Bit 7~0
D7~D0
: I
2
C data register bit 7 ~ bit 0
I
2
C Address Register
The IICA register is the location where the 7-bit slave address of the slave device is stored. Bits
7~1 of the IICA 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 IICA
register, the slave device will be selected.
• IICA Register
Bit
7
6
5
4
3
2
1
0
Name
IICA6
IICA5
IICA4
IICA3
IICA2
IICA1
IICA0
—
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
—
POR
0
0
0
0
0
0
0
—
Bit 7~1
IICA6~IICA0
: I
2
C slave address
IICA6~IICA0 is the I
2
C slave address bit 6~bit 0.
Bit 0
Unimplemented, read as “0”
I
2
C Control Registers
There are three control registers for the I
2
C interface, IICC0, IICC1 and IICTOC. The IICC0 register
is used to control the enable/disable function and to set the data transmission clock frequency.
The IICC1 register contains the relevant flags which are used to indicate the I
2
C communication
status. Another register, IICTOC, is used to control the I
2
C time-out function and is described in the
corresponding section.
• IICC0 Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
IICDEB1 IICDEB0
IICEN
—
R/W
—
—
—
—
R/W
R/W
R/W
—
POR
—
—
—
—
0
0
0
—
Bit 7~4
Unimplemented, read as “0”
Bit 3~2
IICDEB1~IICDEB0
: I
2
C Debounce Time Selection
00: No debounce
01: 2 system clock debounce
10/11: 4 system clock debounce
Note that the I
2
C debounce circuit will operate normally if the system clock, f
SYS
, is
derived from the f
H
clock or the IAMWU bit is equal to 0. Otherwise, the debounce
circuit will have no effect and be bypassed.
Bit 1
IICEN
: I
2
C Enable Control
0: Disable
1: Enable
The bit is the overall on/off control for the I
2
C interface. When the IICEN bit is cleared
to zero to disable the I
2
C interface, the SDA and SCL lines will lose their I
2
C function
and the I
2
C operating current will be reduced to a minimum value. When the bit is high
the I
2
C interface is enabled. If the IICEN bit changes from low to high, the contents of