Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Andrew_Q
Level 1
Level 1
5 replies posted 5 sign-ins First like received

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.

2 Replies
ugo_8a
Employee
Employee
10 solutions authored 25 sign-ins 25 replies posted

Hi, each ADC group has a trigger and a gate as shown in the picture 

ugo_8a_0-1642785276083.png

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.

0 Likes

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.

0 Likes