Other Parts Discussed in Thread: LM20
Hello,
1) what is the meaning of ADC_PIN_UNDETERMINED, is the test failed or not?
2) SafeTI user manual requires that sampling time must be exactly 1us, is this correct?
NOTE: The application must ensure that the sampling time of ADC event group is set to 1us before calling this API
3) Does Cext affect to self test so that sampling time should be set according to it. What would be correct sampling time in case Cext is a) 200nF b) 100nF?
4) Why self test looks to work in case I put ADCLK as slow as possible (prescale 31) -> 290,91ns cycle time and then select 1us as sample time which results to 1,163us actual sample time (tTotal is in this case 9,993us) but does not work (returns undetermined) in case ADCLK is set to 100ns (prescale 10) and sample time is 1us as required in safeTI user manual (tTotal is 4,64us in this case)? It does not help if sample time is increased say to 1,5us. (tTotal 5,64us) or to 4us (tTotal 10,64us) where in 4us case the total time is longer than with slower ADCLK case which looks to work
5) Why this test looks to occasionally pass and in next debugger reset it may fail. We have 2 channels which both has temperature sensors connected and 200nF case fails much often than other but both fails in case ADC CLK is 100ns and looks to work with slowest possible ADCLK. Basically you will need to some time easily run the test at least 5 times to get that error....
Actual reading of the sensors looks to work dispite of the settings, both sensors gives consistent readings which are also inside tolerance compared to other sensors so actual ADC functionality looks to work, the problem is only that SafeTI testing.
Selftest is passed reading like this is received (ADCLK prescale 31 == 290,91ns) - this looks to work always
Vu 1494
Vn 1489
Vd 1486
refhi 4095
reflo 0
And in case of failure ADCLK 100ns the Vn == Vu but range of values stays pretty much same
Vu 1511
Vn 1511
Vd 1510
refhi 4095
reflo 0
With 100ns ADCLK and 200ns sample time (which violates EV ACQ, should be 300ns?) the refHI rises only to 3957 but still these case may sometimes success with circuit which has 100nF (and also with that 200nF circiut in case the capasitor is changed to 100nF), in that case Vn is always Vu-1 and Vd is Vn-2.
There was some other threads like this but that didn't gave 100% understanding are we doing something wrong or not? Obviously somewhere are problem but where and would there be problems in multiple areas like requiring 1us time in manual and in out sampling config...
https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/356661?tisearch=e2e-quicksearch&keymatch=ADC%20self%20test
Circuit 1 (300R resistor and 100nF capasitor):
vREf---meas_chip---300R------------ADPIN23
|| 100nF
GND
Circuit 2 (10K resistor and 200nF capasitor):
vREF---10K-------------------ADPIN0
| || 200nF
10k NTC GND
GND