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

Incorrect example files are on the ST website for STEVAL-ISA164 STNRG388A digital controller eval board. If someone could create a simple example to fix missing Example 4 we would reward you for your time

I wasn't sure where to post this request for the STNRG digital control IC example files so I'm reposting in STM8 after getting no responses in Power Management or from technical support in a weekThere is a link to download 5 sample files for the STLU...

Hey guys, I want to controll motors via joystick. Unfortunately, when I connect joystick to my STM8S103F3 analogue pins it reads 800 in the middle position instead of 512.

As the result, the right side has very short run (it reaches 1023 in one sixth of travel). The same for Y axis, the same with another joystick. Both joysticks work properly with arduino - middle 520 (or so). Is there any (obvious) reason; how can I r...

RRozu.1 by Associate
  • 569 Views
  • 0 replies
  • 0 kudos

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
  • 973 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
  • 751 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
  • 777 Views
  • 0 replies
  • 0 kudos