I have found it easier to start a PIC program using these startup files,

   they have the basic code to initialise the PIC registers and some subroutines.

Taken from the 2003 PIC_RRR project of Alex Kouznetsov for the PIC 16F628

   link to "akouz@senet.com.au" "http://www.senet.com.au/~akouz/main.html"

Hardware Register options are defined as constants, then on initialise,

   they are loaded into the registers.

Some subroutines are included - delete what is not required.

Data memory and read/write routines are also included.

for the 12F629 or 12F675   link to pic12F629.htm
for the 16F628   link to pic16F628.htm

 BACK