i have run it a wall and can't seem to figure out how to check a output or input port if any bit is on.
What i want to do is to check if any bit on the port is on then i will switch a on a bit on anther port.and if the nothing is on then switch off that bit on the other port
if any bit on portb is on then switch portc,1 on.
Is all bits on portb are off then switch portc,1 off
Make sure that the PortB and PortC are digital i/o. Then set the data direction as input for PortB, and output for PortC. I would use a shadow register like: