| Electronic Components Datasheet Search |
|
HT82B42R Datasheet(PDF) 22 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R Datasheet(HTML) 22 Page - Holtek Semiconductor Inc |
|
22 / 86 page ![]() Rev. 1.00 22 October 27, 2011 Rev. 1.00 23 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface Memory Pointer – MP0, MP1 Foralldevices,twoMemoryPointers,knownasMP0andMP1areprovided.TheseMemory PointersarephysicallyimplementedintheDataMemoryandcanbemanipulatedinthesameway asnormalregistersprovidingaconvenientwaywithwhichtoaddressandtrackdata.Whenany operationtotherelevantIndirectAddressingRegistersiscarriedout,theactualaddressthatthe microcontrollerisdirectedto,istheaddressspecifiedbytherelatedMemoryPointer.MP0canonly accessdatainBank0whileMP1canaccessbothbanks. data .section "data" adres1 db ? adres2 db ? adres3 db ? adres4 db ? block db ? code .section at 0 "code" org 00h start: mov a,04h ; setup size of block mov block,a mov a,offset adres1 ; Accumulator loaded with first RAM address mov mp0,a ; setup memory pointer with first RAM address loop: clr IAR0 ; clear the data at address defined by MP0 inc mp0 ; increment memory pointer sdz block ; check if last memory location has been cleared jmp loop continue: Theimportantpointtonotehereisthatintheexampleshownabove,noreferenceismadetospecific DataMemoryaddresses. Accumulator – ACC TheAccumulatoriscentraltotheoperationofanymicrocontrollerandiscloselyrelatedwith operationscarriedoutbytheALU.TheAccumulatoristheplacewhereallintermediateresults fromtheALUarestored.WithouttheAccumulatoritwouldbenecessarytowritetheresultof eachcalculationorlogicaloperationsuchasaddition,subtraction,shift,etc.,totheDataMemory resultinginhigherprogrammingandtimingoverheads.Datatransferoperationsusuallyinvolve thetemporarystoragefunctionoftheAccumulator;forexample,whentransferringdatabetween oneuserdefinedregisterandanother,itisnecessarytodothisbypassingthedatathroughthe Accumulatorasnodirecttransferbetweentworegistersispermitted. Program Counter Low Register – PCL Toprovideadditionalprogramcontrolfunctions,thelowbyteoftheProgramCounterismade accessibletoprogrammersbylocatingitwithintheSpecialPurposeareaoftheDataMemory.By manipulatingthisregister,directjumpstootherprogramlocationsareeasilyimplemented.Loading avaluedirectlyintothisPCLregisterwillcauseajumptothespecifiedProgramMemorylocation, however,astheregisterisonly8-bitwide,onlyjumpswithinthecurrentProgramMemorypageare permitted.Whensuchoperationsareused,notethatadummycyclewillbeinserted. |
|
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 |