Hi All

A bit new to all this but learning fast (I hope), and this seems a stupid question, but I don't know and if you don't know you have to ask so........

I have code which works fine on a 12f683, but I had originally planned to use 12f629 and so want to recode it. Now I know there are certain differences, but at the moment I cant even get simple code to work on the 629.

I have this that works on the 629

Code:
' Name        : Test44.pbp
' Compiler    : PICBASIC PRO Compiler 3.07
' Assembler   : PM
' Target PIC  : 8-pin PIC12F629 
' Oscillator  : 4MHz internal
' Description : test file PICBASIC PRO program to show button press on LED.
'

DEFINE PIC12F629, INTRC_OSC,INTRC_OSC_NOCLKOUT,WDT_ON,PWRT_ON,MCLR_OFF, BOD_ON , CPD_OFF , PROTECT_OFF 
Define OSCCAL_1K 1 ' PIC12F675, Calibrate internal oscillator

CMCON = 7      ' Analog comparators off
CLEAR

LED var gpio.1        ' Alias GPIO.0 to LED
PB  Var GPIO.0   ' Alias GPIO.3 to push button

' Button press turns on LED 
   
   If PB = 0 Then ' If button pressed...
     low LED      ' Turn on LED
   Else
     high LED     ' Turn off LED
   Endif

   Goto mainloop  ' Do it forever
   End
However if I add lines after "'Button press ...." such as a short HIGH/PAUSE/LOW/PAUSE sequence all I get is the Led going High and the Prg appears to halt.

If I try similar code on the 683 it works - dont even have the opening DEF in there

Any help gratefully received

Confused Colin