Hello Jcee,

J>>Now my program seems to work. But!!! Now when I have programmed my 12F629 with the working program I can't reprogram it. The programmer answer that there is no pic connected. Why??? <<

A couple of things. Make sure all pins are making contact.
and make sure you erase the chip before reprogramming. If you are trying to do serial programming ICSP, you will have to disconnect the pins that use the ICSP.

Another thing, you do not need the define OSC for the 629. It defaults to 4 MHZ.

DWayne