| Electronic Components Datasheet Search |
|
HT69F240 Datasheet(PDF) 122 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT69F240 Datasheet(HTML) 122 Page - Holtek Semiconductor Inc |
|
122 / 172 page ![]() Rev. 1.20 122 �a��� 2�� 201� Rev. 1.20 123 �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 I2C Bus Start Signal TheSTARTsignalcanonlybegeneratedbythemasterdeviceconnectedtotheI2Cbusandnotby theslavedevice.ThisSTARTsignalwillbedetectedbyalldevicesconnectedtotheI2Cbus.When detected,thisindicatesthattheI2CbusisbusyandthereforetheIICHBBbitwillbeset.ASTART conditionoccurswhenahightolowtransitionontheSDAlinetakesplacewhentheSCLline remainshigh. I2C Slave Address ThetransmissionofaSTARTsignalbythemasterwillbedetectedbyalldevicesontheI2Cbus. Todeterminewhichslavedevicethemasterwishestocommunicatewith,theaddressoftheslave devicewillbesentoutimmediatelyfollowingtheSTARTsignal.Allslavedevices,afterreceiving this7-bitaddressdata,willcompareitwiththeirown7-bitslaveaddress.Iftheaddresssentoutby themastermatchestheinternaladdressofthemicrocontrollerslavedevice,thenaninternalI2Cbus interruptsignalwillbegenerated.Thenextbitfollowingtheaddress,whichisthe8thbit,definesthe read/writestatusandwillbesavedtotheIICSRWbitoftheIICC1register.Theslavedevicewill thentransmitanacknowledgebit,whichisalowlevel,asthe9thbit.Theslavedevicewillalsoset thestatusflagIICHAASwhentheaddressesmatch. AsanI2Cbusinterruptcancomefromthreesources,whentheprogramenterstheinterrupt subroutine,theI2CTOFbitshouldfirstbecheckedtoseewhethertheI2Cinterfacetime-outevent occurs.IfthereisnoI2Ctime-outeventoccurs,thentheIICHAASbitshouldbeexaminedtosee whethertheinterruptsourcehascomefromamatchingslaveaddressorfromthecompletionofa databytetransfer.Whenaslaveaddressismatched,thedevicesmustbeplacedineitherthetransmit modeandthenwritedatatotheIICDregister,orinthereceivemodewhereitmustimplementa dummyreadfromtheIICDregistertoreleasetheSCLline. I2C Read/Write Signal TheIICSRWbitintheIICC1registerdefineswhethertheslavedevicewishestoreaddatafromthe I2CbusorwritedatatotheI2Cbus.Theslavedeviceshouldexaminethisbittodetermineifitis tobeatransmitterorareceiver.IftheIICSRWflagis"1"thenthisindicatesthatthemasterdevice wishestoreaddatafromtheI2Cbus,thereforetheslavedevicemustbesetuptosenddatatotheI2C busasatransmitter.IftheIICSRWflagis"0"thenthisindicatesthatthemasterwishestosenddata totheI2Cbus,thereforetheslavedevicemustbesetuptoreaddatafromtheI2Cbusasareceiver. I2C Slave Address Acknowledge Signal Afterthemasterhastransmittedacallingaddress,anyslavedeviceontheI2Cbus,whoseown internaladdressmatchesthecallingaddress,mustgenerateanacknowledgesignal.Theacknowledge signalwillinformthemasterthataslavedevicehasaccepteditscallingaddress.Ifnoacknowledge signalisreceivedbythemasterthenaSTOPsignalmustbetransmittedbythemastertoendthe communication.WhentheIICHAASflagishigh,theaddresseshavematchedandtheslavedevice mustchecktheIICSRWflagtodetermineifitistobeatransmitterorareceiver.IftheIICSRWflag ishigh,theslavedeviceshouldbesetuptobeatransmittersotheIICHTXbitintheIICC1register shouldbesetto"1".IftheIICSRWflagislow,thenthemicrocontrollerslavedeviceshouldbesetup asareceiverandtheIICHTXbitintheIICC1registershouldbesetto"0". |
|
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 |