Part Number: TMS320F280049C
Tool/software: TI C/C++ Compiler
Hi,
I was trying to configure two ADC registers simultaneously, ADCA and ADCB with 4 pins for each register. The soc and initialization of both the registers have been kept same except for the letters 'a' and 'b' as required. Both are running in INT1 interrupt mode and when executed, both the ISR gets executed. I'm giving 2.5V to every pin with 3.3V as reference for both registers. I observed that ADCA result register shows the corresponding value of 2.2v (around 3102) when I hover on the register during execution. But I don't see the same happening with ADCB result register. They show 4095. When I give 0V instead of 2.5V, the value seems to be 0 as well. I have used the following line during initialization.
SetVREF(ADC_ADCB, ADC_INTERNAL, ADC_VREF3P3);
I'm confused to why it is not reading the values properly. I'm not sure if there is some command that I've been missing. Please help me sort this out.
Regards
Reshma