I am able to store program code starting at address zero to the chip via ISP and I was able to verify that the program is stored correctly, but when I tried running it on my test board that has LED's connected to all P0 and P2 pins through 220 ohm resistors to 5V, Most of them were on. I expected them all to be off after arriving at this code:
After measuring my entire code with a simulator, it takes less than 3 seconds to execute the entire code, so I expected to see the lights go off.
What can I do to fix this?
Code:
mov P0,#0FFh
nop
mov P2,#0FFh
nop
sjmp $
What can I do to fix this?