I want on the alarm at 60oC so i duno how to write the commet at My progrme
Hello....who can help me below is my source code, and i using 16F877A pic and i using the temperature sensor is gc-c 103 and now i want add the alarm system is (buzzer) in this system so i only want the port D to on the alarm when the temperature going to high temperature around 60oC the alarm will automative on and lcdout will show too hot or warning after 15s no ppl to slove the problme the alarm system will stop it all. so wat the comment i need to write down...i really no ideal to write it i hope all the genius can help me slove this problme....urgent.........!!!! thanks all the genius here frist !
include"modedefs.bas"
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 1
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
DEFINE OSC 4
DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
trisa = $ff :
trisc = 0 :
pause 2000
LCDOUT 254 , 1 , " WELCOME MY "
LCDOUT 254 , 192 , 2 , " MONITOR SYSTEM "
pause 3000
LCDOUT 254 , 1 , " MY STARTING "
LCDOUT 254 , 192 , "TEMP IS: "
TRISA = 255
TRISC.6 = 0
TRISD = 0
TRISA.0 = 1
b0 VAR BYTE
MAIN:
ADCON1 = 3
ADCIN 0 , B0
lcdout 254, 201, "<"
if b0 = 0 then lcdout 254, 201, " "
lcdout 254, 202, DEC ( b0 ) , "'C"
serout portc.6, n2400, [#b0]
pause 5000
goto main
END