cancel
Showing results for 
Search instead for 
Did you mean: 

Getting PWM counter value at STM8S003F3.

MNasc.1
Associate

Our customer need some help to develop their application using STM8S003F3.

They are using Timer 1 as PWM generator at 125kHz but, does't have success to implement a overflow counter. They told us that the PWM pulse generator are working well. Did you guys have some example of how to implement this counter at the timer 1?

They are using IAR to develop their application.

They send to us some shots of their development:

0693W000008yHvVQAU.jpg0693W000008yHvBQAU.jpg

1 REPLY 1
WilkoL
Senior

I do not see where they enable interrupts, something like this:

TIM1_ITConfig(TIM1_IT_UPDATE, ENABLE);

and where they enable global interrupts:

enableInterrupts();