This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I have been using the Launchpad to generate a PWM signal from pin P1.2. My question is which pins can i generate PWM from??
I have read the terminal functions table in this document http://focus.ti.com/lit/ds/symlink/msp430g2231.pdf but still am a little unsure.
Can i generate PWM from any GPIO or is it only on pins which have the following description "Timer0_A, capture: CCI0A input, compare: Out0 output"
Regards
Michael Dalton
All pins labeled Tx(y.)z (where x is 'A' or 'B' , y is the number of the Timer, if the MSP has more than one, and z is 0..7 for the assouciated CCR unit of this timer) can generate a hardware modulated output. These pins are the outputs of a timer CCR unit.Michael Dalton said:which pins can i generate PWM from
In case of the 2231, it is only TA1 which can generate a real PWM signal. TA0 can only generate a square wave signal.
Of course you can generate something like PWM with any GPIO pin under 100% software control.
Thanks Jens,
So for the chip below (2231), if i enable the pins properly can get the identical square wave signal out of P1.2(pin4), P1.6(pin8) and P2.6(pin13)
and for this chip (2452)
I can get a square wave out of P1.2(pin4), P1.4(pin6), P1.6(pin14) and P2.6(pin19)??
Thanks
Michael Dalton
Yes.
On 2231 and 2452, P1.2, 1.4 and 2.6 output (if configured) the same internal signal TA0.OUT1.
P1.4 on 2452 outputs different signal TA0.OUT2. It belongs to the TACCR2 unit which is not available on the 2231.
Both signals can be programmed for a different duty cyle, but will have the same PWM frequency (which is controlled by TA0CCR0, whose output signal TA0.OUT0 can be emitted on P1.1 or P1.5)
**Attention** This is a public forum