STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How do I install the firmware library?

I am (obviously) brand new to stm tools. I have installed the stvd and cosmic compiler and I want to use the firmware library. I have downloaded the STMS version. How do I install and use it? I've googled til my fingers are sore.

mchahn by Senior
  • 220 Views
  • 0 replies
  • 0 kudos

STM8L051 125khz PWM not work

I have new application used stm8l051, The MCU using timer2(GPIOB2) to generator 125khz PWM, duty cycle from 0% to 100% every 500ms with 16Mhz clock source.void Timer2_PWM_Init(void){ GPIO_Init(GPIOB, GPIO_Pin_2, GPIO_Mode_Out_PP_High_Fast);  CLK_Peri...

KCheu.1 by Associate
  • 234 Views
  • 0 replies
  • 0 kudos

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...

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
  • 223 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
  • 196 Views
  • 2 replies
  • 0 kudos