| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT82B42R bảng dữ liệu(PDF) 30 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R bảng dữ liệu(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 |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |