Part Number: ADS8684
Hello,
I am using ADS8684 with dspic33 microcontroller its integrated with channel 0, when I scan channel 0 the ADC values keep changes even if voltage remain same.
My code is as per below:
void adcInit()
{
adcCmdreg(MAN_Ch_0);
}
void main()
{
uint16_t result = 0;
UINT8 MSB = 0;
UINT8 LSB = 0;
while(1)
{
adcCS_Low();
SPIPut(2,reg);
SPIPut(2,0);
MSB = SPIPut(2,0);
LSB = SPIPut(2,0);
adcCS_High();
result = ( MSB << 8) | LSB;
}
}
Any Help.
Thanks
Rakesh