1 ;**********************************************************************
3 ; subroutines for controlling the per-pic LED (pin 21, DS100)
9 ;----------------------------------------
11 ; makes the LED be red (or orange), no matter its previous state
12 ; no RAM locations used or modified
14 bcf LATD, 2, 0 ; output low
15 bcf TRISD, 2, 0 ; output enabled
18 ;----------------------------------------
20 ; makes the LED be green (or blue), no matter its previous state
21 ; no RAM locations used or modified
23 bsf LATD, 2, 0 ; output high
24 bcf TRISD, 2, 0 ; output enabled
27 ;----------------------------------------
29 ; makes the LED be black (off), no matter its previous state
30 ; no RAM locations used or modified
32 bsf TRISD, 2, 0 ; disable flasher output