| Electronic Components Datasheet Search |
|
HT45F0084 Datasheet(PDF) 21 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F0084 Datasheet(HTML) 21 Page - Holtek Semiconductor Inc |
|
21 / 160 page ![]() Rev. 1.00 �0 �a��� 1�� �01� Rev. 1.00 �1 �a��� 1�� �01� HT45F0084 Cord-free Vacuum Cleaner ASSP Flash MCU Look-up Table AnylocationwithintheProgramMemorycanbedefinedasalook-uptablewhereprogrammerscan storefixeddata.Tousethelook-uptable,thetablepointermustfirstbesetupbyplacingtheaddress ofthelookupdatatoberetrievedinthetablepointerregister,TBLPandTBHP.Theseregisters definethetotaladdressofthelook-uptable. Aftersettingupthetablepointer,thetabledatacanberetrievedfromtheProgramMemoryusing the“TABRD[m]”or“TABRDL[m]”instructions,respectively.Whentheinstructionisexecuted, thelowerordertablebytefromtheProgramMemorywillbetransferredtotheuserdefined DataMemoryregister[m]asspecifiedintheinstruction.Thehigherordertabledatabytefrom theProgramMemorywillbetransferredtotheTBLHspecialregister.Anyunusedbitsinthis transferredhigherorderbytewillbereadas“0”. Theaccompanyingdiagramillustratestheaddressingdataflowofthelook-uptable. Re gi st er T BL H Us er S el ec te d Re gi st er Hi gh B yt eL ow B yt e La st p age o r TB HP R egi st er TB LP R eg is te r Da ta 16bi ts Pr og ra m Me mo ry Instruction Table Location Bits b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 TABRD [m] @10 @9 @8 @� @6 @5 @4 @3 @� @1 @0 TABRDL [m] 1 1 1 @� @6 @5 @4 @3 @� @1 @0 Table Location Note:b10~b0:Tablelocationbits @7~@0:Tablepointer(TBLP)bits @10~@8:Tablepointer(TBHP)bits Table Program Example Thefollowingexampleshowshowthetablepointerandtabledataisdefinedandretrievedfromthe microcontroller.ThisexampleusesrawtabledatalocatedintheProgramMemorywhichisstored thereusingtheORGstatement.ThevalueatthisORGstatementis“700H”whichreferstothestart addressofthelastpagewithinthe2KwordsProgramMemoryofthedevice.Thetablepointeris setupheretohaveaninitialvalueof“06H”.Thiswillensurethatthefirstdatareadfromthedata tablewillbeattheProgramMemoryaddress“706H”or6locationsafterthestartofthelastpage. Notethatthevalueforthetablepointerisreferencedtothefirstaddressofthepresentpageifthe “TABRD[m]”instructionisbeingused.Thehighbyteofthetabledatawhichinthiscaseisequal tozerowillbetransferredtotheTBLHregisterautomaticallywhenthe“TABRD[m]”instructionis executed. BecausetheTBLHregisterisaread-onlyregisterandcannotberestored,careshouldbetaken toensureitsprotectionifboththemainroutineandInterruptServiceRoutineusetableread instructions.Ifusingthetablereadinstructions,theInterruptServiceRoutinesmaychangethe valueoftheTBLHandsubsequentlycauseerrorsifusedagainbythemainroutine.Asaruleitis recommendedthatsimultaneoususeofthetablereadinstructionsshouldbeavoided.However,in situationswheresimultaneoususecannotbeavoided,theinterruptsshouldbedisabledpriortothe |
|
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 |