It is probably a read-modify-write issue.
Try -
TRISB = $FF
PORTB= $FF
TRISB.0 = %11111110
Pause 100
TRISB.0 = %11111101
Pause 100
TRISB.0 = %11111011
Pause 100
TRISB.0 = %11110111
...
It is probably a read-modify-write issue.
Try -
TRISB = $FF
PORTB= $FF
TRISB.0 = %11111110
Pause 100
TRISB.0 = %11111101
Pause 100
TRISB.0 = %11111011
Pause 100
TRISB.0 = %11110111
...
Charles Linquist
Thanks Charles, My bad sorry - one of those pesky solder bridges your code helped me find the problem tho.
Sorry for posting this when it was a silly wiring fault on my part
Bookmarks