;//**************************************************
;// PIC Setup
;//**************************************************
#include <P18F452.INC>
LIST P=PIC18F452
CONFIG OSCS=OFF, OSC=HS
CONFIG BOR=OFF, PWRT=ON, WDT=OFF
; CONFIG CCP2MX=OFF
CONFIG STVR=ON, LVP=OFF, DEBUG=ON
CONFIG CP0=OFF, CP1=OFF, CP2=OFF, CP3=OFF, CPB=OFF, CPD=OFF
CONFIG WRT0=OFF, WRT1=OFF, WRT2=OFF, WRT3=OFF, WRTC=OFF, WRTB=OFF, WRTD=OFF
CONFIG EBTR0=OFF, EBTR1=OFF, EBTR2=OFF, EBTR3=OFF, EBTRB=OFF
;//**************************************************
;// Entry Points
;//**************************************************
ORG 0x00 ;Reset Vector
GOTO START
ORG 0x08 ;High Priority Interrupt Vector
GOTO $ ;Trap
ORG 0x18 ;Low Priority Interrupt Vector
GOTO $ ;Trap
ORG 0x20
;//**************************************************
;// Program
;//**************************************************
START MOVLW 0x86 ;Make all inputs digital
MOVWF ADCON1
CLRF INTCON ;Disable all interrupts
CLRF TRISB
CLRF PORTB
BSF PORTB, RB4
GOTO $ ;Trap
END