EasyManua.ls Logo

Holtek BS82B12A-3 - I 2 C Registe�S

Holtek BS82B12A-3
168 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
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 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
Bit7~4 Unimplemented,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
comesfrom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"

Table of Contents

Related product manuals