| поискавой системы для электроныых деталей |
|
HT67F488 датащи(PDF) 22 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F488 датащи(HTML) 22 Page - Holtek Semiconductor Inc |
|
22 / 171 page ![]() Rev. 1.60 �� �ove��e� ��� �016 HT67F488/HT67F489 TinyPowerTM 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]”instructionsrespectivelywhenthememory[m]islocatedin currentpage.Ifthememory[m]islocatedinotherpages,thetabledatacanberetrievedfromthe ProgramMemoryusingthe“LTABRD[m]”or“LTABRDL[m]”instructionsrespectively.Whenthe instructionisexecuted,thelowerordertablebytefromtheProgramMemorywillbetransferredto theuserdefinedDataMemoryregister[m]asspecifiedintheinstruction.Thehigherordertabledata bytefromtheProgramMemorywillbetransferredtotheTBLHspecialregister.Anyunusedbitsin thistransferredhigherorderbytewillbereadas0. 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 Thefollowingexampleshowshowthetablepointerandtabledataisdefinedandretrievedfromthe microcontroller.ThisexampleusesrawtabledatalocatedintheProgramMemorywhichisstored thereusingtheORGstatement.ThevalueatthisORGstatementis“F00H”whichreferstothestart addressofthelastpagewithinthe4KProgramMemoryoftheHT67F488device.Thetablepointer issetupheretohaveaninitialvalueof“06H”.Thiswillensurethatthefirstdatareadfromthedata tablewillbeattheProgramMemoryaddress“F06H”or6locationsafterthestartofthelastpage. Notethatthevalueforthetablepointerisreferencedtothefirstaddressofthepresentpageifthe “TABRD[m]”or“LTABRD[m]”instructionisbeingused.Thehighbyteofthetabledatawhichin thiscaseisequaltozerowillbetransferredtotheTBLHregisterautomaticallywhenthe“TABRD [m]”or“LTABRD[m]”instructionisexecuted. BecausetheTBLHregisterisaread/writeregisterandcanberestored,careshouldbetaken toensureitsprotectionifboththemainroutineandInterruptServiceRoutineusetableread instructions.Ifusingthetablereadinstructions,theInterruptServiceRoutinesmaychangethe valueoftheTBLHandsubsequentlycauseerrorsifusedagainbythemainroutine.Asaruleitis recommendedthatsimultaneoususeofthetablereadinstructionsshouldbeavoided.However,in situationswheresimultaneoususecannotbeavoided,theinterruptsshouldbedisabledpriortothe executionofanymainroutinetable-readinstructions.Notethatalltablerelatedinstructionsrequire twoinstructioncyclestocompletetheiroperation. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |