Skip to content

AVR32DA28 analogWrite to PA0 doesn't work by default #350

Answered by SpenceKonde
grandaspanna asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I thought uit was clearly marked on the charts, but after my butchering of them it may not be as clear

The PWM code for TCA's on a Dx or future Ex part detect the state of TCAROUTEA when called, to find out if they can PWM that pin,.
During initialization, we set the initial mux to somewhere else in most cases - PORTA is the last place you want your PWM pins to be on a DA/DB! What with 2 pins taken up potentially with a crystal, and 2 more as possible mux options for TCD (and they never fixed the silicon bug that breaks the other mux options for TCD) . In DD you will be able to do the same thing with the TCDs. However, we put them on the "most otherwise useless" set of pins otherwise…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grandaspanna
Comment options

Answer selected by grandaspanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants