Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN
I have analog signals on shared channels which I want triggered in parallel.
I was following the example code per SPNA227 as far as setting the ADC Group settings. I'm not using the HET1 custom code, but the HALCoGen code.
Since I am doing two channels in parrallel I assumed to just set both ADC Group 1's to trigger on HET1_8, inline with what SPNU4991 says
When using both ADC1 and ADC2 on a shared channel, the sample windows must be identical such
that the sample windows completely match each other or non-overlapping with a minimum of 2 ADC
cycles buffer between the end of one ADC’s sample window and the start of the other ADC’s sample
window.
The VIM has both ADC1 Group 1 and ADC2 Group 1 IRQ Enabled.
When I run the project I'm unable to get the both conversion notifications to fire and it seems the one firing isn't real.
I seem to always get one adcNotification for ADC2, the intflag is set to 0x8 however the status bit doesn't seem to say the conversion is complete.
What is going on? Is that first conversion not really a conversion and no conversions are being triggred? Do I have everything configured incorrectly?
In the code I'm calling
adcInit();
hetInit();
adcEnableNotification(adcREG1, adcGROUP1);
adcEnableNotification(adcREG2, adcGROUP1);
adcResetFiFo(adcREG1, adcGROUP1);
adcResetFiFo(adcREG2, adcGROUP1);
adcStartConversion(adcREG1, adcGROUP1);
adcStartConversion(adcREG2, adcGROUP1);