Das gibt viel Code.
PortB defineren wie @jojo3 gesagt hat
Dann:
Code:
   Kanal = PINB AND &H0F     
   Kanal = KANAL OR &HC0