CISC3361 Lab#8 Fire sensor test w/LED (due:3/25)


Test the Fire sensor output to LCD :

Load and run the program "fire_test.asm".

"Here" is the port assignment table, it will become more important as we continue to develop our robot.

*** Make sure you understand what the following code does...

;------------------------------------------------------- 
; chk_fire:: look at pin (d5) -- heat sensor
; 4/20/09 (efa)
;------------------------------------------------------- 
chk_fire 

   btfss portd,5   ;if(chk_fire == TRUE) bit5 is not +5volts
   goto chk_fire_if
   goto chk_fire_else

chk_fire_if
    bsf   sens,6   ; set fire, to TRUE
    goto chk_fire_endif
chk_fire_else
    bcf   sens,6   ; clear fire, to FALSE
chk_fire_endif

    return	
*** In this lab you are provided with the assembly program...

If you need reminding, here is a tutorial that shows you how to assemble, load and run your program.


Have the instructor sign off on your robot's proper function. It should:

1. Test the "Fire Detect" when sensor is exposed to sun light (IR rich source).




Proper Robot function:_____________________________________________