| поискавой системы для электроныых деталей |
|
HT69F360 датащи(PDF) 158 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT69F360 датащи(HTML) 158 Page - Holtek Semiconductor Inc |
|
158 / 235 page ![]() Rev. 1.30 15� �ove��e� 1�� �01� Rev. 1.30 159 �ove��e� 1�� �01� HT69F340/HT69F350/HT69F360 TinyPowerTM I/O Flash MCU with LCD & EEPROM HT69F340/HT69F350/HT69F360 TinyPowerTM I/O Flash MCU with LCD & EEPROM I2C Bus Communication CommunicationontheI2Cbusrequiresfourseparatesteps,aSTARTsignal,aslavedeviceaddress transmission,adatatransmissionandfinallyaSTOPsignal.WhenaSTARTsignalisplacedon theI2Cbus,alldevicesonthebuswillreceivethissignalandbenotifiedoftheimminentarrivalof dataonthebus.Thefirstsevenbitsofthedatawillbetheslaveaddresswiththefirstbitbeingthe MSB.Iftheaddressoftheslavedevicematchesthatofthetransmittedaddress,theHAASbitinthe SIMC1registerwillbesetandanI2Cinterruptwillbegenerated.Afterenteringtheinterruptservice routine,theslavedevicemustfirstchecktheconditionoftheHAASbittodeterminewhetherthe interruptsourceoriginatesfromanaddressmatchorfromthecompletionofan8-bitdatatransfer. Duringadatatransfer,notethatafterthe7-bitslaveaddresshasbeentransmitted,thefollowingbit, whichisthe8thbit,istheread/writebitwhosevaluewillbeplacedintheSRWbit.Thisbitwillbe checkedbytheslavedevicetodeterminewhethertogointotransmitorreceivemode.Beforeany transferofdatatoorfromtheI2Cbus,themicrocontrollermustinitializethebus,thefollowingare stepstoachievethis: • Step1 SettheSIM2~SIM0andSIMENbitsintheSIMC0registerto“110”and“1”toenabletheI2Cbus. • Step2 WritetheslaveaddressofthedevicetotheI2CbusaddressregisterSIMA. • Step3 SettheSIMEbitoftheinterruptcontrolregistertoenabletheSIMinterrupt. St ar t Wr it e Sl av e Ad dr es s to S IM A SE T SI M[ 2: 0] =1 10 SE T SI ME N I 2 C Bu s In te rr upt =? Ye s No SE T SI ME Wa it fo r In te rr up t Go to M ai n Pr ogr am CL R SI ME Po ll S IM F to d ec id e 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 |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |