; Blinking "test" program for the PIC16F88
; and other similar IC's
list p=16F88
include "p16f88.inc"
; __config _CONFIG1, 0x3F18
; Similar to above, except maybe not the same configuration, but whatever
; see p16f88.inc for the values to use. Also, the 88 has 2 config addresses,
; so you need to specify _CONFIG1 or _CONFIG2, where on other PICs just __config
; is enough
__config _CONFIG1, _WDT_OFF & _INTRC_IO & _CP_OFF & _LVP_OFF & _MCLR_OFF
COUNT equ 0x20
PORTVAL equ 0x21
org 0x00
; Set stuff up
bsf STATUS, 5
movlw 0x00
movwf TRISA
bcf STATUS, 5
Start incf PORTVAL
movfw PORTVAL
movwf PORTA
call Delay
goto Start
Delay
Loop1 decfsz COUNT, 1
goto Loop1
Loop2 decfsz COUNT, 1
goto Loop2
return
end