I am using the internal oscillator. At power up, the PIC goes right to the freq loop, the IF - THEN statements are ineffective and portb.5 does not go low. When I bring portb.5 low, nothing happens but when portb.5 goes high, the clock stops and the power is low. Making portb.5 low again will start the clock but I don't want it to work that way.

REM THIS IS JUST TO SEE IF I CAN MAKE ANYTHING WORK
TRISA = %00010000 'PORT A ALL OUTPUTS, EXCEPT MCLR IS INPUT
TRISB = %00111111 ' PORT B ALL INPUTS EXCEPT 6 & 7 OUTPUT
OPTION_REG = %01111111 ' ENABLE WEAK PULLUP ON PORT B
START:
IF PORTB.5 = 0 THEN POO
IF PORTB.5 = 1 THEN START


POO:
LOW PORTB.5
FREQ:
TOGGLE PORTB.7
PAUSEUS 700
GOTO FREQ
END