| Electronic Components Datasheet Search |
|
HT67F5650 Datasheet(PDF) 32 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F5650 Datasheet(HTML) 32 Page - Holtek Semiconductor Inc |
|
32 / 235 page ![]() Rev. 1.30 3� De�e��e� 1�� �01� Rev. 1.30 33 De�e��e� 1�� �01� HT67F5650/HT67F5660 24-Bit Delta Sigma A/D + LCD Flash MCU HT67F5650/HT67F5660 24-Bit Delta Sigma A/D + LCD Flash MCU 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. 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"1F00H"whichreferstothe startaddressofthelastpagewithinthe8KProgramMemoryoftheHT67F5650device.Thetable pointerlowbyteregisterissetupheretohaveaninitialvalueof"06H".Thiswillensurethatthefirst datareadfromthedatatablewillbeattheProgramMemoryaddress"1F06H"or6locationsafter thestartofthelastpage.Notethatthevalueforthetablepointerisreferencedtothefirstaddress specifiedbyTBLPandTBHPifthe"TABRD[m]"instructionisbeingused.Thehighbyteofthe tabledatawhichinthiscaseisequaltozerowillbetransferredtotheTBLHregisterautomatically whenthe"TABRD[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 |