| Electronic Components Datasheet Search |
|
HT45FM2C Datasheet(PDF) 71 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45FM2C Datasheet(HTML) 71 Page - Holtek Semiconductor Inc |
|
71 / 171 page ![]() Rev. 1.10 70 �a� �0� �01� Rev. 1.10 71 �a� �0� �01� HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU Preliminar� Bit 0 T5CCLR: SelectTM5Counterclearcondition 0:TM5ComparatorPmatch 1:TM5ComparatorAmatch Thisbitisusedtoselectthemethodwhichclearsthecounter.Rememberthatthe CompactTM5containstwocomparators,ComparatorAandComparatorP,eitherof whichcanbeselectedtocleartheinternalcounter.WiththeT5CCLRbitsethigh, thecounterwillbeclearedwhenacomparematchoccursfromtheComparatorA. Whenthebitislow,thecounterwillbeclearedwhenacomparematchoccursfrom theComparatorPorwithacounteroverflow.Acounteroverflowclearingmethodcan onlybeimplementediftheCCRPbitsareallclearedtozero.TheT5CCLRbitisnot usedinthePWMMode. TM5RP Register – 16-bit CTM Bit 7 6 5 4 3 2 1 0 Name D7 D6 D5 D4 D� D� D1 D0 R/W R/W R/W R/W R/W R/W R/W R/W R/W POR 0 0 0 0 0 0 0 0 Bit7~0 TM5CCRP8-bitregister,comparedwiththeTM5Counterbit15~bit8ComparatorP MatchPeriod 0:1024TMnclocks 1~255: 256×(1~255)TM5clocks ThesethreebitsareusedtosetupthevalueontheinternalCCRP8-bitregister,which arethencomparedwiththeinternalcounter’shighesteightbits.Theresultofthis comparisoncanbeselectedtocleartheinternalcounteriftheT5CCLRbitissetto zero.SettingtheT5CCLRbittozeroensuresthatacomparematchwiththeCCRP valueswillresettheinternalcounter.AstheCCRPbitsareonlycomparedwiththe highesteightcounterbits,thecomparevaluesexistin256clockcyclemultiples. Clearingallthreebitstozeroisineffectallowingthecountertooverflowatits maximumvalue. Compact Type TM Operating Modes TheCompactTypeTMcanoperateinoneofthreeoperatingmodes,CompareMatchOutputMode, PWMModeorTimer/CounterMode.TheoperatingmodeisselectedusingtheTnM1andTnM0 bitsintheTMnC1register. Compare Match Output Mode Toselectthismode,bitsTnM1andTnM0intheTMnC1register,shouldbesetto“00”respectively. Inthismodeoncethecounterisenabledandrunningitcanbeclearedbythreemethods.Theseare acounteroverflow,acomparematchfromComparatorAandacomparematchfromComparatorP. WhentheTnCCLRbitislow,therearetwowaysinwhichthecountercanbecleared.Oneiswhen acomparematchoccursfromComparatorP,theotheriswhentheCCRPbitsareallzerowhich allowsthecountertooverflow.HerebothTnAFandTnPFinterruptrequestflagsfortheComparator AandComparatorPrespectively,willbothbegenerated. IftheTnCCLRbitintheTMnC1registerishighthenthecounterwillbeclearedwhenacompare matchoccursfromComparatorA.However,hereonlytheTnAFinterruptrequestflagwillbe generatedevenifthevalueoftheCCRPbitsislessthanthatoftheCCRAregisters.Thereforewhen TnCCLRishighnoTnPFinterruptrequestflagwillbegenerated.IftheCCRAbitsareallzero,the counterwilloverflowwhenitsreachesitsmaximum10-bit,3FFHex,or16-bit,FFFFHex,value, howeverheretheTnAFinterruptrequestflagwillnotbegenerated. Asthenameofthemodesuggests,afteracomparisonismade,theTMoutputpinwillchange state.TheTMoutputpinconditionhoweveronlychangesstatewhenaTnAFinterruptrequestflag |
|
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 |