Hi Charudatta,
Unfortunately you mention here just half of PGA configuration.
Currently I do not see any connection between PGA and HVI configuration in your description.
Anyway, saturation for signal smaller than 2.4 and bigger than 2.6 look correct.
The output voltage for PGA_OUT as a function of PGAIN, PGAREF, gain and offset is calculated as follows:
VPGA_OUT = VPGAREF + APGA * (VPGAIN - VPGAREF + Voffset)
I suppose now that you use reference voltage 2.5V. If we will omit offset and fill the values, we will get:
VPGA_OUT= 2.5V+40*(2.4V-2.5V+0) = -1.5V
VPGA_OUT= 2.5V+40*(2.6V-2.5V+0) = 6.5V
These values are really out of 0V..5V range (saturation), despite on fact that sign don’t fit to your description.
The ADC works with some delays and latencies. For example:
“When the ADC is enabled the bits of ADCFLWCTL register can be modified after a latency time of three Bus Clock cycles.”
“Restart Mode: When the Restart Event has been processed (initial command of current CSL is loaded) it takes two Bus Clock cycles plus two ADC conversion clock cycles (pump phase) from the Trigger Event (bit TRIG set) until the select channel starts to sample.”
…
The sampling time is defined by SMP[4:0] bits in ADCCMD_2 (could be specified for every single command) and ADC clock. The whole ATD Conversion Period (for single ADC command) could be configured this way to 16-36 ADC clock cycles with 8 bit resolution or 18-38 ADC clock cycles with 10 bit resolution.
Of course, we have to sum all conversions (all commands) together for getting the whole command sequence list length.
Note: This simply sum suppose just one sequence of conversion commands in ADC command list.
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------