2009-05-15 12:38 AM
Configurate the complementary output of STM8S
2011-05-17 06:01 AM
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!2011-05-17 06:01 AM
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 Bassinux2011-05-17 06:01 AM
Hi leozhang,
There is an example called ''TIM1_ComplementarySignals_DeadTime_Break_Lock'' in the STM8S Firmware package which reachs your needs ;) here is the link to the Firmware package :http://www.st.com/products/support/micro/files/stm8sfwlib.zip
Enjoy ;) Cheers, Amin [ This message was edited by: amin.agina on 15-05-2009 13:10 ]