Hi,
I am using a PIC18F2455. I would like to run a program that sets PortA as an output, then set RA0 High and RA1 low. I am using Assembly. How can i do that?
I thought that simply using the following code would do that, however when i simulate it in MPlab, PortA seems to remain unchanged.
???
clrf TRISA
BSF RA0, b'1'
BCF RA1, b'0'
Why does this not work? What am I missing?
I am using a PIC18F2455. I would like to run a program that sets PortA as an output, then set RA0 High and RA1 low. I am using Assembly. How can i do that?
I thought that simply using the following code would do that, however when i simulate it in MPlab, PortA seems to remain unchanged.
???
clrf TRISA
BSF RA0, b'1'
BCF RA1, b'0'
Why does this not work? What am I missing?