In the datasheet on ADS7128, paragraph 8.3.12 it is written:
...
The procedure for using the RMS module is outlined in the steps below:
1. Select the channel for the RMS computation using the RMS_CHID field in the RMS_CFG register.
2. Define the time over which the RMS is to be computed by configuring the RMS_SAMPLES field.
3. Start the RMS computation by setting RMS_EN to 1 in the GENERAL_CFG register.
4. The device starts computing the RMS result when the sample size defined by RMS_SAMPLES is converted
on the analog input selected for RMS computation. An additional 40 samples must be converted to complete
the RMS computation.
5. To monitor for when the RMS computation completes, poll the RMS_DONE bit in the SYSTEM_STATUS
register. The ALERT pin can also be used for requesting an interrupt by configuring the ALERT_RMS bit in
the ALERT_MAP register.
...
Please explain how to organize 40 additional samples to complete the RMS computation.
Indeed, without this addition, the flag RMS_DONE is not set and the operation is not completed...
Thank`s Sergiy Shaganian