STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How can this code be simplified?

Can the TIM1 part of this tutorial be simplified as follows?https://embedded-lab.com/blog/continuing-stm8-microcontroller-expedition/6/Remove everything related to the the interrupt, because TIM1_GetCapture2() can be called at any time from main(). I...

lyoy by Associate III
  • 599 Views
  • 0 replies
  • 0 kudos

What is going on with this PWM output timer 2?

I am following this tutorial and trying to get a complete understanding of the code:https://embedded-lab.com/blog/continuing-stm8-microcontroller-expedition/6/I have a few questions regarding the TIM2_setup(void) function:1 Why is channel 1 and chann...

lyoy by Associate III
  • 669 Views
  • 0 replies
  • 0 kudos

Resolved! Simple wiring of STM8S003F3P6TR for one input and one output

GreetingsI'm using an STM8S003F3 TSSOP20 (my first STMicro) for a simple project with one input (low frequency PWM) and one output (high frequency PWM). I seek to keep it as simple as possible. Since I'm not familiar with STMicro MCU's, I would like ...

lyoy by Associate III
  • 883 Views
  • 5 replies
  • 0 kudos

How to calculate the PPM deviation for 512Hz?

Hi ST team,I referred the Application notes from the ST's for RTC temperature compensation Using STM8AL3189 MCU , Which has both positive and negative ppm compensation using CALM and CALPFrom the APP notes, ACC(ppm) = crystal deviation + k * (T -T0)^...

0693W00000JPQKNQA5.png

How to clear/reset timer WITHOUT generating/setting UIF flag??

In documentation for timers on S103/S105/S003 it says that bit URS or register TIMx_CR1 should allow that CNTR=x or EGR |= UG update the timer counter WITHOUT setting the UIF flag: TIM2:URS: Update request source0: When enabled by the UDIS bit, the U...

MCuli.1 by Associate
  • 731 Views
  • 0 replies
  • 0 kudos