Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/23/06 20:23
Modified:
  10/23/06 20:32

Read: times


 
#126921 - the Dallas parts do that
Responding to: ???'s previous message
and they do it without a specific instruction. You load the SFR's appropriately and a read will inc one DPTR and a write inc's the other. This happens with no performance penalty, BTW.

ID1 Increment/Decrement Select for DPTR1.
Bit 7 on DPTR1 when selected (SEL = 1)
0 = INC DPTR increments DPTR1 (default)
1 = INC DPTR decrements DPTR1
ID0 Increment/Decrement Select for DPTR.
Bit 6 on DPTR when selected (SEL = 0) as
0 = INC DPTR increments DPTR (default)
1 = INC DPTR decrements DPTR
TSL Toggle Select. When clear (= 0), DPTR-
Bit 5 the SEL bit is toggled following execution
INC DPTR
MOV DPTR, #data16
MOVC A, @A+DPTR
MOVX A, @DPTR
MOVX @DPTR, A
AID Autoincrement/Decrement Enable.
Bit 4 or decremented (as determined by DPTR-related instructions:
MOVC A, @A+DPTR
MOVX A, @DPTR
MOVX @DPTR, A
Bits 3, 2, 1 Reserved. These bits read 010b.
7 6 5 4
SFR 86h ID1 ID0 TSL AID RW-0 RW-0 RW-0 R-0
R = Unrestricted read, W = Unrestricted write, -n = Value after reset
Data Pointer Select (DPS)


RE

List of 29 messages in thread
TopicAuthorDate
Just One More...            01/01/70 00:00      
   DEC DPTR            01/01/70 00:00      
      or how about DDEC            01/01/70 00:00      
      what about            01/01/70 00:00      
         ???            01/01/70 00:00      
            who told you it is for data            01/01/70 00:00      
   Begin self destruct sequence,BSDS            01/01/70 00:00      
   DWIM            01/01/70 00:00      
   HCF ... HALT and CATCH FIRE            01/01/70 00:00      
      Synonym for BSDS?            01/01/70 00:00      
         instruction            01/01/70 00:00      
   The Missing Bit            01/01/70 00:00      
      Bit addressable            01/01/70 00:00      
         I Stand Corrected            01/01/70 00:00      
      ANL, ORL, XRL ?            01/01/70 00:00      
      The Question was            01/01/70 00:00      
         compilers like...            01/01/70 00:00      
            SFRs forever...            01/01/70 00:00      
               SFRs rule!            01/01/70 00:00      
      The Question was            01/01/70 00:00      
   There\'s always SUB (without the borrow)            01/01/70 00:00      
   XRL C,bit and XRL bit,C            01/01/70 00:00      
   in a dual dptr derivative            01/01/70 00:00      
      you mean both MOVC and MOVX, don't you            01/01/70 00:00      
         naah, just movx, mov was an oversight            01/01/70 00:00      
            some of 'em do that already, e.g. Dallas            01/01/70 00:00      
      mem to mem, not just autoincrement            01/01/70 00:00      
         mem to mem through acc            01/01/70 00:00      
         the Dallas parts do that            01/01/70 00:00      

Back to Subject List