Select Page

Boilerplate for Assembly on the PIC18F452

;******************************************************************************
; Introduction to Assembly Programming
; Title: 
; Author: Tim Norton
; Date: 
; 
; Include any special notes that will help you or others setup the 
; 

;******************************************************************************
; NOTES
;******************************************************************************
; Add information that will remind you or anyone else working on your code 
; of setup details
; EG - what switches are required to be turned on.
; what each port does

;******************************************************************************
; INCLUDES AND ASSEMBLER DIRECTIVES
;******************************************************************************
#include <p18f452.inc>
config OSC = HS
config BOR = OFF, WDT = OFF, LVP = OFF
org 0x0000 ; reset vector
goto start

;******************************************************************************
; VARIABLES
;******************************************************************************

;******************************************************************************
; INCLUDES
;******************************************************************************

;******************************************************************************
; START PROGRAM
;******************************************************************************
start:

;******************************************************************************
; INITIALISATION
;******************************************************************************

;******************************************************************************
; MAIN PROGRAM LOOP
;******************************************************************************

;******************************************************************************
; FUNCTIONS
;******************************************************************************

;******************************************************************************
; END
;******************************************************************************
end