| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT45F2020 bảng dữ liệu(PDF) 53 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2020 bảng dữ liệu(HTML) 53 Page - Holtek Semiconductor Inc |
|
53 / 85 page ![]() Rev. 1.00 52 April 11, 2017 Rev. 1.00 53 April 11, 2017 HT45F2020/HT45F2022 Sound Effect Generator Flash MCU HT45F2020/HT45F2022 Sound Effect Generator Flash MCU Timer/Counter Mode Toselectthismode,bitsPTM1andPTM0inthePTMC1registershouldbesetto11respectively. TheTimer/CounterModeoperatesinanidenticalwaytotheCompareMatchOutputMode generatingthesameinterruptflags.TheexceptionisthatintheTimer/CounterModethePTM outputpinisnotused.ThereforetheabovedescriptionandTimingDiagramsfortheCompare MatchOutputModecanbeusedtounderstanditsfunction.AsthePTMoutputpinisnotusedin thismode,thepincanbeusedasanormalI/Opinorotherpin-sharedfunction. PWM Output Mode Toselectthismode,bitsPTM1andPTM0inthePTMC1registershouldbesetto10respectively andalsothePTIO1andPTIO0bitsshouldbesetto10respectively.ThePWMfunctionwithin thePTMisusefulforapplicationswhichrequirefunctionssuchasmotorcontrol,heatingcontrol, illuminationcontrol,etc.Byprovidingasignaloffixedfrequencybutofvaryingdutycycleonthe PTMoutputpin,asquarewaveACwaveformcanbegeneratedwithvaryingequivalentDCRMS values. AsboththeperiodanddutycycleofthePWMwaveformcanbecontrolled,thechoiceofgenerated waveformisextremelyflexible.InthePWMmode,thePTCCLRbithasnoeffectasthePWM period.BothoftheCCRPandCCRAregistersareusedtogeneratethePWMwaveform,oneregister isusedtocleartheinternalcounterandthuscontrolthePWMwaveformfrequency,whiletheother oneisusedtocontrolthedutycycle.ThePWMwaveformfrequencyanddutycyclecantherefore becontrolledbythevaluesintheCCRAandCCRPregisters. Aninterruptflag,oneforeachoftheCCRAandCCRP,willbegeneratedwhenacomparematch occursfromeitherComparatorAorComparatorP.ThePTOCbitinthePTMC1registerisusedto selecttherequiredpolarityofthePWMwaveformwhilethetwoPTIO1andPTIO0bitsareusedto enablethePWMoutputortoforcethePTMoutputpintoafixedhighorlowlevel.ThePTPOLbit isusedtoreversethepolarityofthePWMoutputwaveform. • 10-bit PWM Output Mode, Edge-aligned Mode CCRP 1~1023 0 Period 1~1023 1024 Duty CCRA IffSYS=16MHz,TMclocksourceselectfSYS/4,CCRP=512andCCRA=128, ThePTMPWMoutputfrequency=(fSYS/4)/512=fSYS/2048=7.8125kHz,duty=128/512=25%, IftheDutyvaluedefinedbytheCCRAregisterisequaltoorgreaterthanthePeriodvalue,thenthe PWMoutputdutyis100%. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |