Hi
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
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