superbrew
Member
Hello, I am using an 18F4553 to read a 0-5V input on RA0. Right now the input is from a 10K pot. The result is being displayed on a GLCD in bar graph form. This part is working fine. I am also reading temperature from a MAX6675 K type thermocouple converter. This is also being displayed on the GLCD. The problem that I am having is that when the ADC is reading lower values, like less than 500, the MAX6675 stops updating on the display. As soon as I move the ADC pot to the upper part of its range, the MAX6675 starts working again.
Here are the config settings that I am using:
#pragma config FOSC = HSPLL_HS, WDT = OFF, LVP = OFF
TRISA = 0x07;
TRISB = 0x00;
TRISC = 0x44;
TRISD = 0x00;
//ADC Setup
ADCON0 = 0x01;
ADCON1 = 0x0c;
ADCON2 = 0x80;
I am sure that it is some peripheral, but I can't figure it out. Thanks in advance.
Here are the config settings that I am using:
#pragma config FOSC = HSPLL_HS, WDT = OFF, LVP = OFF
TRISA = 0x07;
TRISB = 0x00;
TRISC = 0x44;
TRISD = 0x00;
//ADC Setup
ADCON0 = 0x01;
ADCON1 = 0x0c;
ADCON2 = 0x80;
I am sure that it is some peripheral, but I can't figure it out. Thanks in advance.