4 ; * flashes PER-PIC-LED (pin 21) with the pattern
5 ; [ L-L-Z L-H-Z L-H-L-H-Z L-H-L-H-L-H-Z ]
6 ; where each state lasts approx. 160ms (at 20MHz clock).
7 ; * leaves all other pins set to their default states (usually Z).
9 include /usr/share/gputils/header/p18f458.inc
12 delay_countfast equ 0x00
13 delay_countmedium equ 0x01
14 delay_countslow equ 0x02
17 include clockvaries.inc
46 bcf TRISD, 2, 0 ; enable flasher output
47 bcf LATD, 2, 0 ; set to low
51 bcf TRISD, 2, 0 ; enable flasher output
52 bsf LATD, 2, 0 ; set to high
56 bsf TRISD, 2, 0 ; disable flasher output