#include "p16lf15313.inc"
CONFIG1 = _FEXTOSC_OFF & _RSTOSC_HFINT32 & _CLKOUTEN_OFF & _CSWEN_ON & _FCMEN_ON
CONFIG2 = _MCLRE_OFF & _PWRTE_OFF & _LPBOREN_OFF & _BOREN_ON & _BORV_LO & _ZCD_OFF & _PPS1WAY_ON & _STVREN_ON
CONFIG3 = _WDTCPS_WDTCPS_31 & _WDTE_OFF & _WDTCWS_WDTCWS_7 & _WDTCCS_SC
CONFIG4 = _BBSIZE_BB512 & _BBEN_OFF & _SAFEN_OFF & _WRTAPP_OFF & _WRTB_OFF & _WRTC_OFF & _WRTSAF_OFF & _LVP_ON
CONFIG5 = _CP_OFF
org 0
goto Init
org 100
Init:
movlw b'00000000'
movwf ANSELA
movlw b'00000000'
movwf ODCONA
movlw b'00000000'
movwf LATA
movlw b'00000000'
movwf TRISA
Main:
bsf PORTA,4 ;0,1,2,4 Works for these but I also need 3 and 5
nop
nop
bcf PORTA,4
goto Main
end