| Electronic Components Datasheet Search |
|
HT45FM2C Datasheet(PDF) 68 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45FM2C Datasheet(HTML) 68 Page - Holtek Semiconductor Inc |
|
68 / 171 page ![]() Rev. 1.10 68 �a� �0� �01� Rev. 1.10 69 �a� �0� �01� HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU HT45FM2C Brushless DC Motor Flash Type 8-Bit MCU Preliminar� ThesetwobitsareusedtodeterminehowtheTMnoutputpinchangesstatewhena certainconditionisreached.Thefunctionthatthesebitsselectdependsuponinwhich modetheTMnisrunning. IntheCompareMatchOutputMode,theTnIO1andTnIO0bitsdeterminehowthe TMnoutputpinchangesstatewhenacomparematchoccursfromtheComparatorA. TheTMnoutputpincanbesetuptoswitchhigh,switchlowortotoggleitspresent statewhenacomparematchoccursfromtheComparatorA.Whenthebitsareboth zero,thennochangewilltakeplaceontheoutput.TheinitialvalueoftheTMnoutput pinshouldbesetupusingtheTnOCbitintheTMnC1register.Notethattheoutput levelrequestedbytheTnIO1andTnIO0bitsmustbedifferentfromtheinitialvalue setupusingtheTnOCbitotherwisenochangewilloccurontheTMnoutputpinwhen acomparematchoccurs.AftertheTMnoutputpinchangesstateitcanberesettoits initiallevelbychangingtheleveloftheTnONbitfromlowtohigh. InthePWMMode,theTnIO1andTnIO0bitsdeterminehowtheTMoutputpin changesstatewhenacertaincomparematchconditionoccurs.ThePWMoutput functionismodifiedbychangingthesetwobits.Itisnecessarytoonlychangethe valuesoftheTnIO1andTnIO0bitsonlyaftertheTMnhasbeenswitchedoff. UnpredictablePWMoutputswilloccuriftheTnIO1andTnIO0bitsarechangedwhen theTMisrunning. Bit 3 TnOC: TPn_0,TPn_1Outputcontrolbit CompareMatchOutputMode 0:Initiallow 1:Initialhigh PWMMode 0:Activelow 1:Activehigh ThisistheoutputcontrolbitfortheTMnoutputpin.Itsoperationdependsupon whetherTMnisbeingusedintheCompareMatchOutputModeorinthePWMMode. IthasnoeffectiftheTMnisintheTimer/CounterMode.IntheCompareMatch OutputModeitdeterminesthelogiclevelofheTMnoutputpinbeforeacompare matchoccurs.InthePWMModeitdeterminesifthePWMsignalisactivehighor activelow. Bit 2 TnPOL: TPn_0,TPn_1OutputpolarityControl 0:Non-invert 1:Invert ThisbitcontrolsthepolarityoftheTPn_0orTP0_1outputpin.Whenthebitisset hightheTMnoutputpinwillbeinvertedandnotinvertedwhenthebitiszero.Ithas noeffectiftheTMnisintheTimer/CounterMode. Bit 1 TnDPX: TMnPWMperiod/dutyControl 0:CCRP-period;CCRA-duty 1:CCRP-duty;CCRA-period Thisbit,determineswhichoftheCCRAandCCRPregistersareusedforperiodand dutycontrolofthePWMwaveform. Bit 0 TnCCLR: SelectTMnCounterclearcondition 0:TMnComparatorPmatch 1:TMnComparatorAmatch Thisbitisusedtoselectthemethodwhichclearsthecounter.Rememberthatthe CompactTMncontainstwocomparators,ComparatorAandComparatorP,eitherof whichcanbeselectedtocleartheinternalcounter.WiththeTnCCLRbitsethigh, thecounterwillbeclearedwhenacomparematchoccursfromtheComparatorA. Whenthebitislow,thecounterwillbeclearedwhenacomparematchoccursfrom theComparatorPorwithacounteroverflow.Acounteroverflowclearingmethodcan onlybeimplementediftheCCRPbitsareallclearedtozero.TheTnCCLRbitisnot usedinthePWMMode. |
|
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 |