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

Back to Subject List

Thread Closed: Issue successfully resolved

???
02/13/04 14:28
Read: times


 
#64711 - Simple program for writing to ext. RAM
I was just writing a simple program to write to external RAM just to analyse the signals on some of the pins but for some reason, it starts writing to address 0001h instead of 0000h when simulating through Aspire. Can anybody help? I'm sure it,s just a stupid mistate but I cant see it

;:::::::::::::::::::::::::::::::::::::::::::::::::::::
; PROGRAM TO TEST WRITING TO EXTERNAL RAM
;:::::::::::::::::::::::::::::::::::::::::::::::::::::
$MOD831

VAL EQU 00FFh ;value to be written

MOV DPP, 0000h ;
MOV DPH, 0000h ;setting data pointer
MOV DPL, 0000h ;

;Writing to external memory loop
WR_MEM:
MOV A, VAL
MOVX @DPTR, A ;
INC DPTR ;increment DPTR by 1
DJNZ VAL, WR_MEM ;decrement value to be written and if not zero, return to beginning of loop
NOP

END


Thanks,
Tony

List of 7 messages in thread
TopicAuthorDate
Simple program for writing to ext. RAM            01/01/70 00:00      
   RE: Simple program for writing to ext. RAM            01/01/70 00:00      
      RE: Simple program for writing to ext. RAM            01/01/70 00:00      
      RE: Simple program for writing to ext. RAM            01/01/70 00:00      
         RE: Simple program for writing to ext. RAM            01/01/70 00:00      
   RE: Simple program for writing to ext. R            01/01/70 00:00      
      RE: Simple program for writing to ext. R            01/01/70 00:00      

Back to Subject List