STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

LIS3DH Auxiliary ADC using STM8 is giving constant value

HiI am working on a project where we are reading the battery level on the ADC1 of LIS3DH. This value I need to read using STM8L051F3P. I am using SDCC compiler. I am able to read the WHO_AM_I register. I am also able to set the accelerometer threshol...

SDhare by Associate
  • 1293 Views
  • 3 replies
  • 0 kudos

I2C error handle in cosmic compiler.

Hi there.I´m using a STM8S207 with cosmic compiler.I am reading and writing a 24L64 eeprom thru i2C and everthis is working well.But i want to put protection in the routines to avoid lock the program in case of fail of a write or read command.i found...

MGarb.5 by Associate II
  • 781 Views
  • 2 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
  • 598 Views
  • 0 replies
  • 0 kudos

Fix I2C ACK delay

How can I fix the super long delay and weird ACK glitch with I2C on STM8S?I'm having some troubles with I2C communications between a raspberry pi and STM8S. The STM8S is a slave transmitter and I2C is running at 100 KHz. It works much the time, but I...

0690X00000BvV8iQAF.jpg
MLane.1 by Associate
  • 1594 Views
  • 6 replies
  • 0 kudos