Hi Scott,
i'm having some trouble reading the ADCs. I'm using the ADC_Handler function in order to do that. As far as I understand this function uses this command: "demod1 = (DEMOD1_DATA >> 8); //read 16bit ADC1 value" to read the 4x 1Byte of DEMOD1_DATA1 ... DEMOD1_DATA4. With the command the 8Bits of DATA4 become irrelevant and 24Bits remain. But the varaible "demod1" is only able to handle 16bit so its missing the value of DATA1.
This causes a value of 0 in my DAC_Value and DAC_REG0.
These are my configs for ADC and DAC:
ADC_Config(0x05, 0x05, 0x01, 0x08, 0x08);
DAC_Config(0x01, 0x00, 0x11);
My goal was to read the ADC values of S1 and S2 on PGA970 and work with them further on. Could you help me with that?