Skip to main content
Visitor II
October 28, 2010
Question

STM8S105 Interrupt Execution Time (using Raisonance Ride 7)

  • October 28, 2010
  • 2 replies
  • 593 views
Posted on October 28, 2010 at 10:34

STM8S105 Interrupt Execution Time (using Raisonance Ride 7)

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:11

    Hi toh.seng_huat,

    why you don't use TIM1 in PWM mode ?

    You can run timer counter in 1ms (as example) and channel 1 in pwm: ARR = 3000 and CCR1 = 2000 and you will get your signal without caring about it in software. Your CPU will be loaded-off.

    MCU Lüfetr

    shtohAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:11

    Hi lowpowermcu,

    Actually, i'm testing on a pre-designed pcb circuit, so my timer 1 does not connect to any LEDs, only timer3 does. That's why i'm using timer3.

    Understands that setting CCR to the ratio of the ARR can get the desired outcome... As i need to show that I can use PWM mode to make the LED glow and off.

    Currently I manage to get the effect on and going.

    Thanks a lot.

    Hi toh.seng_huat,

    why you don't use TIM1 in PWM mode ?

    You can run timer counter in 1ms (as example) and channel 1 in pwm: ARR = 3000 and CCR1 = 2000 and you will get your signal without caring about it in software. Your CPU will be loaded-off.

    MCU Lüfetr