STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Save initial EEPROM data when burning MCU

When initially burning the MCU, I want to save some EEPROM data. Lets say the data 123 is to be saved in location 1 of EEPROM. If I write the below C code before the main function, will it work? Once the data is stored the first time the program is b...

PiSquared by Associate II
  • 1767 Views
  • 5 replies
  • 0 kudos

Not getting interrupt of Timer2 input capture in STM8S003F3 .

Hi,I am using input capture of Timer2 Ch1 in stm8s003f3(20 pin uC). I had configured the timer 2 and provided pulses in PD4 pin , but i am not getting interrupt in Timer2 interrupt handler.void InitTimer2(void){TIM2_DeInit();CLK->PCKENR1 |= 0x20;    ...

spark.1 by Associate
  • 413 Views
  • 0 replies
  • 0 kudos

Inverse of dead band observed in PWM, STM8S003F3

1. I have written below code for PWM generation for STM8S003F3. Two pwm pins are used inverted with dead time.2. But I observed this graph on CRO of two pins is this. I was expecting one pin to turn off before another turn on i.e deabband.. But rever...

0693W000000X9gtQAC.jpg

How to recover SWIM pin from being used as GPIO?

I'm using the TSM8S001J3 for a small application that requires Pin-8 (PD1/ SWIM, PD5/ AIN5/ UART1_TX) to be used for the RS232-TX. Currently in the code I have a way to halt the GPIO assignment prior to reassigning the SWIM pin if needed by holding t...

gerald23 by Associate II
  • 517 Views
  • 2 replies
  • 0 kudos

Complementary PWM not working for STM8S105 MCU

Here is the initialization code...void InitPwm(void){TIM1_DeInit();TIM1_TimeBaseInit(0, TIM1_COUNTERMODE_CENTERALIGNED1, 800, 0);TIM1_OC1Init(TIM1_OCMODE_PWM1,  TIM1_OUTPUTSTATE_ENABLE,  TIM1_OUTPUTNSTATE_ENABLE,  100, TIM1_OCPOLA...

CKhan.1 by Associate
  • 378 Views
  • 0 replies
  • 0 kudos

Problem with UART on STM8L151

I've been struggling with this problem for some time. Currently I'm porting my application from STM8L051 to STM8L151. Whenever I start USART1 Receiver, the USART Status Register (USART->SR) shows "0xfa", indicating Parity and Overrun Error. I tried w...

WRost.1 by Associate II
  • 854 Views
  • 3 replies
  • 0 kudos

Example code for STM8S003F3

I am working with STM8S003F3 in our custom board . I need to communicate with an transceiver through SPI. I need a sample code for configuration of SPI in master mode and write /read process in SPI. Pls support by providing sample project.

spark.1 by Associate
  • 502 Views
  • 0 replies
  • 0 kudos