Rev. 1.20 108 January 23, 2015 Rev. 1.20 109 January 23, 2015
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
START signal
from M aste r
Send s la ve addre ss
and R/W bit from M aste r
A cknow le dge
from s la ve
S end data byte
from M aste r
A cknow l edge
from s la ve
STOP s ig nal
from M aste r
I
2
C Registers
TherearefourcontrolregistersassociatedwiththeI
2
Cbus,IICC0,IICC1,IICA andI2CTOCand
onedataregister,IICD.TheIICDregisterisusedtostorethedatabeingtransmittedandreceivedon
theI
2
Cbus.BeforethemicrocontrollerwritesdatatotheI
2
Cbus,theactualdatatobetransmitted
mustbeplacedintheIICDregister.AfterthedataisreceivedfromtheI
2
Cbus,themicrocontroller
canreaditfromtheIICDregister.AnytransmissionorreceptionofdatafromtheI
2
Cbusmustbe
madeviatheIICDregister.
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 IIC
D5 IICD4 IICD3 IICD2 IICD1 IICD0
IICA IICA6 IICA
5 IICA4 IICA3 IICA2 IICA1 IICA0 —
I2CTOC I2CTOEN I2CTOF
I2CTOS5 I2CTOS4 I2CTOS3 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 —
Bit7~4 Unimplemented,readas"0"
Bit3~2 I2CDBNC1~I2CDBNC0:I
2
CDebounceTimeSelection
00:Nodebounce
01:2systemclockdebounce
10:4systemclockdebounce
11:4systemclockdebounce
Iff
SYS
comesfromf
H
andisready,orIICAMWU=0,thedebouncecircuitiseffect.
Otherwise,SCLandSDAwillbypassthedebouncecircuit.
Bit1 IICEN:I
2
CControl
0:Disable
1:Enable
Bit0 Unimplemented,readas"0"