Hi.
I am fairly new to MSP430's but have I have programmed a state machine and a whole lot of functions into this chip so far without any problems so far.
I am using Timer0 to generate a 1ms timer tick through an interrupt, which is used for a whole lot of timing events in the main() - no issues and it works nicely.
The only thing in this project now is to generate two PWM's - one to port P2.0 and the other to port P2.1. They can both have a have a period of 1ms. The CPU clock is 1MHz.
I just need to vary the duty cycles on each of these outputs independently. Reading the datasheet, I think this is possible.
How can I generate the two PWM outputs without messing up Timer0? Can I use the second timer to generate the two independent PWM duty cycles? If so, how should the registers be set up? Any suggestions much appreciated!
regards,
Dave