- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I have TOM generating PWM output and ADC.
How can I disable the ADC conversion for the duration of the PWM switch.
Thanks in advance.
- Labels:
-
Aurix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, each ADC group has a trigger and a gate as shown in the picture
You can use a TOM channel as trigger other channel as Gate, if the gate is closed "0" no conversion will take place.
Note: is the XTSEL register is set to 1111b then the selected gate (by GTSEL) is used as trigger source
Not everything can be a gate so there is a connection list in chapter:
28.12.4 Digital Module Connections in the TC29x.
there you will find a list of module that are connected to ADC gates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the answer!
I have eight PWM channels: TOM 1.5, 1.9, 2.1, 2.10, 2.11, 2.12, 2.13, 2.14.
I need to start gating VADC at the time of any PWM change (rise or fall) of any above TOM for a predetermined period, defined by some other (gating) timer.
So any level change from any of the listed TOMs should be OR-ed together and (re)start some gating timer (common for all PWM TOMs) that will gate the VADC.
The idea is to avoid measuring noise when PWMs are switching heavy loads.