This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIDA-010054: A concern in ADC configuration in terms of DAB routine

Part Number: TIDA-010054

Hi,

     TIDA-010054 includes a software and hardware developing kit. While I was reading and checking the routines, I found some problems in terms of ADC configuration. The function is void DAB_HAL_setupADC(void) in source file dab_hal.c, as shown below.

     

     My question are:

     1. Why the S&H time of primary Voltage is 40, but the S&H time of all the other three signals is identical to 30?

     2. The prim and sec voltages utilize ADC_C and ADC_B respectively, and the prim and sec currents do the same, and the trigger sources of the four signals are the same, which is EPWM1_SOCA. Should the S&H time of primary Voltage be 30, the four signals own same S&H time. Then why not configure the SOC values of prim and sec voltages to be 0 and  the SOC values of prim and sec currents to be 1, which leads to synchrounous sampling easily? Besides, now that the prim and sec sides do not use a same ADC module, then it makes nonsense that setting SOC values through 0,1,2,3. This operation can neither achieve sequetial sampling nor the better synchrounous sampling. 

Regards

Zijian

---------

liuzijian@zju.edu.cn