Can`t start PWM

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

Hi !

   

Please help to start PWM with unconfigured mode. If I configure it as Timer/Counter it`s work but when I change it to unconfigured  TCPWM and use API to configure and start it`s not work. What a point ?

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yor call to PWM_Start() API will overwrite your previous settings. Use at the very first call PWM_Init() which will not start the component but will do (as the name says) the initialization. Then perform your settings and at last call PWM_Enable().

   

 

   

Bob

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Yor call to PWM_Start() API will overwrite your previous settings. Use at the very first call PWM_Init() which will not start the component but will do (as the name says) the initialization. Then perform your settings and at last call PWM_Enable().

   

 

   

Bob

0 Likes
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

Thanks !

0 Likes