TC NPWM MODE (ATSAME51G19A)

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


MCU : ATSAME51G49A

 

 

I want to output waveform with adjustable duty cycle using PA05 port

 

 

Below is my configuration

 

 

TC_GCLK is 120M

TC0 is configured as 32-bit, NPWM mode

But with the above configuration, PA05 has no output waveform.

 

 

If I use MPWM mode, by changing CC0 and CC1, the waveform can be output correctly, and it can also meet my requirements.
I'm just trying to figure out, why can't NPWM mode output a waveform?

 

 

 

 

 

 

 

 

 

 

 

This topic has a solution.
Last Edited: Sat. May 14, 2022 - 09:42 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It will have a very long period, look at the table under "48.7.1.9 Waveform Generation Control" to get where the TOP value (which controls the period) comes from in the different modes.

/Lars

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanks, i see