newelltech
Full Member level 4
You're not trying very hard to figure this out. Why can't you make the DVM measurement?chevymn1964 said:Tested the thermistor and the resistance decreces as it gets warmer...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You're not trying very hard to figure this out. Why can't you make the DVM measurement?chevymn1964 said:Tested the thermistor and the resistance decreces as it gets warmer...
chevymn1964 said:ok, here's the scoop.... The problems I am having are after I made some changes to the original software... The changes I made are when the subroutine DisplayTemp is called. When it is called for the 3rd time and when the clrf PCLATH, call CTable are called apon the program gets stuck in a loop... So, I deleted the clrf PCLATH wich worked but the temp is displayed -50 and so on... lol sorry for the mess everone, Im new to this programming stuff and I'm learning as I go lol Has anyone loaded this code and tryed to run it in MPLAB?
; Parameters: ADC reading in W
; Returns: Nothing
DisplayTemp
clrf PCLATH ;Conversion table is in 1st page
;.....ROUTINE TO CHECK VALUE
CHECK
movwf Temp3
andlw b'11111000'
xorlw b'11111000'
btfss STATUS,Z
goto RESTORE
goto CORRECT_VALUE
;.......IF VALUE EXCEEDS 0XF8, MAKE IT 0XF8
CORRECT_VALUE
movlw 0XF8
goto VERIFIED
;........OTHERWISE RESTORE ORIGINAL VALUE
RESTORE
movf Temp3,W
goto VERIFIED
;...........................
VERIFIED call CTable ;Goto jump table for Celsius Temperature
movwf L_Byte ;Load binary data for BCD conversion
LowAlarm equ 28 ;Stored as ADC values, not actual temps.
AlarmOn equ 27
Temp2 equ 26 ;temp storage
Temp3 equ 25 ;Temp storage for table correction