STM8 MCUs

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
  • 433 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
  • 512 Views
  • 2 replies
  • 0 kudos