Hi,
I am trying to use HET1_14 to trigger the ADC1 Group1 conversion. Fifo-Size is 2, two channels are enabled for conversion. To make sure the configuration is ok, I started triggering the conversion by software. Everything works fine, the interrupt is being executed. However, when I switch to HW-tiggered conversion the interrupt routine is entered only a couple of times. HET1_14 is configured as PWM (period 10ms, Duty 50%). Measuring the output with a scope shows the expected signal. Since everything works as expected in SW-triggered mode I would expect the settings to be correct.
The application note SPNA227 shows how to use the ADC HW-trigger. It surprises me that the application note shows to configure the ADC to sw-trigger mode even though the example is supposed to show a hw-triggered example: I am wondering if there is something I am missing, it seems easy on first glance.
The only change I make in code is the fact that adcStartConversion(adcREG1, adcGROUP1) is called only once after everything is setup, not cyclic anymore, which I am pretty sure is correct.
Here are the registers before calling adcStartConversion()
Halcogen-Settings (4.05.02)
Regards,
Juerge