| поискавой системы для электроныых деталей |
|
HT82B42R датащи(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R датащи(HTML) 39 Page - Holtek Semiconductor Inc |
|
39 / 86 page ![]() Rev. 1.00 38 October 27, 2011 Rev. 1.00 39 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface USB Interrupt TheUSBinterruptsaretriggeredbythefollowingUSBeventscausingtherelatedinterruptrequest flag,USBF,tobeset. • AccessofthecorrespondingUSBFIFOfromPC • AUSBsuspendsignalfromthePC • AUSBresumesignalfromthePC • AUSBResetsignal Whentheinterruptisenabled,thestackisnotfullandtheUSBinterruptisactive,asubroutine calltolocation04Hwilloccur.Theinterruptrequestflag,USBF,andtheEMIbitwillbeclearedto disableotherinterrupts. WhenthePCHostaccessestheFIFOofthedevice,thecorrespondingrequestbit,USR,isset,and aUSBinterruptistriggered.SotheusercaneasydeterminewhichFIFOhasbeenaccessed.When theinterrupthasbeenserved,thecorrespondingbitshouldbeclearedbyfirmware.Whenthedevice receiveaUSBSuspendsignalfromHostPC,thesuspendline(bit0ofUSC)issetandaUSB interruptisalsotriggered. AlsowhendevicereceiveaResumesignalfromHostPC,theresumeline(bit3ofUSC)issetanda USBinterruptistriggered. Serial Interface Interrupt TheSerialInterfaceInterrupt,alsoknownastheSPIinterrupt.ASPIInterruptrequestwilltakeplace whentheSPIInterruptrequestflag,SIF,isset,whichoccurswhenabyteofdatahasbeenreceived ortransmittedbytheSPIinterface.Toallowtheprogramtobranchtoitsrespectiveinterruptvector address,theglobalinterruptenablebit,EMI,andtheSerialInterfaceInterruptenablebit,ESII,must firstbeset.Whentheinterruptisenabled,thestackisnotfullandabyteofdatahasbeentransmitted orreceivedbytheSPIinterface,asubroutinecalltotherespectiveInterruptvector,willtakeplace. WhentheSerialInterfaceInterruptisserviced,theEMIbitwillbeautomaticallyclearedtodisable otherinterrupts,andtheinterruptrequestflag,SIF,willbealsoautomaticallycleared. Reset and Initialisation Aresetfunctionisafundamentalpartofanymicrocontrollerensuringthatthedevicecanbeset tosomepredeterminedconditionirrespectiveofoutsideparameters.Themostimportantreset conditionisafterpowerisfirstappliedtothemicrocontroller.Inthiscase,internalcircuitrywill ensurethatthemicrocontroller,afterashortdelay,willbeinawelldefinedstateandreadyto executethefirstprograminstruction.Afterthispower-onreset,certainimportantinternalregisters willbesettodefinedstatesbeforetheprogramcommences.OneoftheseregistersistheProgram Counter,whichwillberesettozeroforcingthemicrocontrollertobeginprogramexecutionfromthe lowestProgramMemoryaddress. Inadditiontothepower-onreset,situationsmayarisewhereitisnecessarytoforcefullyapply aresetconditionwhenthemicrocontrollerisrunning.Oneexampleofthisiswhereafterpower hasbeenappliedandthemicrocontrollerisalreadyrunning,theRESlineisforcefullypulledlow. Insuchacase,knownasanormaloperationreset,someofthemicrocontrollerregistersremain unchangedallowingthemicrocontrollertoproceedwithnormaloperationaftertheresetlineis allowedtoreturnhigh.AnothertypeofresetiswhentheWatchdogTimeroverflowsandresetsthe microcontroller.Alltypesofresetoperationsresultindifferentregisterconditionsbeingsetup. AnotherresetexistsintheformofaLowVoltageReset,LVR,whereafullreset,similartotheRES resetisimplementedinsituationswherethepowersupplyvoltagefallsbelowacertainthreshold. |
|
ссылки 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 |