Hi,
I have three question of TMS570LS1227 ADC.
I use CCSv5.5 & HalCoGen v03.09.00.
(1) I want to simultaneous sampling ADC1 and ADC2 to trigger the EPWM_A2.
HalCoGen is the setting as shown in the figure.
I think no problem to HalCoGen setting, but they are not set correctly it becomes PINMMR32[8]=1 & PINMMR32[9]=0.
It should be the value of the below would otherwise.
Do not support setting of PINMMR32 in HalCoGen?
(2) ADC2 is set to Rising Edge Triger. (See figure of my HalCoGen)0871.LS1227_ePWM_MibADC2.zip
but they are not set correctly it becomes ADEVSRC[EV_EDG_SEL] = 0.
It should be the value of the below would otherwise.
Do not support setting of ADC2 ADEVSRC[EV_EDG_SEL] in HalCoGen?
By the way, ADC1 has been set correctly (1) & (2).
(3) I can not solve the problem of the above, I wrote the program as attached(LS1227_ePWM_MibADC2.zip).
Now ADC1&ADC2 is running on simultaneous sampling.
But there is one problem.
ADC1&ADC2 is converted correctly in the first conversion.
However, the value of ADC1 is not correct from the second time.
(ADC2 is converted correctly second and subsequent)
Do you know the reason for this problem anyone?
Regards,
FSSer