| Electronic Components Datasheet Search |
|
HT45F4MA Datasheet(PDF) 62 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4MA Datasheet(HTML) 62 Page - Holtek Semiconductor Inc |
|
62 / 145 page ![]() Rev. 1.20 �2 De�e��e� 1�� 201� Rev. 1.20 �3 De�e��e� 1�� 201� HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank Flash MCU HT45F4MA/HT45FH4MA/HT45FH4MA-1 Power Bank Flash MCU Programming Considerations TheTMCounterRegisters,theCapture/CompareCCRAregistersandtheTM1CCRPregisters, beingeither16-bitor10-bit,allhavealowandhighbytestructure.Thehighbytescanbedirectly accessed,butasthelowbytescanonlybeaccessedviaaninternal8-bitbuffer,readingorwriting totheseregisterpairsmustbecarriedoutinaspecificway.Theimportantpointtonoteisthat datatransfertoandfromthe8-bitbufferanditsrelatedlowbyteonlytakesplacewhenawrite orreadoperationtoitscorrespondinghighbyteisexecuted.AstheCCRAandCCRPregisters areimplementedinthewayshowninthefollowingdiagramandaccessingtheseregisterpairsis carriedoutinaspecificwaydescribedabove,itisrecommendedtousethe“MOV”instructionto accesstheCCRAorCCRPlowbyteregisters,namedTMxALorTMxRPL,usingthefollowing accessprocedures.AccessingtheCCRAorCCRPlowbyteregisterwithoutfollowingtheseaccess procedureswillresultinunpredictablevalues. TM C ount er R eg is te r (R ead on ly ) TM xD L TM xD H TM xA L TM xA H 8- bi t Bu ff er TM C CR A Re gi st er ( R ead/ W ri te ) Da ta Bu s TM xR PL TM xR PH TM C CR P Re gi st er ( R ead/ W ri te ) Thefollowingstepsshowthereadandwriteprocedures: • WritingDatatoCCRAorCCRP ♦ Step1.WritedatatoLowByteTMxALorTMxRPL –notethatheredataisonlywrittentothe8-bitbuffer. ♦ Step2.WritedatatoHighByteTMxAHorTMxRPH –heredataiswrittendirectlytothehighbyteregistersandsimultaneouslydataislatchedfrom the8-bitbuffertotheLowByteregisters. • ReadingDatafromtheCounterRegistersandCCRAorCCRP ♦ Step1.ReaddatafromtheHighByteTMxDH,TMxAHorTMxRPH –heredataisreaddirectlyfromtheHighByteregistersandsimultaneouslydataislatched fromtheLowByteregisterintothe8-bitbuffer. ♦ Step2.ReaddatafromtheLowByteTMxDL,TMxALorTMxRPL –thisstepreadsdatafromthe8-bitbuffer. |
|
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 |