| Author | beginning argument ( Replies received: 1 ) |
| leozhang |
Posted 14-07-2008 at 11:24   |

Registered on : 07-14-2008
Messages : 1
OFF-Line
|
Dear all,
I am debugging a PWM complementary output of STM8S on a motor application, but it can't work well. I don't know what problems in the configuration of TIM1, it can output the PWM signal on CCx pin but no complementary signal on NCCx pin.
Who can give me some advice or a example of TIM1 complementary function? Thanks very much!
|
|
|
Profile
Quote
|
| bassinux |
Posted 15-11-2008 at 15:53   |

Registered on : 11-15-2008
Messages : 5
OFF-Line
|
Hi LeozHang,
NCCx pin work in the same way as CCx, you must just enable the output in the corresponding Register TIM1_CCER1 for (CC1,NCC1,CC2 and NCC3) or TIM1_CCER2 for (CC3, NCC3 and CC4).
You must also set MOE bit in TIM1_BKR register.
Best Regards
Bassinux
|
|
|
Profile
Quote
|