Using a GTM / TOM as a source for eDMA
Hi all!!!
I have a problem with GTM / TOM and eDMA.
I am using a SPC58-BERNINA (STEVAL-TTM004V1) and SPC5Studio.
My goal is to start a copy via eDMA channel when an interrupt of a TOM channel is triggered (suppose CN0 == CM0).
In my example I am using GTM TOM1-CH7.
Reading table 40 of paragraph 7.3.6.6 I saw that GTM_TOM1_IRQ7 is part of DMACHMUX_3 line 39 so I have chosen eDMA's channel 48 and I initialized DMACHMUX_3 with source 39 (27h).
In the same project I am using other eDMA channels, the "start" of which is determined by the ADC_SAR_***_EOC without problems.
Del TOM I have enabled interrupts and I have verified that the interrupt is actually called. However, I cannot direct this signal to the eDMA.
It should be very simple and straightforward, DMACHMUX has a lot of GTM inputs, but I couldn't.
Can someone help me?
Thanks,
Gionatha


