Rev. 1.20
108
�an�a�� 2�� 201�
Rev. 1.20
109
�an�a�� 2�� 201�
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
S T A R T s i g n a l
f r o m M a s t e r
S e n d s l a v e a d d r e s s
a n d R / W b i t f r o m M a s t e r
A c k n o w l e d g e
f r o m s l a v e
S e n d d a t a b y t e
f r o m M a s t e r
A c k n o w l e d g e
f r o m s l a v e
S T O P s i g n a l
f r o m M a s t e r
I
2
C Registers
There are four control registers associated with the I
2
C bus, IICC0, IICC1, IICA and I2CTOC and
one data register, IICD. The IICD register is used to store the data being transmitted and received on
the I
2
C bus. Before the microcontroller writes data to the I
2
C bus, the actual data to be transmitted
must be placed in the IICD register. After the data is received from the I
2
C bus, the microcontroller
can read it from the IICD register. Any transmission or reception of data from the I
2
C bus must be
made via the IICD register.
Register
Name
Bit
7
6
5
4
3
2
1
0
IICC0
—
—
—
—
I2CDBNC1 I2CDBNC0
IICEN
—
IICC1
IICHCF IICHAAS IICHBB
IICHTX
IICTXAK
IICSRW IICAMWU IICRXAK
IICD
IICD7
IICD6
IICD�
IICD4
IICD�
IICD2
IICD1
IICD0
IICA
IICA6
IICA�
IICA4
IICA�
IICA2
IICA1
IICA0
—
I2CTOC I2CTOEN I2CTOF I2CTOS� I2CTOS4 I2CTOS�
I2CTOS2 I2CTOS1 I2CTOS0
I
2
C Registers List
IICC0 Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
—
—
I2CDBNC1 I2CDBNC0
IICEN
—
R/W
—
—
—
—
R/W
R/W
R/W
—
POR
—
—
—
—
0
0
0
—
Bit
7~4
U
nimplemented, read as "0
"
Bit 3~2
I2CDBNC1~I2CDBNC0
: I
2
C Debounce Time Selection
00: No debounce
01: 2 system clock debounce
10: 4 system clock debounce
11: 4 system clock debounce
If f
SYS
comes from f
H
and is ready, or IICAMWU=0, the debounce circuit is effect.
Otherwise, SCL and SDA will bypass the debounce circuit.
Bit
1
IICEN
: I
2
C Control
0: Disable
1: Enable
Bit 0
Unimplemented, read as "0"
Содержание BS82B12A-3
Страница 33: ...Rev 1 20 33 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 34: ...Rev 1 20 34 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 35: ...Rev 1 20 35 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...