2019-09-17 10:29 PM
Using TIM2_TRGO to trigger DAC. That works.
Now want same TIM2_TRGO also to trigger ADC.
Is that possible ?
Regards Juergen
Solved! Go to Solution.
2019-09-18 04:31 AM
One has to set ADSTART bit, no matter if software triggered or hardware triggered...
Depending on the EXTEN [1:0] configuration bits, a conversion either starts immediately (software trigger configuration) or once a hardware trigger event occurs (hardware trigger configuration).
Sorry for bothering...
Regards Juergen
2019-09-18 02:50 AM
Still no TIM2 trigger of ADC.
DAC is running ok: TIM2 is running and triggers the DAC. DAC requests DMA and finally generates a sine wave of 200 Hz.
ADC in standstill with calibration value in DR. No trigger
Any idea regarding ADC triggering ?
Regards Juergen
2019-09-18 02:57 AM
Not sure about the G0 variant.
But be careful with the debugger. Live-watching certain peripherals registers will clear associated interrupt flags, and alter the program flow.
2019-09-18 04:31 AM
One has to set ADSTART bit, no matter if software triggered or hardware triggered...
Depending on the EXTEN [1:0] configuration bits, a conversion either starts immediately (software trigger configuration) or once a hardware trigger event occurs (hardware trigger configuration).
Sorry for bothering...
Regards Juergen