STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8S I2C master crashing on I2C_GenerateSTART(ENABLE);

I am trying to run example code for i2c master and slave, provided in Stm standard peripheral library from https://www.st.com/en/embedded-software/stsw-stm8069.htmlBut the master keeps crahing at I2C_GenerateSTART API call.I2C_ITConfig enableInterru...

SSaro.1 by Associate II
  • 596 Views
  • 0 replies
  • 0 kudos

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
  • 456 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
  • 519 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
  • 579 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