EasyManua.ls Logo

Holtek BS82B12A-3 - I 2 C Time-O�T Cont�Ol

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 116 January 23, 2015 Rev. 1.20 117 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
I
2
C Time-out Control
InordertoreducetheproblemofI
2
Clockupduetoreceptionoferroneousclocksources,atime-out
functionisprovided.IftheclocksourcetotheI
2
Cisnotreceivedforawhile,thentheI
2
Ccircuitry
andregisterswillberesetafteracertaintime-outperiod.Thetime-outcounterstartscountingonan
I
2
Cbus"START"&"addressmatch"condition,andisclearedbyanSCLfallingedge.Beforethe
nextSCLfallingedgearrives,ifthetimeelapsedisgreaterthanthetime-outsetupbytheI2CTOC
register,thenatime-outconditionwilloccur.Thetime-outfunctionwillstopwhenanI
2
C"STOP"
conditionoccurs.
I C time- out
c ounte r start
I C time- out c ounte r re set
on SCL negativ e transitio n
101 001 00
1
0
01010
1
1
SCL
Start
SDA
IICSRW
ACK
Stop
SCL
SDA
Slave Address
2
2
I
2
C Time-out
WhenanI
2
Ctime-outcounteroverowoccurs,thecounterwillstopandtheI2CTOENbitwillbe
clearedtozeroandtheI2CTOFbitwillbesethightoindicatethatatime-outconditionasoccurred.
Thetime-outconditionwillalsogenerateaninterruptwhichusestheI
2
Cinterrruptvector.When
anI
2
Ctime-outoccurs,theI
2
Cinternalcircuitrywillberesetandtheregisterswillberesetintothe
followingcondition:
Register After I
2
C Time-out
IICD, IICA, IICC0 No change
IICC1 Reset to POR condition
I
2
C Registers After Time-out
TheI2CTOFagcanbeclearedbytheapplicationprogram.Thereare64time-outperiodswhich
canbeselectedusingbitsintheI2CTOCregister.Thetime-outtimeisgivenbytheformula:
((1~64)×32)/f
SUB
Thisgivesarangeofabout1msto64ms.

Table of Contents

Related product manuals