Quote Originally Posted by HenrikOlsson View Post
When C1Out is 1 you set PortB.0 HIGH and when C1Out is 0 you set PortB.1 HIGH. But there is no code in the loop to set either of the outputs LOW again.
Code:
lop:
  if C1Out = 1 THEN
    PortB.0 = 1   ' One on
    PortB.1 = 0   ' The other off
  ELSE
    PortB.0 = 0   ' On off
    PortB.1 = 1   ' The other on
  ENDIF
GOTO lop
yah HenrikOlsson help me on that edit where necessary so that it can work as i want, iam a begginer in the pics progrmming, thanx indvance