| Electronic Components Datasheet Search |
|
HT45F0060 Datasheet(PDF) 52 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F0060 Datasheet(HTML) 52 Page - Holtek Semiconductor Inc |
|
52 / 95 page ![]() Rev. 1.00 52 July 19, 2017 Rev. 1.00 53 July 19, 2017 HT45F0060 RGB Dimming LED Flash MCU HT45F0060 RGB Dimming LED Flash MCU Timer/Counter Mode Toselectthismode,bitsCTnM1andCTnM0intheCTMnC1registershouldbesetto11 respectively.TheTimer/CounterModeoperatesinanidenticalwaytotheCompareMatchOutput Modegeneratingthesameinterruptflags.TheexceptionisthatintheTimer/CounterModethe CTMoutputpinisnotused.ThereforetheabovedescriptionandTimingDiagramsfortheCompare MatchOutputModecanbeusedtounderstanditsfunction. PWM Output Mode Toselectthismode,bitsCTnM1andCTnM0intheCTMnC1registershouldbesetto10 respectively.ThePWMfunctionwithintheCTMisusefulforapplicationswhichrequirefunctions suchasmotorcontrol,heatingcontrol,illuminationcontroletc.Byprovidingasignaloffixed frequencybutofvaryingdutycycleontheCTMoutputpin,asquarewaveACwaveformcanbe generatedwithvaryingequivalentDCRMSvalues. AsboththeperiodanddutycycleofthePWMwaveformcanbecontrolled,thechoiceofgenerated waveformisextremelyflexible.InthePWMOutputMode,theCTnCCLRbithasnoeffectonthe PWMoperation.BothoftheCCRAandCCRPregistersareusedtogeneratethePWMwaveform, oneregisterisusedtocleartheinternalcounterandthuscontrolthePWMwaveformfrequency, whiletheotheroneisusedtocontrolthedutycycle.Whichregisterisusedtocontroleither frequencyordutycycleisdeterminedusingtheCTnDPXbitintheCTMnC1register.ThePWM waveformfrequencyanddutycyclecanthereforebecontrolledbythevaluesintheCCRAand CCRPregisters. Aninterruptflag,oneforeachoftheCCRAandCCRP,willbegeneratedwhenacomparematch occursfromeitherComparatorAorComparatorP.TheCTnOCbitintheCTMnC1registerisused toselecttherequiredpolarityofthePWMwaveformwhilethetwoCTnIO1andCTnIO0bitsare usedtoenablethePWMoutputortoforcetheCTMoutputpintoafixedhighorlowlevel.The CTnPOLbitisusedtoreversethepolarityofthePWMoutputwaveform. CTM, PWM Output Mode, Edge-aligned Mode, CTnDPX=0 CCRP 001b 010b 011b 100b 101b 110b 111b 000b Period 128 256 384 512 640 768 896 1024 Duty CCRA IffSYS=8MHz,CTMclocksourceisfSYS/4,CCRP=100b,CCRA=128, TheCTMPWMoutputfrequency=(fSYS/4)/512=fSYS/2048=3.9063kHz,duty=128/512=25%. IftheDutyvaluedefinedbytheCCRAregisterisequaltoorgreaterthanthePeriodvalue,thenthe PWMoutputdutyis100%. CTM, PWM Output Mode, Edge-aligned Mode, CTnDPX=1 CCRP 001b 010b 011b 100b 101b 110b 111b 000b Period CCRA Duty 128 256 384 512 640 768 896 1024 ThePWMoutputperiodisdeterminedbytheCCRAregistervaluetogetherwiththeCTMclock whilethePWMdutycycleisdefinedbytheCCRPregistervalue. |
|
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 |