Skip to main content
Visitor II
March 30, 2021
Question

Getting PWM counter value at STM8S003F3.

  • March 30, 2021
  • 1 reply
  • 1167 views

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

    This topic has been closed for replies.

    1 reply

    Visitor II
    April 7, 2021

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

    TIM1_ITConfig(TIM1_IT_UPDATE, ENABLE);

    and where they enable global interrupts:

    enableInterrupts();