EasyManua.ls Logo

Holtek BS82B12A-3 - I 2 C Interface; I 2 C Inte�Face Ope�Ation

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
I
2
C Interface
TheI
2
Cinterfaceisusedtocommunicatewithexternalperipheraldevicessuchassensors,
EEPROMmemoryetc.OriginallydevelopedbyPhilips,itisatwolinelowspeedserialinterface
forsynchronousserialdatatransfer.Theadvantageofonlytwolinesforcommunication,relatively
simplecommunicationprotocolandtheabilitytoaccommodatemultipledevicesonthesamebus
hasmadeitanextremelypopularinterfacetypeformanyapplications.









I
2
C Master/Slave Bus Connection
  
 

 

  

 
  
  
  
  
 
  
    
  


 
    
 
 
 
  

 



 
 
  
 

 

 

I
2
C Block Diagram
I
2
C Interface Operation
TheI
2
Cserialinterfaceisatwolineinterface,aserialdataline,SDA,andserialclockline,SCL.As
manydevicesmaybeconnectedtogetheronthesamebus,theiroutputsarebothopendraintypes.
Forthisreasonitisnecessarythatexternalpull-highresistorsareconnectedtotheseoutputs.Note
thatnochipselectlineexists,aseachdeviceontheI
2
Cbusisidentiedbyauniqueaddresswhich
willbetransmittedandreceivedontheI
2
Cbus.
WhentwodevicescommunicatewitheachotheronthebidirectionalI
2
Cbus,oneisknownasthe
masterdeviceandoneastheslavedevice.Bothmasterandslavecantransmitandreceivedata,
however,itisthemasterdevicethathasoverallcontrolofthebus.Forthesedevices,whichonly
operateinslavemode,therearetwomethodsoftransferringdataontheI
2
Cbus,theslavetransmit
modeandtheslavereceivemode.
ItissuggestedthattheusershallnotenterthemicroprocessortoHALTstatusbyapplication
programduringprocessingI
2
Ccommunication.
IfthepinisconguredtoSDAorSCLfunctionofI
2
Cinterface,thepinisconguredtoopen-collect
Input/OutputportanditsPull-highfunctioncanbeenabledbyprogrammingtherelatedGeneric
Pull-highControlRegister.

Table of Contents

Related product manuals