| Electronic Components Datasheet Search |
|
HT67F370 Datasheet(PDF) 27 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F370 Datasheet(HTML) 27 Page - Holtek Semiconductor Inc |
|
27 / 225 page ![]() Rev. 1.00 �� �an�a�� 0�� �01� Rev. 1.00 �� �an�a�� 0�� �01� HT67F370 TinyPowerTM A/D Flash MCU with LCD & EEPROM HT67F370 TinyPowerTM A/D Flash MCU with LCD & EEPROM Look-up Table AnylocationwithintheProgramMemorycanbedefinedasalook-uptablewhereprogrammerscan storefixeddata.Tousethelook-uptable,thetablepointermustfirstbesetupbyplacingtheaddress ofthelookupdatatoberetrievedinthetablepointerregister,TBLPandTBHP.Theseregisters definethetotaladdressofthelook-uptable. Aftersettingupthetablepointer,thetabledatacanberetrievedfromtheProgramMemoryusing thecorrespondingtablereadinstructionsuchas"TABRD[m]"or"TABRDL[m]"respectivelywhen thememory[m]islocatedinsector0.Ifthememory[m]islocatedinothersectors,thedatacanbe retrievedfromtheprogrammemoryusingthecorrespondingextendedtablereadinstructionsuchas "LTABRD[m]"or"LTABRDL[m]"respectively.Whentheinstructionisexecuted,thelowerorder tablebytefromtheProgramMemorywillbetransferredtotheuserdefinedDataMemoryregister[m] asspecifiedintheinstruction.ThehigherordertabledatabytefromtheProgramMemorywillbe transferredtotheTBLHspecialregister. Theaccompanyingdiagramillustratestheaddressingdataflowofthelook-uptable. Last Page o� TBHP Registe� TBLP Registe� P�og�am Memo�� Registe� TBLH Use� Selected Registe� Data 1� bits High B�te Low B�te Table Program Example Thefollowingexampleshowshowthetablepointerandtabledataisdefinedandretrievedfromthe microcontroller.ThisexampleusesrawtabledatalocatedintheProgramMemorywhichisstored thereusingtheORGstatement.ThevalueatthisORGstatementis"1F00H"whichislocatedin ROMBank3andreferstothestartaddressofthelastpagewithinthe32KwordsProgramMemory ofthedevice.Thetablepointerlowbyteregisterissetupheretohaveaninitialvalueof"06H". ThiswillensurethatthefirstdatareadfromthedatatablewillbeattheProgramMemoryaddress "7F06H"or6locationsafterthestartofthelastpage.Notethatthevalueforthetablepointeris referencedtothefirstaddressofthepresentpagepointedbytheTBHPregisterifthe"TABRD [m]"or"LTABRD[m]"instructionisbeingused.Thehighbyteofthetabledatawhichinthiscase isequaltozerowillbetransferredtotheTBLHregisterautomaticallywhenthe"TABRD[m]"or "LTABRD[m]"instructionisexecuted. BecausetheTBLHregisterisaread/writeregisterandcanberestored,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 |