| поискавой системы для электроныых деталей |
|
HT48R002 датащи(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT48R002 датащи(HTML) 39 Page - Holtek Semiconductor Inc |
|
39 / 71 page ![]() Rev. 1.11 38 April 11, 2017 Rev. 1.11 39 April 11, 2017 HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU Timer Register – TMR0 ThetimerregisterisspecialfunctionregisterlocatedintheSpecialPurposeDataMemoryandisthe placewheretheactualtimervalueisstored.TheregisterisknownasTMR0.Thevalueinthetimer registerincreasesbyoneeachtimeaninternalclockpulseisreceivedoranexternaltransitionoccurs ontheexternaltimerpin.Thetimerwillcountfromtheinitialvalueloadedbythepreloadregisterto thefullcountofFFHatwhichpointthetimeroverflowsandaninternalinterruptsignalisgenerated. Thetimervaluewillthenresetwiththeinitialpreloadregistervalueandcontinuecounting. NotethattoachieveamaximumfullrangecountofFFH,thepreloadregistermustfirstbecleared. Itshouldbenotedthatafterpower-on,thepreloadregisterwillbeinanunknowncondition.Note thatiftheTimer/EventCounterisinanOFFconditionanddataiswrittentoitspreloadregister, thisdatawillbeimmediatelywrittenintotheactualcounter.However,ifthecounterisenabledand counting,anynewdatawrittenintothepreloaddataregisterduringthisperiodwillremaininthe preloadregisterandwillonlybewrittenintotheactualcounterthenexttimeanoverflowoccurs. Timer Control Register – TMR0C TheflexiblefeaturesoftheHoltekmicrocontrollerTimer/EventCounterenableittooperateinthree differentmodes,theoptionsofwhicharedeterminedbythecontentsoftheirrespectivecontrol register. TheTimerControlRegisterisknownasTMR0C.ItistheTimerControlRegistertogetherwith itscorrespondingtimerregisterthatcontrolsthefulloperationoftheTimer/EventCounter.Before thetimercanbeused,itisessentialthattheTimerControlRegisterisfullyprogrammedwiththe rightdatatoensureitscorrectoperation,aprocessthatisnormallycarriedoutduringprogram initialization. Tochoosewhichofthethreemodesthetimeristooperatein,eitherinthetimermode,theevent countingmodeorthepulsewidthcapturemode,bits7and6oftheTimerControlRegister,which areknownasthebitpairT0M1/T0M0,mustbesettotherequiredlogiclevels.Thetimer-onbit, whichisbit4oftheTimerControlRegisterandknownasT0ON,providesthebasicon/offcontrol oftherespectivetimer.Settingthebittohighallowsthecountertorun.Clearingthebitstopsthe counter.Bits0~2oftheTimerControlRegisterdeterminethedivisionratiooftheinputclock prescaler.Theprescalerbitsettingshavenoeffectifanexternalclocksourceisused.Ifthetimeris intheeventcountorpulsewidthcapturemode,theactivetransitionedgeleveltypeisselectedby thelogiclevelofbit3oftheTimerControlRegisterwhichisknownasT0EG. |
|
ссылки 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 |