STM8 MCUs

Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.

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
  • 1081 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
  • 891 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
  • 871 Views
  • 0 replies
  • 0 kudos

Resolved! Can an optocoupler be connected between MCU pin and ground without resistor?

My current design has +5V connected to an optocoupler output pin, the other optocoupler pin is connected to ground through a 25k resistor. (External pull down) The connection point between the optocoupler and the resistor is connected to the MCU pin ...

lyoy by Associate III
  • 1797 Views
  • 3 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
  • 1485 Views
  • 5 replies
  • 0 kudos