Program A : ;************************************ ; written by : John Morton * ; date : 21/07/97 * ; version : 1.0 * ; file saved as : LedOn * ; for PIC54 * ; clock frequency : 3.82 MHz * ;************************************ ; PROGRAM FUNCTION : To turn on an LED list P=16C54 include "c:\pic\p16c5x.inc" ;============ ; Declarations : porta equ 05 org 1FF goto Start org 0 ;=========== ; Subroutines : Init clrf porta ; resets Port A movlw b'0000' ; RA0 : LED, RA1-3 : not connected tris porta retlw 0 ;============= ; Program Start : Start call Init ; sets up inputs and outputs Main bsf porta, 0 ; turns on LED goto Main ; loops back to Main END