??? 01/01/10 10:05 Read: times |
#172092 - once again readout data Responding to: ???'s previous message |
Hello,
Mr.Jan Waclawek. we have read attached pdf file.but,Once Again problem is same. i m not able to read the data #0AAH at address 0100H. becouse on test board,i m sending data at address 0100H to PORT-0 But i m getting 00H inplace of AAH at PORT-0. My Program code is here in Assembly language. Pl send the correct program code for to Read Data AAh at address 0100H. i m waiting for your replay. DPL EQU 82H DPH EQU 83H FCF EQU 0B1H ORG 0000H MOV DPTR,#TESTAREA2 LCALL E_RASE ;Routine for to erase data at address 0100H MOV DPTR,#TESTAREA2 MOV A,#0AAH LCALL W_RITE ;Routine for to write data #0AAH at address 0100H MOV DPTR,#TESTAREA2 LCALL R_EAD ;Routine for to read data at address 0100H ORG 0100H TESTAREA2: DB 0,0 ORG 03F00H MOV 080H,#0FFH MOV 0A0H,#0FFH stop: MOV DPTR,#0100H ;Reading data at address 0100H CLR A MOVC A,@A+DPTR MOV 080H,A MOV 0A0H,#11111100B LCALL DELAY LCALL DELAY STOP: SJMP STOP E_RASE: PUSH 0A8H CLR 0AFH MOV R1,#08H ANL FCF,#0FCH ; enable boot sector LCALL 01FF0H ORL FCF,#001H ; enable boot sector POP 0A8H LCALL DELAY LCALL DELAY RET W_RITE: PUSH 0A8H CLR 0AFH MOV R1,#02H ANL FCF,#0FCH ; enable boot sector LCALL 01FF0H ORL FCF,#001H ; enable boot sector POP 0A8H LCALL DELAY LCALL DELAY RET R_EAD: PUSH 0A8H CLR 0AFH MOV R1,#03H ANL FCF,#0FCH ; enable boot sector LCALL 01FF0H ORL FCF,#001H ; enable boot sector POP 0A8H LCALL DELAY LCALL DELAY RET DELAY: MOV R5,#10 LD2: MOV R6,#100 LD1: MOV R7,#100 LD: DJNZ R7,LD DJNZ R6,LD1 DJNZ R5,LD2 RET END |
Topic | Author | Date |
P89V51RD2 IAP and ISP writeup | 01/01/70 00:00 | |
e-mail it to andy ayre | 01/01/70 00:00 | |
thanks for replay | 01/01/70 00:00 | |
once again readout data | 01/01/70 00:00 | |
I'll look at it tomorrow | 01/01/70 00:00 | |
case sensitive assembler | 01/01/70 00:00 | |
Read Data....from address | 01/01/70 00:00 | |
What kind of programmer? | 01/01/70 00:00 | |
never saw a chip that .. | 01/01/70 00:00 | |
Maybe not now ... | 01/01/70 00:00 | |
Before 2000h perfect working | 01/01/70 00:00 | |
no bootloader | 01/01/70 00:00 | |
Why at 0x0100? | 01/01/70 00:00 | |
p89v51rd2bn | 01/01/70 00:00 | |
Have you told us everything? | 01/01/70 00:00 | |
using IAP routine | 01/01/70 00:00 | |
I'd suggest you focus on the datasheet | 01/01/70 00:00 | |
datasheet | 01/01/70 00:00 | |
I love these replies | 01/01/70 00:00 | |
NXP practice | 01/01/70 00:00 | |
not in this case | 01/01/70 00:00 | |
Getting Solution | 01/01/70 00:00 | |
HUH???? | 01/01/70 00:00 | |
good response![]() | 01/01/70 00:00 | |
have you read my last two posts? | 01/01/70 00:00 |