PortB output using mask problem
Posted: Mon Nov 25, 2013 1:30 pm
Hello
I have a problem with the mask output function for Port B on a 18F66K22.
I have selected RB1 to RB5 in the mask to output there only. If i run the program
on the chip (Internal osc / 16mhz) it will not turn on/off the leds on that port.
If i drive the port output in single bit mode then it works ok.
Attached is FC5 short test program. It will flash RB1 ok as single bit (10X), but the
next loop will not output anything(mask function).
Any help?
Thanx
Mark
I have a problem with the mask output function for Port B on a 18F66K22.
I have selected RB1 to RB5 in the mask to output there only. If i run the program
on the chip (Internal osc / 16mhz) it will not turn on/off the leds on that port.
If i drive the port output in single bit mode then it works ok.
Attached is FC5 short test program. It will flash RB1 ok as single bit (10X), but the
next loop will not output anything(mask function).
Any help?
Thanx
Mark