| Electronic Components Datasheet Search |
|
HT45F4N Datasheet(PDF) 74 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F4N Datasheet(HTML) 74 Page - Holtek Semiconductor Inc |
|
74 / 170 page ![]() Rev. 1.30 7� De�e��e� 1�� �01� Rev. 1.30 75 De�e��e� 1�� �01� HT45F4N/HT45FH4N Power Bank Flash MCU HT45F4N/HT45FH4N Power Bank Flash MCU Programming Considerations TheTMCounterRegisters,theCapture/CompareCCRAandtheCCRPregisters,beingeither16- bitor10-bit,allhavealowandhighbytestructure.Thehighbytescanbedirectlyaccessed,butas thelowbytescanonlybeaccessedviaaninternal8-bitbuffer,readingorwritingtotheseregister pairsmustbecarriedoutinaspecificway.Theimportantpointtonoteisthatdatatransfertoand fromthe8-bitbufferanditsrelatedlowbyteonlytakesplacewhenawriteorreadoperationtoits correspondinghighbyteisexecuted.AstheCCRAandCCRPregistersareimplementedintheway showninthefollowingdiagramandaccessingtheseregisterpairsiscarriedoutinaspecificway describedabove,itisrecommendedtousethe“MOV”instructiontoaccesstheCCRAorCCRP lowbyteregisters,namedTMxALorTMxRPL,usingthefollowingaccessprocedures.Accessing theCCRAorCCRPlowbyteregisterwithoutfollowingtheseaccessprocedureswillresultin unpredictablevalues. Data Bus 8-�it Buffe� TMxDH TMxDL TMxRPH TMxRPL TMxAH TMxAL TM Counte� Registe� (Read only) TM CCRA Registe� (Read/W�ite) TM CCRP Registe� (Read/W�ite) Thefollowingstepsshowthereadandwriteprocedures: • WritingDatatoCCRAorCCRP ♦ Step1.WritedatatoLowByteTMxALorTMxRPL – notethatheredataisonlywrittentothe8-bitbuffer. ♦ Step2.WritedatatoHighByteTMxAHorTMxRPH – heredataiswrittendirectlytothehighbyteregistersandsimultaneouslydataislatched fromthe8-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 |