Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hello,
I am working on C2000 real-time MCU Safety Mechanisms where I came across ADC to DAC loopback test on the TMS320F2800157 microcontroller.
I want to implement the DAC to ADC loopback test where I can satisfy these requirements:
1- The software shall verify correct ADC conversion for the used channels from the following ADC channels ADCIN0..ADCIN20.
2. The software shall verify correct ADC conversion by performing an ADC-DAC loopback test.
3. The software shall perform an ADC-DAC loopback test by Enabling loopback mode using ADCLOOPBACK.ENLB2ADCA and ADCLOOPBACK.ENLB2ADCC.
4. The software shall Set INTERNALTESTCTL.TESTSEL to 0x5 and ensuring minimum sampling window size (ACQPS)is more than 4.27 μs.
5. The software shall Configure the CMPSS1 DAC to supply known voltages to the ADC and verifying the conversion results.
6. The software shall Clear the ADCLOOPBACK.ENLB2ADCA and ADCLOOPBACK.ENLB2ADCC bits after the test.
7. The software shall execute [TBD] in case of incorrect ADC conversion detected.
I want to know what approach or steps should I be taking to implement this or if there any example that implement this I can look at