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

Use ADC and USARt1 in STM8L151C6

I am a newbie into the world of embedded systems.is it possible to enable clock for ADC and TIM4 overflow update.``` CLK_DeInit();   CLK_LSICmd(DISABLE); // Use internal clock. CLK_HSICmd(ENABLE); while(CLK_GetFlagStatus(CLK_FLAG_HSIR...

LSI clock selection does not seem to work on STM8S207 Nucleo-32 board.

Using the code fragment below I would expect the code to hang if it got an error during the clock switch or it actually switched to the LSI clock. But the test code keeps running and starts blinking an LED.    CLK_LSICmd(ENABLE);    CLK_ClockSwitchC...

MJohn.12 by Associate
  • 650 Views
  • 1 replies
  • 0 kudos

SPI write 8 bit to 16 bit

Hello everyone, I am newbie, I want to use spi connection STM8 master with slave 16 bit IC. I have to write 16bit register to set the IC. How could I send 16 bit value to IC to set it with STM8, may you share some codes? best regards.

Cbalt.1 by Associate II
  • 1437 Views
  • 2 replies
  • 0 kudos