STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

We are using the STM8L052R8T6 CPU, The normal current is about 15 microampere, but in several units, the current jump to about 34 milliampere.

We are using the STM8L052R8T6 CPU. The CPU is in Wait mode most of the time, so the current is about 15 microampere . In several cases, the current jump to about 34 milliampere (yes.. 34 mA!)We are using the STM8L052R8T6 CPU,  The CPU is in Wait mode...

EGaba.1 by Associate II
  • 472 Views
  • 4 replies
  • 0 kudos

6 step PWM program is not working

Hi,I am using stm8s discovery board with stm8s105c6 microcontroller. I am using 6 step PWM generation sample code bu using stm8s_periperal_library.I am able to generate PWM at PC2, PC4 only but I am not getting PWM at other pins and not even compl...

Ajadh.1 by Associate II
  • 294 Views
  • 0 replies
  • 0 kudos

TIM4 and I2C don't work together

I have a Arduino Mega and a STM8S003F3. I set up I2C communication between them. Arduino Mega is master. STM8S is slave. STM8S runs at 3.3V. Arduino Mega I2C clock frequency is the default(100KHz). TIM4 goes into interrupt every 1ms.If I don't enable...

AMehm.1 by Associate
  • 587 Views
  • 0 replies
  • 0 kudos

Shortage of the STM8L series worldwide?

Hi :) I have been designing a device for the STM8L151, and I hope to start production of the first 1000 units soon. But it seems the stock amounts are getting smaller and smaller?On DigiKey for example there are only 4 versions of the STM8L151 which ...

SLasn.1 by Associate II
  • 787 Views
  • 2 replies
  • 0 kudos

RTC clock not starting consistenly

Hi everyone, I'm using the STM8L152R8 Nucleo board and trying to get the RTC running on the LSE clock. It works but only inconsistenly, about 2/3 runs error out in the RTC_EnterInitMode function of the SPL the below line. RTC_EnterInitMode is called ...

TConl.1 by Associate II
  • 656 Views
  • 1 replies
  • 0 kudos

EEPROM - write 2 bytes

Hi :) Quick version: how to write 2 bytes (not in the same word) to the EEPROM in STM8? Should I write 1 byte and then wait for the EOP flag to be set before writing the second one?Long version: for now I am simply doing:unlock EEPROMwrite byte 1 (EE...

SLasn.1 by Associate II
  • 659 Views
  • 1 replies
  • 0 kudos

Sir, I am using 3 ADC channels in STM8S003F3 for purpose of AC voltage measurement and while AC Power down on any channel , board going to reset , please suggest me the perfect solution .

in my testing while I am down the power or power on of a any channel MCU is going to reset . I have attached a schematic of my board.If is there may issue of softwere code please suggest me the clock setup is void clock_setup(void){ CLK_DeInit(); ...

RSing.11 by Associate II
  • 490 Views
  • 0 replies
  • 0 kudos

Resolved! IWDG with long timeout

Hi everyone, I'm writing a program for a STM8L152R8 that sends data over UART to another mcu that should respond to me though I have a timeout on the transaction of five seconds using timer 4. I'd also like to include a watchdog however the max timeo...

TConl.1 by Associate II
  • 1768 Views
  • 7 replies
  • 0 kudos

STM8 EEPROM unlocking bug - it has been 8 years apparently

Hi!There is an issue with unlocking the EEPROM on STM8 (probably all of them, but I am using STM8L151). This article summarizes the issue very well: https://slime.systems/content/stm8-eeprom-bug/There it says it was first found in 2013, and here we a...

SLasn.1 by Associate II
  • 556 Views
  • 0 replies
  • 0 kudos