1 ;**********************************************************************
3 ; subroutines for controlling the per-pic LED (pin 21, DS100)
14 ;----------------------------------------
16 ; makes the LED be red (or orange), no matter its previous state
17 ; no RAM locations used or modified
19 bcf LATD, 2, 0 ; output low
20 bcf TRISD, 2, 0 ; output enabled
23 ;----------------------------------------
25 ; makes the LED be green (or blue), no matter its previous state
26 ; no RAM locations used or modified
28 bsf LATD, 2, 0 ; output high
29 bcf TRISD, 2, 0 ; output enabled
32 ;----------------------------------------
34 ; makes the LED be black (off), no matter its previous state
35 ; no RAM locations used or modified
37 bsf TRISD, 2, 0 ; disable flasher output