| Electronic Components Datasheet Search |
|
HT46R069B Datasheet(PDF) 21 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R069B Datasheet(HTML) 21 Page - Holtek Semiconductor Inc |
|
21 / 135 page ![]() Rev. 1.50 �0 �e���a�� 05� �015 Rev. 1.50 �1 �e���a�� 05� �015 HT46R068B/HT46R069B Enhanced A/D 8-Bit OTP MCU HT46R068B/HT46R069B Enhanced A/D 8-Bit OTP MCU Table Program Example Theaccompanyingexampleshowshowthetablepointerandtabledataisdefinedandretrievedfrom thedevice.Thisexampleusesrawtabledatalocatedinthelastpagewhichisstoredthereusingthe ORGandrombankstatement.ThevalueatthisORGstatementis"7F00H"whichreferstothestart addressofthelastpagewithinthe32KProgramMemoryofthemicrocontrollers.Thetablepointer issetupheretohaveaninitialvalueof"06H".Thiswillensurethatthefirstdatareadfromthedata tablewillbeattheProgramMemoryaddress"7F06H"or6locationsafterthestartofthelastpage. Notethatthevalueforthetablepointerisreferencedtothefirstaddressofthepresentpageifthe "TABRDC[m]"instructionisbeingused.Thehighbyteofthetabledatawhichinthiscaseisequal tozerowillbetransferredtotheTBLHregisterautomaticallywhenthe"TABRDL[m]"instruction isexecuted. BecausetheTBLHregisterisaread-onlyregisterandcannotberestored,careshouldbetaken toensureitsprotectionifboththemainroutineandInterruptServiceRoutineusethetableread instructions.Ifusingthetablereadinstructions,theInterruptServiceRoutinesmaychangethe valueofTBLHandsubsequentlycauseerrorsifusedagainbythemainroutine.Asaruleitis recommendedthatsimultaneoususeofthetablereadinstructionsshouldbeavoided.However,in situationswheresimultaneoususecannotbeavoided,theinterruptsshouldbedisabledpriortothe executionofanymainroutinetable-readinstructions.Notethatalltablerelatedinstructionsrequire twoinstructioncyclestocompletetheiroperation. Instruction(s) Table Location b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 TABRDC [m] PC14 PC13 PC1� PC11 PC10 PC9 PC8 @7 @6 @5 @4 @3 @� @1 @0 TABRDL [m] 1 1 1 1 1 1 1 @7 @6 @5 @4 @3 @� @1 @0 Note:PC14~PC8:CurrentProgramCounterbits @7~@0:TablePointerTBLPbits FortheHT46R068B,theTableaddresslocationis14bits,i.e.fromb13~b0 FortheHT46R069B,theTableaddresslocationis15bits,i.e.fromb14~b0 |
|
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 |