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

How and when to use some functions of ADC - STM8L052C6

Hello guysI am learning to use the peripheral ADC on uC called STM8L052C6 of the family STM8L , i have already read the chapter about ADC in the reference manual and in the datasheet. I read also the library about ADC, i mean the file .c and .h.Ther...

NMart.4 by Associate
  • 430 Views
  • 0 replies
  • 0 kudos

Resolved! How to use external crystal?

Hi, I want to run STM8S003F with an external crystal.How do I use APIs in stm8_clk?Or in which material is it described?Regards, Gotoda

gocchan by Associate III
  • 2939 Views
  • 7 replies
  • 0 kudos

How to drive bicolor LEDs by one pin.

How to drive bicolor LEDs by one pin. I think turn off LEDs when setting GPIO input. But it is not. On pin high level. What is problem.

0693W00000Ba7QlQAJ.png
ETsog.1 by Associate II
  • 2894 Views
  • 11 replies
  • 0 kudos

I am trying to develop simple spi communication between 2 stm8s. I am using same files for master and spi with main.c different. Master code compiles successfully with no errors, slave has following error inspite all syntax is proper. Any help?

Compiling main.c...cxstm8 +warn +mods0 +debug -pxp +strict -pp -ps -psa -pu -l -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\Hstm8" -clDebug\ -coDebug\ main.c#error cpstm8 stm8s.h:2525(12) missing ;#error cpstm8 stm8s_gpio.h:68(18) incomplete declar...

Upate.1 by Associate II
  • 1027 Views
  • 2 replies
  • 0 kudos

symbol _GPIO_Init not defined (Debug\main.o )

I tried the example code in this document - dm00405517-getting-started-with-the-stm8s001j3-microcontroller-stmicroelectronics.pdf, the code was://Recommendation for STM8S001J3 firmware AN5047 12/20 Rev 2 /* MAIN.C file */ #include "stm8s.h" #include ...

MQi.1 by Senior II
  • 1564 Views
  • 1 replies
  • 0 kudos

I2C SLAVE ISSUE

i2c issuei am using stm8s207m8t6 controller i need 30 slaves and master master side code ok but issue in slave when initilize i2cI2C_Init(300000, 0X30, I2C_DUTYCYCLE_2, I2C_ACK_CURR, I2C_ADDMODE_7BIT, 16);if use 0x30 slave address slave respond. if c...

gm.1 by Associate
  • 599 Views
  • 0 replies
  • 1 kudos