You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, i would like to use the Pins PA3 and PA5 for outputting PWM.
I would like to run at 1MHz to 8MHz internal clock (the lower the better, power saving) and i would like to output a squarewave on pin PA3 with roughly 50% dutycycle at a frequency of about 100kHz at PA3, i did play around with the TCB1.CTRLA setting it to 00 for the prescaler but it did not help, i looked up on datasheet p16 that its source is tcb1.
can i somehow set the resolution of the pwm to 1 bit? that way i could just toggle the pin right? can someone provide me with an example snippet?
additionally i would like to output a pwm of 8 bit resolution on PA5 at somewhere above 5kHz and below 30kHz, please if possible give me a code snippet here too, i will try to figure the rest out myself when i can work of a functioning code
The text was updated successfully, but these errors were encountered:
hello, i would like to use the Pins PA3 and PA5 for outputting PWM.
I would like to run at 1MHz to 8MHz internal clock (the lower the better, power saving) and i would like to output a squarewave on pin PA3 with roughly 50% dutycycle at a frequency of about 100kHz at PA3, i did play around with the TCB1.CTRLA setting it to 00 for the prescaler but it did not help, i looked up on datasheet p16 that its source is tcb1.
can i somehow set the resolution of the pwm to 1 bit? that way i could just toggle the pin right? can someone provide me with an example snippet?
additionally i would like to output a pwm of 8 bit resolution on PA5 at somewhere above 5kHz and below 30kHz, please if possible give me a code snippet here too, i will try to figure the rest out myself when i can work of a functioning code
The text was updated successfully, but these errors were encountered: