| Electronic Components Datasheet Search |
|
HT45F0060 Datasheet(PDF) 49 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F0060 Datasheet(HTML) 49 Page - Holtek Semiconductor Inc |
|
49 / 95 page ![]() Rev. 1.00 48 July 19, 2017 Rev. 1.00 49 July 19, 2017 HT45F0060 RGB Dimming LED Flash MCU HT45F0060 RGB Dimming LED Flash MCU • CTMnAL Register Bit 7 6 5 4 3 2 1 0 Name D7 D6 D5 D4 D3 D2 D1 D0 R/W R/W R/W R/W R/W R/W R/W R/W R/W POR 0 0 0 0 0 0 0 0 Bit7~0 D7~D0:CTMnCCRALowByteRegisterbit7~bit0 CTMn10-bitCCRAbit7~bit0 • CTMnAH Register Bit 7 6 5 4 3 2 1 0 Name — — — — — — D9 D8 R/W — — — — — — R/W R/W POR — — — — — — 0 0 Bit7~2 Unimplemented,readas"0" Bit1~0 D9~D8:CTMnCCRAHighByteRegisterbit1~bit0 CTMn10-bitCCRAbit9~bit8 Compact Type TM Operating Modes TheCompactTypeTMcanoperateinoneofthreeoperatingmodes,CompareMatchOutputMode, PWMOutputModeorTimer/CounterMode.TheoperatingmodeisselectedusingtheCTnM1and CTnM0bitsintheCTMnC1register. Compare Match Output Mode Toselectthismode,bitsCTnM1andCTnM0intheCTMnC1register,shouldbesetto00 respectively.Inthismodeoncethecounterisenabledandrunningitcanbeclearedbythree methods.Theseareacounteroverflow,acomparematchfromComparatorAandacomparematch fromComparatorP.WhentheCTnCCLRbitislow,therearetwowaysinwhichthecountercan becleared.OneiswhenacomparematchoccursfromComparatorP,theotheriswhentheCCRP bitsareallzerowhichallowsthecountertooverflow.HerebothCTMnAFandCTMnPFinterrupt requestflagsfortheComparatorAandComparatorPrespectively,willbothbegenerated. IftheCTnCCLRbitintheCTMnC1registerishighthenthecounterwillbeclearedwhenacompare matchoccursfromComparatorA.However,hereonlytheCTMnAFinterruptrequestflagwillbe generatedevenifthevalueoftheCCRPbitsislessthanthatoftheCCRAregisters.Thereforewhen CTnCCLRishighnoCTMnPFinterruptrequestflagwillbegenerated.IftheCCRAbitsareall zero,thecounterwilloverflowwhenitreachesitsmaximum10-bit,3FFHex,value,howeverhere theCTMnAFinterruptrequestflagwillnotbegenerated. Asthenameofthemodesuggests,afteracomparisonismade,theCTMoutputpinwillchange state.TheCTMoutputpinconditionhoweveronlychangesstatewhenanCTMnAFinterrupt requestflagisgeneratedafteracomparematchoccursfromComparatorA.TheCTMnPFinterrupt requestflag,generatedfromacomparematchoccursfromComparatorP,willhavenoeffecton theCTMoutputpin.ThewayinwhichtheCTMoutputpinchangesstatearedeterminedbythe conditionoftheCTnIO1andCTnIO0bitsintheCTMnC1register.TheCTMoutputpincanbe selectedusingtheCTnIO1andCTnIO0bitstogohigh,togolowortotogglefromitspresent conditionwhenacomparematchoccursfromComparatorA.TheinitialconditionoftheCTM outputpin,whichissetupaftertheCTnONbitchangesfromlowtohigh,issetupusingtheCTnOC bit.NotethatiftheCTnIO1andCTnIO0bitsarezerothennopinchangewilltakeplace. |
|
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 |