Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
According to the TIDM-02010 Schematic, the RC values for Vac are as follows:
- Cs (Input Capacitance): 6.8 nF
- Rs (Input Resistance): 150 Ohms
When using the Sample Time Calculator in SysConfig (with a Settling Error [LSB] of 0.5), it calculates the Sample Window as 335 SYSCLK counts, which is approximately 2790.61 ns.
However, in the code, a Sample Window of 20 is used (#define PFC_V_ADC_SAMPLE_WINDOW 20) for PFC VAC ADC.
I am having difficulty understanding the calculation behind this discrepancy. Could you please explain the reasoning behind this?
Additionally, I would appreciate it if you could help clarify the concept of Settling Error, as it is not entirely clear to me.
Thank you!