??? 02/05/05 06:02 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#86604 - be sure your problem easily solved Responding to: ???'s previous message |
Vijayganesh S said:
hERE IS THE CODE:
MOV TMOD,#0x01 REPEAT: MOV R4,#0xA1 MOV R2,#0x42 ;...........Time interval data location MOV R3,#0x00 ;........... MOV DPTR,#0x4400 ;........output port data location END Hello Dear Vijayganesh I think there is a small problem in your code. when you load 4400h in dptr the last byte that you can write your program in at89c51/52 flash memory is 1fffh your accessible flash memory is only 8k byte. and you load wrong pointed value in dptr correct code: MOV TMOD,#0x01 REPEAT: MOV R4,#0xA1 MOV R2,#0x42 MOV R3,#0x00 MOV DPTR,#0x1800 ;you can't load dptr with value higher than 1fffh AGAIN: CLR A MOVC A,@A+DPTR MOV P1,A ... ... ... org 1800h data1,data2,data3,.... be sure your problem easily solved. Regards Mehdi N.Rahni |