| Electronic Components Datasheet Search |
|
HT45F12 Datasheet(PDF) 57 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F12 Datasheet(HTML) 57 Page - Holtek Semiconductor Inc |
|
57 / 104 page ![]() Rev. 0.00 5� �e�te��e� ��� �01� Rev. 0.00 57 �e�te��e� ��� �01� HT45F12 8-Bit Flash MCU with Op Amps & Comparators HT45F12 8-Bit Flash MCU with Op Amps & Comparators Timer Control Register – TMRC TheflexiblefeaturesoftheHoltekmicrocontrollerTimer/EventCounterenablesittooperateinfour differentmodes,theoptionsofwhicharedeterminedbythecontentsofitscontrolregister. ItistheTimerControlRegistertogetherwithitscorrespondingtimerregistercontrolsthefull operationoftheTimer/EventCounter.Beforethetimercanbeused,itisessentialthatthe appropriateTimerControlRegisterisfullyprogrammedwiththerightdatatoensureitscorrect operation,aprocessthatisnormallycarriedoutduringprograminitialisation Tochoosewhichofthefourmodesthetimeristooperatein,eitherinthetimermode,theexternal eventcountingmode,theinternaleventcountermode,orthepulsewidthmeasurementmode,bits 7and6oftheTimerControlRegister,whichisknownasthebitpairTM1/TM0,mustbesetto therequiredlogiclevels.Thetimer-onbit,whichisbit4oftheTimerControlRegisterandknown asTON,providesthebasicon/offcontrolofthetimer.Settingthebithighallowsthecounter torun,clearingthebitstopsthecounter.Forthetimerthathasprescaler,bits0~2oftheTimer ControlRegisterdeterminethedivisionratiooftheinputclockprescaler.Theprescalerbitsettings havenoeffectifanexternalclocksourceisused.Ifthetimerisintheeventcountorpulsewidth measurementmode,theactivetransitionedgeleveltypeisselectedbythelogiclevelofbit3ofthe TimerControlRegisterwhichisknownasTE. TMRC Register Bit 7 6 5 4 3 2 1 0 Na�e TM1 TM0 — TON TE TP�C� TP�C1 TP�C0 R/W R/W R/W — R/W R/W R/W R/W R/W POR 0 0 — 0 1 0 0 0 Bit7~6 TM1, TM0:Timeroperationmodeselection 00:Eventcountermode,theinputsignalisfromComparator1output 01:Eventcountermode,theinputsignalisfromTMRpin 10:Timermode 11:Pulsewidthcapturemode Bit5 Unimplemented,readas“0” Bit4 TON:Timer/eventcountercountingenable 0:Disable 1:Enable Bit3 TE:Eventcounteractiveedgeselection 1:Countonfallingedge 0:Countonrisingedge PulseWidthCaptureactiveedgeselection 1:Startcountingonrisingedge,stoponfallingedge 0:Startcountingonfallingedge,stoponrisingedge Bit2~0 TPSC2, TPSC1, TPSC0:Timerprescalerrateselection Timerinternalclock 000:fSYS 001:fSYS/2 010:fSYS/4 011:fSYS/8 100:fSYS/16 101:fSYS/32 110:fSYS/64 111:fSYS/128 |
|
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 |