I have wireless control over my pic using the usart of the PIC16F877A. Now thats on port c 6/7
Im using portc 0-3 as my LED outputs for something else, but i cant really access it as much as i should be able to. If i wanted to set a few leds on port B, this would be fine, if i try do the same on these 0-3 bits of port C, it wont do it. It only outputs the LAST bit assignment. i.e. if i command bsf port c , 0,1,2,3 then only led connected to 3 would be on. soo dumbbbb
I can assign more than 1 of these LEDs on at startup, BEFORE i set up the USART as it acts normally. Any1 have any ideas why i cant do simple led work on port C?
ps im only requiring a single bit change, its not like im assigning b'00000000'
Im using portc 0-3 as my LED outputs for something else, but i cant really access it as much as i should be able to. If i wanted to set a few leds on port B, this would be fine, if i try do the same on these 0-3 bits of port C, it wont do it. It only outputs the LAST bit assignment. i.e. if i command bsf port c , 0,1,2,3 then only led connected to 3 would be on. soo dumbbbb
I can assign more than 1 of these LEDs on at startup, BEFORE i set up the USART as it acts normally. Any1 have any ideas why i cant do simple led work on port C?
ps im only requiring a single bit change, its not like im assigning b'00000000'