89s52 previou program did not erase

Status
Not open for further replies.

harish1122

Newbie level 3
Joined
Mar 13, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,297
I am using usb 89s52 programmar (technido) I write led blinking program its work
but when i write another program its not running previous program is running
I did not select chip lock option in progisp programmar
I replace IC but no problem solved
Please guid me
 

Hi harish,

The problem may be with the initialization of the controller.

like oscillator initialization, and if you enabled an interrupt and the interrupt service routine didn't write..

so, pls send the code so that i can support more.

regards
Sreekanth
 


This is my code
ORG 0000H ; Execution Starts Here
FLASH: SETB P3.7 ; Turn on/off the LED
MOV P1,#00H
ACALL DELAY ; call one second delay
AJMP FLASH ; repeat forever

DELAY: MOV R1,#0FFH
REPEAT: MOV R2,#0FFH
DJNZ R2,$
DJNZ R1,REPEAT
RET
END

In previous code i use ORG 00h is this statement create problem
I check my target board its reset pulse is not working
thats a problem or anothe
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…