Part Number: MSP430G2553
Hi TI Guys,
I want to use MSP430G2553 to generate a PWM(HardWare methond) with 32-bit resolution, do you have any wonderfull idea? Thanks. :)
B.R.
SeaFease
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.
Part Number: MSP430G2553
Hi TI Guys,
I want to use MSP430G2553 to generate a PWM(HardWare methond) with 32-bit resolution, do you have any wonderfull idea? Thanks. :)
B.R.
SeaFease
As I check Timer_A on G2553 is 16-bit.
Can you tell me you application? Maybe you can use software to generate a 32-bit PWM.
Eason
Eason Zhou said:Can you tell me you application? Maybe you can use software to generate a 32-bit PWM.
Hi Eason,
I try to drive a moto ESC, and the speed is quite senstive because of the pulse-width, so I need to gnereate a high-resolution PWM.
I saw the appnote slaa726, it has given me some useful clue. However,it just help combine a 32-bit Timer. Besides, I am worried about the ISR
will take a side effect on resolution, if I chose a SW way. Thanks.
Keith Barkley said:I am not sure it is doable with any MSP430.
I see some MSP430s have TimerD( F5132 for example), it looks like works on my application. However, those MSP430s with TimerD are much more expensive than the G2xx . In additon, it looks a little waste on my application of using MSP430F51x2.
Keith Barkley said:At a 1 kHz repetition rate, one "bit" is 2.3 e-13 seconds, or less than a femtosecond!
Haha...:) In fact, I just need a resolution a little better than 16-bits .
Yes, slaa726 just tell you how to create a 32-bit timer, it is not a 32-bit resolution PWM. You need to control the IO switch by yourself.
If you don't need to handle the dead area on MCU side. I think it is OK to use ISR software to control the IO switch.
For ISR latency, you can refer to this. The clock equals to system clock. you can use it or just use GPIO switch to evaluate the time of your IAR.
**Attention** This is a public forum