| поискавой системы для электроныых деталей |
|
HT45F2020 датащи(PDF) 48 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2020 датащи(HTML) 48 Page - Holtek Semiconductor Inc |
|
48 / 85 page ![]() Rev. 1.00 48 April 11, 2017 Rev. 1.00 49 April 11, 2017 HT45F2020/HT45F2022 Sound Effect Generator Flash MCU HT45F2020/HT45F2022 Sound Effect Generator Flash MCU IntheCompareMatchOutputMode,thePTIO1andPTIO0bitsdeterminehowthe PTMoutputpinchangesstatewhenacomparematchoccursfromtheComparatorA. ThePTMoutputpincanbesetuptoswitchhigh,switchlowortotoggleitspresent statewhenacomparematchoccursfromtheComparatorA.Whenthebitsareboth zero,thennochangewilltakeplaceontheoutput.TheinitialvalueofthePTMoutput pinshouldbesetupusingthePTOCbitinthePTMC1register.Notethattheoutput levelrequestedbythePTIO1andPTIO0bitsmustbedifferentfromtheinitialvalue setupusingthePTOCbitotherwisenochangewilloccuronthePTMoutputpinwhen acomparematchoccurs.AfterthePTMoutputpinchangesstate,itcanberesettoits initiallevelbychangingthelevelofthePTONbitfromlowtohigh. InthePWMMode,thePTIO1andPTIO0bitsdeterminehowtheTMoutputpin changesstatewhenacertaincomparematchconditionoccurs.ThePTMoutputfunction ismodifiedbychangingthesetwobits.Itisnecessarytoonlychangethevaluesofthe PTIO1andPTIO0bitsonlyafterthePTMhasbeenswitchedoff.UnpredictablePWM outputswilloccurifthePTIO1andPTIO0bitsarechangedwhenthePTMisrunning. Bit3 PTOC:PTMPTPOutputcontrol CompareMatchOutputMode 0:Initiallow 1:Initialhigh PWMOutputMode/SinglePulseOutputMode 0:Activelow 1:Activehigh ThisistheoutputcontrolbitforthePTMoutputpin.Itsoperationdependsupon whetherPTMisbeingusedintheCompareMatchOutputModeorinthePWM Mode/SinglePulseOutputMode.IthasnoeffectifthePTMisintheTimer/Counter Mode.IntheCompareMatchOutputModeitdeterminesthelogiclevelofthePTM outputpinbeforeacomparematchoccurs.InthePWMMode/SinglePulseOutput ModeitdeterminesifthePWMsignalisactivehighoractivelow. Bit2 PTPOL:PTMPTPOutputpolaritycontrol 0:Non-inverted 1:Inverted ThisbitcontrolsthepolarityofthePTPoutputpin.WhenthebitissethighthePTM outputpinwillbeinvertedandnotinvertedwhenthebitiszero.Ithasnoeffectifthe PTMisintheTimer/CounterMode. Bit1 PTCAPTS:PTMCaptureTriigerSourceselection 0:FromPTPIpin 1:FromPTCKpin Bit0 PTCCLR:PTMCounterClearconditionselection 0:ComparatorPmatch 1:ComparatorAmatch Thisbitisusedtoselectthemethodwhichclearsthecounter.Rememberthatthe PeriodicTMcontainstwocomparators,ComparatorAandComparatorP,eitherof whichcanbeselectedtocleartheinternalcounter.WiththePTCCLRbitsethigh, thecounterwillbeclearedwhenacomparematchoccursfromtheComparatorA. Whenthebitislow,thecounterwillbeclearedwhenacomparematchoccursfrom theComparatorPorwithacounteroverflow.Acounteroverflowclearingmethodcan onlybeimplementediftheCCRPbitsareallclearedtozero.ThePTCCLRbitisnot usedinthePWMOutput,SinglePulseOutputorCaptureInputMode. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |