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

Why can't I use UART1 and ADC1 together?

Hi. I made a code that uses ADC1 in single conversion mode and UART in asynchronous mode.But when I do the ADC1_Init() for some reason the RX interrupt of the UART doesn't work, if I don't use the ADC1 it works normally. Can someone help me?Periphera...

VSchu.1 by Associate II
  • 622 Views
  • 1 replies
  • 0 kudos

Hi All, I am new to STM8L controller, Could you help me out with the clock configuration part? I am using STM8L152R8T6 controller Eval Kit along with Cosmic Compiler. Trying to do simple LED toggling on this board but unable to perform it.

void main() { uint32_t clockFrequency = 0x0000; //clock enable for MCU /* Select HSE as system clock source */ CLK_HSICmd(ENABLE); CLK_SYSCLKSourceConfig(CLK_SYSCLKSource_HSI); /* system clock prescaler: 1*/ CLK_SYSCLKDivConfig(CLK_SYSCL...

vshah by Associate II
  • 729 Views
  • 2 replies
  • 0 kudos

STM8S103: UART Receive String Problem With Delay() in while(1)

    #include "stm8s.h" #include "stdio.h"       #define Relay_1_Port (GPIOB) #define Relay_1_Pin (GPIO_PIN_5) #define Relay_1 '1'   #define LED_1_OFF_Port (GPIOC) #define LED_1_OFF_Pin (GPIO_PIN_7)     #define Read_fun '0' #define Write_fun '1'   #...