Hi Björn,
ich weiss es auch nicht genau, aber ich glaube du solltest noch folgendes unten an deinen Code anbringen:

Do
Loop

Und gib anstatt "config Portb = Output" einmal "config Pinb.1 = Output" ein!

Ich hoffe ich konnte dir helfen.