No , I have connected p31 to vccAre you connecting P32 to Vcc? Shouldn't it be P31 "EA"?
That wrong connection would cause p0.7 to get smoked when it is config as output....
Allen
Hello AllenThe pin counting of 8051 is 1 to 40 and NOT 0 to 39. Look at the attached picture....
Allen
ORG 0
MainLoop:
setb P0.0 ; Turn LED ON
Acall Delay ; Wait a short time
clr P0.0 ; Turn LED OFF
Acall Delay ; Wait a short time
sjmp MainLoop ; Loop forever
Delay:
mov R1,#90 ; Set up outer loop count
mov R2,#225 ; Set up inner loop count
Delay1: djnz R2,Delay1 ; Inner loop
djnz R1,Delay1 ; Outer loop
ret
end
I tried myself I am getting error messageSorry I am not sure. I have never used flash magic program before.
Others who have used this chip with Flash Magic might be able to help you....
But you could always try it yourself first and report the problem you encountered if there is any.
Allen