RobertD
New Member
Hi folks, still working on my program here, and slowly making progress. But I have a problem that should not be a problem. I add up five registers through the W register, and then want to move the result from W to LEDON register, but the value doesn't move over. These are simple defined registers, in cbloc, all of them, so I don't know what the problem is.
The same thing happens when I want to turn a bit on PORTA, I put a value into W and move it to PORTA but nothing happens, the value doesn't move to PORTA to turn the pin on.
The same thing happens when I want to turn a bit on PORTA, I put a value into W and move it to PORTA but nothing happens, the value doesn't move to PORTA to turn the pin on.
Code:
addwf W0,0
addwf W1,0
addwf W2,0
addwf W3,0
addwf W4,0
addwf W5,0
movwf LEDON
Last edited: