Hallo
I recently bought a PIC KIT 1 which uses the PIC 12F675 chip. This is my first attempt ever to programme a PIC, so forgive me for the questions.
Can you please advise what the skeleton structure of the ASM file should be excluding the main SW part? Is there a web site where I can get this "skeleton" structure? Basically I jusy want open a skeleton ASM file and start adding a few lines of code in the main body to get going.
I have opened up a tutorial ASM file and deleted the main body of SW as shown below. Can this suffice as being the "skeleton" structure for all future programs that I write?
list p=12F675 ; list directive to define processor
#include <p12f675.inc> ; processor specific variable definitions
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_ON & _PWRTE_ON & _INTRC_OSC_NOCLKOUT & _MCLRE_OFF & _CPD_OFF
;****************************************************************************
;Defines
;****************************************************************************
;****************************************************************************
;General Purpose Registers (GPR's)
;****************************************************************************
;****************************************************************************
;Reset Vector
;****************************************************************************
ORG 0x000 ; processor reset vector
nop ; required by in circuit debugger
goto Init ; go to beginning of program
;****************************************************************************
;Interrupt Vector
;****************************************************************************
ORG 0x004
return ; interrupt trap - return without re-enabling
;****************************************************************************
;Initialization
;****************************************************************************
;****************************************************************************
;Main
;****************************************************************************
Main
END