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

Run STM8 project on STM32 microcontroller

Hello,I need to port an STM8 project to an STM32 microcontroller. The current STM8 application doesn't have any operating system and doesn't have strict time requirements: it uses only some timers for PWM signal generation, two serial interface at ve...

SSpin by Associate
  • 1605 Views
  • 2 replies
  • 0 kudos

STVD LD mem,A problem

In STVD (ver.4.3.12 MCU: STM8L052C6)I wrote:LD A,#$68LD $5232,A   ;(USART bade rate register)but memory ($5232) is $00when I wrote: LD $5000,A ;Port A data reg. memory ($5000) is $68, it work wellwhai is the different?Could anybody hel...

is the i2c init function right?

void sEE_Init(void) { //printf("i2c init\n"); sEE_LowLevel_Init(); // enable clock   /*!< I2C configuration */ /* sEE_I2C Peripheral Enable */ I2C_Cmd(sEE_I2C, ENABLE); I2C_DeInit(sEE_I2C); /* sEE_I2C configuration after enablin...

Strange tim4 interrupts?

The chip is stm8s103f3p6, and I wanna use lsi as clk and tim4 to make a timer, there are two strange things happened.​ when I set prescaler to TIM4_PRESCALER_4 and ARR to 32, I thought it should interrupt every 1ms (128k/4/32=1kHz), but it seems brea...

hpare by Associate
  • 528 Views
  • 1 replies
  • 0 kudos

Interrupt vector relocation in stm8

Hi,​I​ am developing an IAP for one of my project.In that the bootloader and the application using interrupt vectors.How can I seperate the ​interrupt vectors for application as well as bootloader. How to relocate the interrupt vectors in STM8?​T...

leojo by Associate
  • 664 Views
  • 1 replies
  • 0 kudos

Issue with STM8S103F3 using wait for interrupt assembly call

Hello,First off, I'd really like to thank the community for being there to help, and I really appreciate any help or guidance offered. I am trying to put an STM8S103F3 MCU into wait mode until an external interrupt on port A triggers. I make the asse...

JEREMYB by Associate
  • 736 Views
  • 1 replies
  • 0 kudos

How to detect if debugging session is active on STM8S103?

Hello,Is there a way to detect if debugging session is active (eg. IAR debugger is attached)?Datasheet says DM and SWIM registers are only accessible from SWIM interface, not from STM8 bus.Unfortunately IAR doesn't like the WFI instruction during deb...

AToth by Associate
  • 522 Views
  • 0 replies
  • 0 kudos