поискавой системы для электроныых деталей |
|
HT46R002 датащи(PDF) 40 Page - Holtek Semiconductor Inc |
|
HT46R002 датащи(HTML) 40 Page - Holtek Semiconductor Inc |
40 / 83 page Rev. 1.21 40 April 11, 2017 Rev. 1.21 41 April 11, 2017 HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU HT46R002/HT46R003 Cost-Effective A/D 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. Toselectwhichofthethreemodesthetimeristooperatein,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. |
Аналогичный номер детали - HT46R002 |
|
Аналогичное описание - HT46R002 |
|
|
ссылки URL |
Конфиденциальность |
ALLDATASHEETRU.COM |
Вашему бизинису помогли Аллдатащит? [ 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 |