| 数据搜索系统,热门电子元器件搜索 |
|
HT66F4530 数据表(PDF) 146 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F4530 数据表(HTML) 146 Page - Holtek Semiconductor Inc |
|
146 / 224 page ![]() Rev. 1.00 14� De�e��e� �1� �01� Rev. 1.00 147 De�e��e� �1� �01� HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers HT66F4530/HT66F4540/HT66F4550 A/D Flash MCU with Dual Operational Amplifiers I2C Bus Start Signal TheSTARTsignalcanonlybegeneratedbythemasterdeviceconnectedtotheI2Cbusandnotby theslavedevice.ThisSTARTsignalwillbedetectedbyalldevicesconnectedtotheI2Cbus.When detected,thisindicatesthattheI2CbusisbusyandthereforetheHBBbitwillbeset.ASTART conditionoccurswhenahightolowtransitionontheSDAlinetakesplacewhentheSCLline remainshigh. I2C Slave Address ThetransmissionofaSTARTsignalbythemasterwillbedetectedbyalldevicesontheI2Cbus. Todeterminewhichslavedevicethemasterwishestocommunicatewith,theaddressoftheslave devicewillbesentoutimmediatelyfollowingtheSTARTsignal.Allslavedevices,afterreceiving this7-bitaddressdata,willcompareitwiththeirown7-bitslaveaddress.Iftheaddresssentoutby themastermatchestheinternaladdressofthemicrocontrollerslavedevice,thenaninternalI2Cbus interruptsignalwillbegenerated.Thenextbitfollowingtheaddress,whichisthe8thbit,defines theread/writestatusandwillbesavedtotheSRWbitoftheSIMC1register.Theslavedevicewill thentransmitanacknowledgebit,whichisalowlevel,asthe9thbit.Theslavedevicewillalsoset thestatusflagHAASwhentheaddressesmatch. AsanI2Cbusinterruptcancomefromthreesources,whentheprogramenterstheinterrupt subroutine,theHAASandSIMTOFbitsshouldbeexaminedtoseewhethertheinterruptsource hascomefromamatchingslaveaddressorfromthecompletionofadatabytetransferortheI2C bustime-outoccurrence.Whenaslaveaddressismatched,thesedevicesmustbeplacedineither thetransmitmodeandthenwritedatatotheSIMDregister,orinthereceivemodewhereitmust implementadummyreadfromtheSIMDregistertoreleasetheSCLline. I2C Bus Read/Write Signal TheSRWbitintheSIMC1registerdefineswhetherthemasterdevicewishestoreaddatafromthe I2CbusorwritedatatotheI2Cbus.Theslavedeviceshouldexaminethisbittodetermineifitisto beatransmitterorareceiver.IftheSRWflagis"1"thenthisindicatesthatthemasterdevicewishes toreaddatafromtheI2Cbus,thereforetheslavedevicemustbesetuptosenddatatotheI2Cbusas atransmitter.IftheSRWflagis"0"thenthisindicatesthatthemasterwishestosenddatatotheI2C bus,thereforetheslavedevicemustbesetuptoreaddatafromtheI2Cbusasareceiver. I2C Bus Slave Address Acknowledge Signal Afterthemasterhastransmittedacallingaddress,anyslavedeviceontheI2Cbus,whose owninternaladdressmatchesthecallingaddress,mustgenerateanacknowledgesignal.The acknowledgesignalwillinformthemasterthataslavedevicehasaccepteditscallingaddress.Ifno acknowledgesignalisreceivedbythemasterthenaSTOPsignalmustbetransmittedbythemaster toendthecommunication.WhentheHAASflagishigh,theaddresseshavematchedandtheslave devicemustchecktheSRWflagtodetermineifitistobeatransmitterorareceiver.IftheSRWflag ishigh,theslavedeviceshouldbesetuptobeatransmittersotheHTXbitintheSIMC1register shouldbesetto"1".IftheSRWflagislow,thenthemicrocontrollerslavedeviceshouldbesetupas areceiverandtheHTXbitintheSIMC1registershouldbesetto"0". |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |