| 数据搜索系统,热门电子元器件搜索 |
|
HT69F360 数据表(PDF) 36 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT69F360 数据表(HTML) 36 Page - Holtek Semiconductor Inc |
|
36 / 235 page ![]() Rev. 1.30 3� �ove��e� 1�� �01� Rev. 1.30 37 �ove��e� 1�� �01� HT69F340/HT69F350/HT69F360 TinyPowerTM I/O Flash MCU with LCD & EEPROM HT69F340/HT69F350/HT69F360 TinyPowerTM I/O 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]”instructionsrespectivelywhenthememory[m]islocated inSector0.Ifthememory[m]islocatedinotherSectors,thedatacanberetrievedfromthe programmemoryusingthe“LTABRD[m]”or“LTABRDL[m]”instructionsrespectively.Whenthe instructionisexecuted,thelowerordertablebytefromtheProgramMemorywillbetransferredto theuserdefinedDataMemoryregister[m]asspecifiedintheinstruction.Thehigherordertabledata bytefromtheProgramMemorywillbetransferredtotheTBLHspecialregister. 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 TB LP R eg is te r Da ta 16 b it s Pr og ra m Me mo ry Las t p age o r TB HP R egi st er Table Program Example Thefollowingexampleshowshowthetablepointerandtabledataisdefinedandretrievedfrom themicrocontroller.ThisexampleusesrawtabledatalocatedintheProgramMemorywhichis storedthereusingtheORGstatement.ThevalueatthisORGstatementis“1F00H”whichrefers tothestartaddressofthelastpagewithinthe8KwordsProgramMemoryoftheHT69F350.The tablepointerissetupheretohaveaninitialvalueof“06H”.Thiswillensurethatthefirstdataread fromthedatatablewillbeattheProgramMemoryaddress“1F06H”or6locationsafterthestartof thespecifiedpage.Notethatthevalueforthetablepointerisreferencedtothefirstaddressofthe presentpageifthe“TABRD[m]”instructionisbeingused.Thehighbyteofthetabledatawhichin thiscaseisequaltozerowillbetransferredtotheTBLHregisterautomaticallywhenthe“TABRD [m]”instructionisexecuted. BecausetheTBLHregisterisaread/writeregisterandcanberestored,careshouldbetaken toensureitsprotectionifboththemainroutineandInterruptServiceRoutineusetableread instructions.Ifusingthetablereadinstructions,theInterruptServiceRoutinesmaychangethe valueoftheTBLHandsubsequentlycauseerrorsifusedagainbythemainroutine.Asaruleitis recommendedthatsimultaneoususeofthetablereadinstructionsshouldbeavoided.However,in situationswheresimultaneoususecannotbeavoided,theinterruptsshouldbedisabledpriortothe executionofanymainroutinetable-readinstructions.Notethatalltablerelatedinstructionsrequire twoinstructioncyclestocompletetheiroperation. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |