Hi, Forgive me, your questions are legitimate, I tried to post a surrogate code so as not to stretch too much, but I think I have created confusion.
anyway :
DatoEE is never defined
i see that no data is stored to eeprom therefore tmax and tmin = 255
' EEPROM Locations
'================================================= ==========================
DATA @0,16 ' 16 Tenp min.
DATA @1,30 ' 30 Temp Max.
'================================================= ==========================
then temp is 20 to 24 °C (ambiental)
Tmax is set 30°C
the configuration is
' -------- bit a bit controllo 0=output 1=input
INTCON = 0 ' NO INTERRUPT
ADCON1 = 001110 '
ADCON0 = 000101 'Disable Converter Module
ANSEL = 000001 'Disable Inputs Tranne AN0
OSCCON = 100000 'Internal RC set to 4MHZ
CMCON = 7 '
'76543210
TRISA = 111111 ' impostazioni INP/OUT
TRISB = 000000 ' delle porte
'----------------------------------------------------
the string
PAUSE 50 ' Wait 1/4 seconds per reading
only reports an incorrect comment
so my problem is, i believe:
temperature is a word
Tmax is a byte
and I don't understand how compare the values
Bookmarks