Electronic Components Datasheet Search |
|
HT45R2K-C Datasheet(PDF) 46 Page - Holtek Semiconductor Inc |
|
HT45R2K-C Datasheet(HTML) 46 Page - Holtek Semiconductor Inc |
46 / 105 page Rev. 1.40 46 �a��� 1�� �01� Rev. 1.40 47 �a��� 1�� �01� HT45R2K-C/-B/-A Dual Slope 16K/8K/4K ASSP MCU for Body Fat Scale HT45R2K-C/-B/-A Dual Slope 16K/8K/4K ASSP MCU for Body Fat Scale TheTimer/EventCounter1preloadregisterischangedwheneachtimethereisawriteoperation toTMR1H.ReadingTMR1HwilllatchthecontentsofTMR1HandTMR1Lcounterstothe destinationandthelower-orderbytebuffer,respectively.ReadingTMR1Lwillreadthecontentsof thelower-orderbytebuffer.TMR1CistheTimer/EventCounter1controlregister,whichdefinesthe operatingmode,countingenableordisable,theTMR1activeedgeandtheprescalerstageselections. AlsotherearethreeregistersrelatedtotheTimer/EventCounter2namedTMR2H,TMR2Land TMR2C.TheoperationsofreadingfromandwritingtotheTimer/EventCounter2registersnamed TMR2HandTMR2LarethesamewithTimer/EventCounter1describedabove. TheTxM0andTxM1bitsinTMRxCregisterwherexmaybeequalto0,1or2definetheoperation mode.Theeventcountmodeisusedtocountexternalevents,whichmeansthattheclocksource mustcomefromtheexternal(TMR0,TMR1orTMR2)pin.Thetimermodefunctionsasanormal timerwiththeclocksourcecomingfromtheinternalselectedclocksource. Finally,thepulsewidthmeasurementmodecanbeusedtocountahighorlowleveldurationofan externalsignalontheTMR0,TMR1orTMR2pinswiththetimingbasedontheinternallyselected clocksource.Intheeventcountortimermode,theTimer/EventCounterstartscountingatthe currentcontentsintheTimer/EventCounterandendsatFFHfor-8-bitcounterorFFFFHfor16- bitcounter.Onceanoverflowoccurs,thecounterisreloadedfromthetimer/eventcounterpreload register,andgeneratesaninterruptrequestflag,T0F,T1ForT2F.Inthepulsewidthmeasurement modewiththevaluesoftheTimerenablecontrolbitTxONandtheactiveedgecontrolbitTxE equalto“1”,aftertheTMRxpinhasreceivedatransientfromlowtohigh(orhightolowiftheTxE bitis“0”),itwillstartcountinguntiltheTMRxpinreturnstotheoriginallevelandresetstheTxON bit.Themeasuredresultremainsinthetimer/eventcountereveniftheactivatedtransientoccurs again.Therefore,onlya1-cyclemeasurementcanbemadeuntiltheTxONbitisagainset.Thecycle measurementwillre-functionaslongasitreceivesfurthertransientpulses.Inthisoperationmode, thetimer/eventcounterbeginscountingnotaccordingtothelogiclevelbuttothetransientedges. Inthecaseofcounteroverflows,thecounterisreloadedfromthetimer/eventcounterregisterand issuesaninterruptrequest,asintheothertwomodes,i.e.,eventandtimermodes. Re l oad Ov er fl ow to In te rr up t T0 M1 T0 M0 TM R0 T0 E M ode C ont ro l 8- bi t T im er /E v ent C ount er Pr el oad Re gi s te r 8- Bi t Ti me r/ Ev ent C ount er (T MR 0) Da ta B us T0 PS C2 ~T 0P SC 0 1/ 2 BZ 0 8- st age P re sca le r 8- 1 MU X f IN T0 M U X f SYS T0 S f T0 M U X LF S LI RC ( 12k Hz ) LX T ( 32. 768k Hz ) f L T0 OM Timer/Event Count 0 TM R1 T1 E Da ta B us Re l oad Ov er fl ow to I nt er ru pt Low B yt e Bu ffe r Hi gh By te Low B yt e 16- Bi t Ti me r/ Ev ent C ount er 16- bi t Ti me r/ Ev en t C ount er Pr el oad Re gi st er 1/ 2 BZ 1 f IN T1 8- st age P re sca le r 8- 1 MU X T1 PS C2 ~T 1P SC 0 M U X f SYS /4 T1 S f T1 M U X LF S LI RC( 12k Hz ) LX T ( 32. 768k Hz ) f L T1 M1 T1 M0 M ode C ont ro l T1 OM Timer/Event Count 1 |
Similar Part No. - HT45R2K-C_15 |
|
Similar Description - HT45R2K-C_15 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | 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 |