| Electronic Components Datasheet Search |
|
HT67F5630 Datasheet(PDF) 23 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F5630 Datasheet(HTML) 23 Page - Holtek Semiconductor Inc |
|
23 / 147 page ![]() Rev. 1.20 22 De�e��e� 1�� 201� Rev. 1.20 23 De�e��e� 1�� 201� HT67F5630 TinyPowerTM 24-Bit Delta Sigma A/D Flash MCU with LCD & EEPROM HT67F5630 TinyPowerTM 24-Bit Delta Sigma A/D Flash MCU with LCD & EEPROM 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 transferredhigherorderbytewillbereadas0. 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 Table Program Example Thefollowingexampleshowshowthetablepointerandtabledataisdefinedandretrievedfromthe microcontroller.ThisexampleusesrawtabledatalocatedintheProgramMemorywhichisstored thereusingtheORGstatement.ThevalueatthisORGstatementis“700H”whichreferstothestart addressofthelastpagewithinthe2KProgramMemoryofthemicrocontroller.Thetablepointeris setupheretohaveaninitialvalueof“06H”.Thiswillensurethatthefirstdatareadfromthedata tablewillbeattheProgramMemoryaddress“706H”or6locationsafterthestartofthelastpage. NotethatthevalueforthetablepointerisreferencedtothefirstaddressspecifiedbyTBLPand TBHPifthe“TABRD[m]”instructionisbeingused.Thehighbyteofthetabledatawhichinthis caseisequaltozerowillbetransferredtotheTBLHregisterautomaticallywhenthe“TABRD[m]” instructionisexecuted. BecausetheTBLHregisterisaread-onlyregisterandcannotberestored,careshouldbetaken toensureitsprotectionifboththemainroutineandInterruptServiceRoutineusetableread instructions.Ifusingthetablereadinstructions,theInterruptServiceRoutinesmaychangethe valueoftheTBLHandsubsequentlycauseerrorsifusedagainbythemainroutine.Asaruleitis recommendedthatsimultaneoususeofthetablereadinstructionsshouldbeavoided.However,in situationswheresimultaneoususecannotbeavoided,theinterruptsshouldbedisabledpriortothe executionofanymainroutinetable-readinstructions.Notethatalltablerelatedinstructionsrequire twoinstructioncyclestocompletetheiroperation. |
|
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 |