| Electronic Components Datasheet Search |
|
HT69F240 Datasheet(PDF) 121 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT69F240 Datasheet(HTML) 121 Page - Holtek Semiconductor Inc |
|
121 / 172 page ![]() Rev. 1.20 120 �a��� 2�� 201� Rev. 1.20 121 �a��� 2�� 201� HT69F240 I/O 8-Bit Flash MCU with LED/LCD Driver HT69F240 I/O 8-Bit Flash MCU with LED/LCD Driver I2CTOC Register Bit 7 6 5 4 3 2 1 0 Name I2CTOEN I2CTOF I2CTOS� I2CTOS4 I2CTOS3 I2CTOS2 I2CTOS1 I2CTOS0 R/W R/W R/W R/W R/W R/W R/W R/W R/W POR 0 0 0 0 0 0 0 0 Bit7 I2CTOEN:I2CinterfaceTime-outcontrol 0:Disable 1:Enable Bit6 I2CTOF:I2CinterfaceTime-outflag 0:Notime-outoccurred 1:Time-outoccurred TheI2CTOFflagissetbythetime-outcircuitrywhenthetime-outeventoccursand clearedbysoftwareprogram. Bit5~0 I2CDBNC1~I2CDBNC0:I2CinterfaceTime-outperiodselection I2CinterfaceTime-outperiod= SUB f x CTOS I 32 ) 1 ] 0 : 5 [ 2 ( + TheI2CTime-outcircuitryisdrivenbythe(fSUB/32)clockandthetinme-outperiodis calculatedusingtheaboveformula. I2C Bus Communication CommunicationontheI2Cbusrequiresfourseparatesteps,aSTARTsignal,aslavedeviceaddress transmission,adatatransmissionandfinallyaSTOPsignal.WhenaSTARTsignalisplacedonthe I2Cbus,alldevicesonthebuswillreceivethissignalandbenotifiedoftheimminentarrivalofdata onthebus.ThefirstsevenbitsofthedatawillbetheslaveaddresswiththefirstbitbeingtheMSB. Iftheaddressoftheslavedevicematchesthatofthetransmittedaddress,theIICHAASbitinthe IICC1registerwillbesetandanI2Cinterruptwillbegenerated.Afterenteringtheinterruptservice routine,theslavedevicemustfirstchecktheconditionoftheIICHAASbittodeterminewhetherthe interruptsourceoriginatesfromanaddressmatchorfromthecompletionofan8-bitdatatransfer. Duringadatatransfer,notethatafterthe7-bitslaveaddresshasbeentransmitted,thefollowingbit, whichisthe8thbit,istheread/writebitwhosevaluewillbeplacedintheIICSRWbit.Thisbitwill becheckedbytheslavedevicetodeterminewhethertogointotransmitorreceivemode.Beforeany transferofdatatoorfromtheI2Cbus,themicrocontrollermustinitialisethebus.Thefollowingare stepstoachievethis: • Step1 ConfigurethecorrespondingI/OpinsastheI2Cinterfacepins,SDAandSCL,usingthepin- sharedcontrolbitsandsettheIICENbithightoenabletheI2Cinterfacefunction. • Step2 WritetheslaveaddressofthedevicetotheI2CbusaddressregisterIICA. • Step3 SetthecorrespondingI2CinterruptenablebitintheinterruptcontrolregistertoenabletheI2C interrupt. |
|
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 |