Changing PWM pin on attiny404 #1034
Answered
by
grandaspanna
nhansendev
asked this question in
Q&A
-
I'm simply trying to generate a 1kHz PWM signal of variable duty cycle on pin PA4 of an attiny404. After following the TCA documentation from Microchip I think I have everything set, but there's no output on PA4. Is this right so far? I'm skeptical about my use of PORTMUX.CTRLC:
|
Beta Was this translation helpful? Give feedback.
Answered by
grandaspanna
Nov 26, 2023
Replies: 1 comment 7 replies
-
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to be in "split mode" to use WO3-WO5, which the core does by default. Limits resolution to 8 bits, which may or may not impact your needs.
The guide you linked does have examples on split mode.
I think if you use the PWM in the core, it supports output on PA4 by default. There are some other threads here on how to tweak frequency/duty cycle in the core.