| ??? 11/20/03 14:56 Read: times |
#59131 - RE: Dual Port Ram memory problems Responding to: ???'s previous message |
Hello,
The interrput method suggested by Micheal is worth ,but i am yet stuck on the first point,reading the locations . I have written the following code for WRITE and READ WRITE Code LOOP1: MOV A,#42H CLR CEL MOVX @DPTR,A SETB CEL INC DPTR MOV A,DPL XRL A,#0BH JNZ LOOP1 MOV A,DPH XRL A,#00H JNZ LOOP1 MOV DPTR,#0000H RET READ_RAM: MOV A,DPL XRL A,#0AH JNZ LOOP2 MOV A,DPH XRL A,#00H JNZ LOOP2 MOV DPTR,#0000H RET LOOP2: CLR CEL CLR OE MOVX A,@DPTR SETB CEL SETB OE NEXT: MOV SBUF,A LUP1: JNB TI,LUP1 CLR TI INC DPTR SJMP READ_RAM I havent connected the RD_ of 8051 to OE_ of DPR,instead i manually toggle the bits. I specify the problem again: When i write 10 locations and read those using the above code ,i get garbage values,however if i write to more than 255 locations and read those than it is not a problem. I am not doing the two task simultaneously ,instead the reading 8051 waits for more than a second till all the locations are written and then i start reading. I havent used the serial interrupt to avoid the conflicts . Thanks, Pravin |
| Topic | Author | Date |
| Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
| RE: Dual Port Ram memory problems | 01/01/70 00:00 | |
RE: Dual Port Ram memory problems | 01/01/70 00:00 |



