| 전자부품 데이터시트 검색엔진 |
|
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 |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |