The problem is not with turning PORTB's Pins 1 and 2 on and off. If I individually select them to go high or low they will do so. The problem is when I have 6 high statements in a row and PORTB's pins 1 & 2 are included they will not go high.

' This works fine
HIGH PORTB.1
HIGH PORTB.2


' this does not work.
HIGH PORTA.5
HIGH PORTC.4
HIGH PORTB.5
HIGH PORTB.4
HIGH PORTB.1
HIGH PORTB.2

note that PORTB.5 and PORTB.4 will go high as well as the other pins except PORTB.1 and PORTB.2

I shall try using TRISB. I did use the goto loop instead of stop and had similar results.