sorel_789
Newbie level 3
thermistor site:edaboard.com -search
i'm using a 80C552 mc from Philips ( 8051 family) .. i have a thermistor.. i take it from thermaltek volcano cooler...
i want to use it for monitoring temperature while charging a battery. I want to know how can i transform the data from microcontroller in Celsius? any other idea for code? thank you anyway
i used this :
temp:
mov dptr, #0140h
mov a,#00h ; 0 logic in output register
movx @dptr,a
lcall wait ;wait for discharge the capacitor
mov a,#01h
movx #@dptr,a ; 1 logic in output register
mov dptr,#0160h ; the address to read the termistor
setb TR0 ;start timer
num: movx a,@dptr
jnb acc.0,num ;wait while voltage on C is 1 logic
clr TR0 ;stop timer
send_data_to_lcd
jmp temp
i'm using a 80C552 mc from Philips ( 8051 family) .. i have a thermistor.. i take it from thermaltek volcano cooler...
i want to use it for monitoring temperature while charging a battery. I want to know how can i transform the data from microcontroller in Celsius? any other idea for code? thank you anyway
i used this :
temp:
mov dptr, #0140h
mov a,#00h ; 0 logic in output register
movx @dptr,a
lcall wait ;wait for discharge the capacitor
mov a,#01h
movx #@dptr,a ; 1 logic in output register
mov dptr,#0160h ; the address to read the termistor
setb TR0 ;start timer
num: movx a,@dptr
jnb acc.0,num ;wait while voltage on C is 1 logic
clr TR0 ;stop timer
send_data_to_lcd
jmp temp