SAMA5D3 Timer Counter fault output as PWM fault input

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SAMA5D3 datasheet section 48.5.4 states that

 

The PWM receives faults from
• PIO inputs
• the PMC
• the ADC controller
• Timer/Counters

 

followed by Table 48-4, listing the fault input IDs corresponding to PIO inputs, PMC and ADC.

But there are no Fault Input IDs assigned to the Timer/Counter fault outputs.

 

Can I assume that TC0 and TC1 fault outputs go to PWM fault inputs 6 and 7?

 

I would like to create an output waveform on PWMH0 like this:

 

  _   _   _   _   _                          _   _   _   _   _
_| |_| |_| |_| |_| |________________________| |_| |_| |_| |_| |________________________  PWM output
_                   ________________________                   ________________________
 |_________________|                        |_________________|                          TC fault output
 . . .             .                        .
 |-| .  PWM duty   .                        .
 |---|  PWM freq   .                        .
 |-----------------|  TC duty cycle         .
 |------------------------------------------|  TC frequency

 

The idea is to set up a TC to generate a signal on its fault output, forcing the PWM output periodically low. Is it possible at all, or does the TC fault output remain stuck high until the condition is cleared by software? Or should I rather forget this internal fault connection, and add an external connection from a TC wave output to a PWM fault input?

 

Is it possible to do it within a TC, somehow generating the above output waveform? How? I'm trying to wrap my head around the BURST functionality of the TCs now.

Attachment(s): 

Last Edited: Wed. May 19, 2021 - 01:35 PM