In your reply to AMIT, you said "I am going to try the same thing like you .." Well, in AMIT's code, P2.1 and P2.2 have identical waveform. Thus all 4 arms of your H bridge will be turned on at the same time. It is possible to generate two different PWMs on two different Port 2 pins. But for the 20-pin package , it is not possible to generate two different PWM signals on two different Port1 pins. See MSP430G2553 Data-sheet Table 12. Timer0_A3 Signal Connections and Table 13. Timer1_A3 Signal Connections. (Edited)
↧