STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 236 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
  • 480 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 ha...

SLasn.1 by Associate II
  • 585 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
  • 532 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 (EEPR...

SLasn.1 by Associate II
  • 493 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
  • 355 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
  • 1436 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
  • 448 Views
  • 0 replies
  • 0 kudos

Understanding if TIM2 works in low power modes STM8L151F2

Hello,I am trying to understand if TIM2 can still work for PWM output in low power modes. I can't find which peripherals are allowed to be on in the STM8L151F2 datasheet for the low power modes.To expand on my question. I assume that in Wait mode I ...

CProt.1 by Associate
  • 280 Views
  • 0 replies
  • 0 kudos