Question: How do I generate a controlled PWM duty cycle output for a Timer0_A3 Block#0 pin?
I need a controlled PWM duty cycle for the pin P1.5 shown below.
My pin on board is connected to P1.5 (MSP430G2333) which is connected to timer0_A3 Block#0.
Block#0 is the key, because in this block, because output modes 2, 3, 6, 7 do not work with Block#0
In Block#0, these Output modes (only) work:
0) PWM output mode 0 -- OUT bit value
1) PWM output mode 1 -- Set
4) PWM output mode 4 -- Toggle
5) PWM output mode 5 -- Reset
There are three usable Counting Modes:
1) Up Mode
2) Continuous Mode
3) Up/Down Mode
My current thinking is along the lines of Continuous Mode counting up to 0xFFFF and using a different TACCR0 value, in Toggle mode, for the duty cycle. Continuous Mode periods are too slow for my circuit.
Another thought is to use Up Mode. This has a faster overall period (with the SMCLK) in Toggle Mode but I do not think that TACCR0 will work here for duty cycle percentage -- just the overall period with the same duty cycle -- not changeable.
Third, ignore all of my thoughts listed here and, do you have an answer for the question at the top?
Thanks.