| Electronic Components Datasheet Search |
|
HT66F25D Datasheet(PDF) 78 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F25D Datasheet(HTML) 78 Page - Holtek Semiconductor Inc |
|
78 / 177 page ![]() Rev. 1.00 78 ���� ��� �01� Rev. 1.00 79 ���� ��� �01� A/D Flash Type 8-bit MCU with EEPROM HT66F24D/HT66F25D IntheCompareMatchOutputMode,theT0IO1andT0IO0bitsdeterminehowthe TMoutputpinchangesstatewhenacomparematchoccursfromtheComparatorA. TheTMoutputpincanbesetuptoswitchhigh,switchlowortotoggleitspresent statewhenacomparematchoccursfromtheComparatorA.Whenthebitsareboth zero,thennochangewilltakeplaceontheoutput.TheinitialvalueoftheTMoutput pinshouldbesetupusingtheT0OCbitintheTM0C1register.Notethattheoutput levelrequestedbytheT0IO1andT0IO0bitsmustbedifferentfromtheinitialvalue setupusingtheT0OCbitotherwisenochangewilloccurontheTMoutputpinwhen acomparematchoccurs.AftertheTMoutputpinchangesstate,itcanberesettoits initiallevelbychangingtheleveloftheT0ONbitfromlowtohigh. InthePWMMode,theTnIO1andTnIO0bitsdeterminehowtheTMoutputpin changesstatewhenacertaincomparematchconditionoccurs.ThePWMoutput functionismodifiedbychangingthesetwobits.Itisnecessarytochangethevalues oftheTnIO1andTnIO0bitsonlyaftertheTMnhasbeenswitchedoff.Unpredictable PWMoutputswilloccuriftheTnIO1andTnIO0bitsarechangedwhentheTMis running Bit3 T0OC:TP0_0,TP0_1,TP0_2outputcontrolbit CompareMatchOutputMode 0:Initiallow 1:Initialhigh PWMMode 0:Activelow 1:Activehigh ThisistheoutputcontrolbitfortheTMoutputpin.Itsoperationdependsupon whetherTMisbeingusedintheCompareMatchOutputModeorinthePWMMode. IthasnoeffectiftheTMisintheTimer/CounterMode.IntheCompareMatchOutput ModeitdeterminesthelogicleveloftheTMoutputpinbeforeacomparematch occurs.InthePWMModeitdeterminesifthePWMsignalisactivehighoractive low. Bit2 T0POL:TP0_0,TP0_1,TP0_2outputPolaritycontrol 0:Non-invert 1:Invert ThisbitcontrolsthepolarityoftheTP0_0,TP0_1orTP0_2outputpin.Whenthebit issethightheTMoutputpinwillbeinvertedandnotinvertedwhenthebitiszero.It hasnoeffectiftheTMisintheTimer/CounterMode. Bit1 T0DPX:TM0PWMperiod/dutyControl 0:CCRP–period;CCRA–duty 1:CCRP–duty;CCRA–period Thisbit,determineswhichoftheCCRAandCCRPregistersareusedforperiodand dutycontrolofthePWMwaveform. Bit0 T0CCLR:SelectTM0Counterclearcondition 0:TM0ComparatorPmatch 1:TM0ComparatorAmatch Thisbitisusedtoselectthemethodwhichclearsthecounter.Rememberthatthe CompactTMcontainstwocomparators,ComparatorAandComparatorP,eitherof whichcanbeselectedtocleartheinternalcounter.WiththeT0CCLRbitsethigh, thecounterwillbeclearedwhenacomparematchoccursfromtheComparatorA. Whenthebitislow,thecounterwillbeclearedwhenacomparematchoccursfrom theComparatorPorwithacounteroverflow.Acounteroverflowclearingmethodcan onlybeimplementediftheCCRPbitsareallclearedtozero.TheT0CCLRbitisnot 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 |