| Electronic Components Datasheet Search |
|
HT56R65 Datasheet(PDF) 91 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT56R65 Datasheet(HTML) 91 Page - Holtek Semiconductor Inc |
|
91 / 145 page ![]() Rev. 1.30 90 �a��� �� �013 Rev. 1.30 91 �a��� �� �013 HT56R62/HT56R65 HT56R642/HT56R644/HT56R654/HT56R656 TinyPowerTM A/D Type with LCD 8-Bit OTP MCU HT56R62/HT56R65 HT56R642/HT56R644/HT56R654/HT56R656 TinyPowerTM A/D Type with LCD 8-Bit OTP MCU I2C Bus Communication CommunicationontheI2Cbusrequiresfourseparatesteps,aSTARTsignal,aslavedeviceaddress transmission,adatatransmissionandfinallyaSTOPsignal.WhenaSTARTsignalisplacedon theI2Cbus,alldevicesonthebuswillreceivethissignalandbenotifiedoftheimminentarrival ofdataonthebus.Thefirstsevenbitsofthedatawillbetheslaveaddresswiththefirstbitbeing theMSB.Iftheaddressofthemicrocontrollermatchesthatofthetransmittedaddress,theHAAS bitintheSIMCTL1registerwillbesetandanI2Cinterruptwillbegenerated.Afterenteringthe interruptserviceroutine,themicrocontrollerslavedevicemustfirstchecktheconditionofthe HAASbittodeterminewhethertheinterruptsourceoriginatesfromanaddressmatchorfromthe completionofan8-bitdatatransfer.Duringadatatransfer,notethatafterthe7-bitslaveaddress hasbeentransmitted,thefollowingbit,whichisthe8thbit,istheread/writebitwhosevaluewillbe placedintheSRWbit.Thisbitwillbecheckedbythemicrocontrollertodeterminewhethertogo intotransmitorreceivemode.BeforeanytransferofdatatoorfromtheI2Cbus,themicrocontroller mustinitialisethebus,thefollowingarestepstoachievethis: • Step1 WritetheslaveaddressofthemicrocontrollertotheI2CbusaddressregisterSIMAR. • Step2 SettheSIMENbitintheSIMCTL0registerto″1″toenabletheI2Cbus. • Step3 SettheESIMbitoftheinterruptcontrolregistertoenabletheI2Cbusinterrupt. St ar t Wr it e Sl av e Ad dr es s to S IM AR SE T SI M[ 2: 0] =1 10 SE T SI ME N I 2 C Bu s In te rr up t= ? En abl e Di s abl e SET E SI M Wa it fo r In te rr up t Go to M ai n Pr ogr am CL R ES IM Po ll H IF t o de ci de wh en to g o to I 2 C Bu s IS R Go to M ai n Pr ogr am I2C Bus Initialisation Flow Chart |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |