| Electronic Components Datasheet Search |
|
HT82B42R Datasheet(PDF) 30 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R Datasheet(HTML) 30 Page - Holtek Semiconductor Inc |
|
30 / 86 page ![]() Rev. 1.00 30 October 27, 2011 Rev. 1.00 31 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface Forthe16-bitTimer/EventCounterwhichhasbothlowbyteandhighbytetimerregisters,accessing theseregistersiscarriedoutinaspecificway.Itmustbenotewhenusinginstructionstopreload dataintothelowbytetimerregister,namelyTMR1L,thedatawillonlybeplacedinalowbyte bufferandnotdirectlyintothelowbytetimerregister.Theactualtransferofthedataintothelow bytetimerregisterisonlycarriedoutwhenawritetoitsassociatedhighbytetimerregister,namely TMR1H,isexecuted.Ontheotherhand,usinginstructionstopreloaddataintothehighbytetimer registerwillresultinthedatabeingdirectlywrittentothehighbytetimerregister.Atthesametime thedatainthelowbytebufferwillbetransferredintoitsassociatedlowbytetimerregister.Forthis reason,thelowbytetimerregistershouldbewrittenfirstwhenpreloadingdataintothe16-bittimer registers.Itmustalsobenotedthattoreadthecontentsofthelowbytetimerregister,areadtothe highbytetimerregistermustbeexecutedfirsttolatchthecontentsofthelowbytetimerregister intoitsassociatedlowbytebuffer.Afterthishasbeendone,thelowbytetimerregistercanberead inthenormalway.Notethatreadingthelowbytetimerregisterwillresultinreadingthepreviously latchedcontentsofthelowbytebufferandnottheactualcontentsofthelowbytetimerregister. Timer Control Register – TMR0C/TMR1C TheflexiblefeaturesoftheHoltekmicrocontrollerTimer/EventCountersenablethemtooperate inthreedifferentmodes,theoptionsofwhicharedeterminedbythecontentsoftheirrespective controlregister.FordevicesaretwotimercontrolregistersknownasTMR0C,TMR1C.Itisthe timercontrolregistertogetherwithitscorrespondingtimerregistersthatcontrolthefulloperation oftheTimer/EventCounters.Beforethetimerscanbeused,itisessentialthattheappropriatetimer controlregisterisfullyprogrammedwiththerightdatatoensureitscorrectoperation,aprocessthat isnormallycarriedoutduringprograminitialization. Tochoosewhichofthethreemodesthetimeristooperatein,eitherinthetimermode,theevent countingmodeorthepulsewidthmeasurementmode,bits7and6oftheTimerControlRegister, whichareknownasthebitpairT0M1/T0M0orT1M1/T1M0respectively,dependinguponwhich timerisused,mustbesettotherequiredlogiclevels.Thetimer-onbit,whichisbit4oftheTimer ControlRegisterandknownasT0ONorT1ON,dependinguponwhichtimerisused,providesthe basicon/offcontroloftherespectivetimer.Settingthebithighallowsthecountertorun,clearing thebitstopsthecounter.Ifthetimerisintheeventcountorpulsewidthmeasurementmode,the activetransitionedgeleveltypeisselectedbythelogiclevelofbit3oftheTimerControlRegister whichisknownasT0EorT1E,dependinguponwhichtimerisused. |
|
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 |