STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8AF6223A UART 4 RXNE Flag is not set

I have a STM8AF6223A Processor connected to another processor on Pin 2, UART TX and Pin 3, UART RX. The oscilloscope verifies that both processors send correctly, 19200 Baud, 8bit Data, no parity, 1 stop bit. The STM8 processor receives the data in t...

0693W00000Bde61QAB.png 0693W00000Bde5XQAR.png
CPack.1 by Associate
  • 647 Views
  • 2 replies
  • 0 kudos

How to read/write flash memory instead of EEPROM

Hi there!I am using stm8s MCU for my application. As the number of data that I want to save is more than the size of EEPROM, is it possible to read/write data on flash memory? If yes, may I know how to make it works and how to allocate flash memory p...

MT.2 by Associate II
  • 544 Views
  • 0 replies
  • 0 kudos

About PUSH POP instructions。

I test push and pop instruction,some issue confuse me. ​push cc #cc = 0​​when cc=0,and cc is push to stack,the value in stack is 0x28,this mean I1 I0 is set,why?​​pop cc​ #cc=0​when​ cc in stack is 0x2b,after pop,cc change to be 0x3 ,this mean I...

jduo.1 by Associate II
  • 980 Views
  • 3 replies
  • 0 kudos

Custom STM8 Programmer

Hello friends!I have self-developed a programmer for STM8.It works very well.However now I want it to be able to debug in IAR like STLink.Please give me documentation or instructions on how to do it.

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
  • 511 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
  • 619 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'   #...