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

STM8s003f3 with i2c LCD (PCF8574AT I2C Module)

Hello Every one ,I am trying to use I2c based LCD with stm8s003f3 controller. the write i2c address is 0x3f I am struck at a point ,the code is stopped in endless loop in below functionvoid PCF8574_write(unsigned char data_byte){  I2C_GenerateSTAR...

pverm.19 by Associate
  • 644 Views
  • 0 replies
  • 0 kudos

How to link to lin.lib from en.stsw-stm8a-LIN in an STVD project

I have followed the steps to create my lin.lib file from my LDF, but I need to add it to a STVD project, not one built with an extrenal makefile. I have tried adding the library to the default compiler path, and tried specifically adding it to the pr...

IChut by Associate
  • 524 Views
  • 0 replies
  • 1 kudos

STM8: mistake in Programming Manual?

The PM0044 for the STM8 MCUs explain that data address space is 16MBytes linear. Ok, so why on the page 19 data address to a RAM memory has 16-bit wide (A15...0)?

0690X000006ClXKQA0.png
Arlleex1 by Associate II
  • 592 Views
  • 0 replies
  • 0 kudos

Saving setup of the "Option Byte"

Hi everyone,I have the usual file.s19. I can set the 'Option Byte' up using the opportune tab in 'Cosmic'. Now I need to share my file.s19, but I need to share it with option byte already set up.Is there any way to do that?thanks Antonio

Efficient RC5 decoding code for STM8 MCUs

Posted on March 06, 2017 at 16:40Hello,Full RC5  decoding code  with  total STVD  project file. Hope you will find it  beneficial for your project.

Sawtooth waveform on NRST

I have been using a STM8S105 successfully for a few months and recently, I have been experiencing problems with i/o on UART2. When I eventually probed the NRST pin I noticed that there is a sawtooth waveform on that pin, with no other circuit connect...

STM8L052R8 power (current) consumption problem

STM8L power (current) consumption problemPosted on August 23, 2011 at 06:42 I'm developing an application with STM8L052R8 MCU now, and this application is battery-used product. The problem is that, I cannot make the MCU consume micro-ampere order cu...

0690X000006CXd9QAG.png
HLu by Associate
  • 561 Views
  • 0 replies
  • 0 kudos

Timing a button press on STM8S001J3

I'm trying to measure the duration of a button press using TIM2 as a counter. I have one of the buttons triggering an interrupt which enables the timer on the positive edge, and then calls TIM2_GetCounter() on the negative edge.I'll save you all a bu...

jlc3 by Associate
  • 773 Views
  • 0 replies
  • 0 kudos