STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 296 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
  • 227 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
  • 516 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
  • 352 Views
  • 0 replies
  • 0 kudos

USART Communication with PC (stm8al3l68)

Hello,I'm trying to implement serial communication between a stm8al3l68 an a serial terminal installed on my PC.The problem is that there is no virtual port on my STM8 as on STM32.How can I communicate with the PC if there is no virtual Port. What ki...

AJT by Associate III
  • 398 Views
  • 3 replies
  • 0 kudos

Power Draw with ADC on STM8L152C6

I'm attempting to program this chip to act as a thermometer that can run on a low power solar panel. The issue I'm having is the power draw is way too high. Halted i have the power draw with an LCD and RTC interrupt ready at 5.5uA, but when I'm using...

SJack.1 by Associate
  • 168 Views
  • 0 replies
  • 0 kudos

About TIM1 in STM8L series. I have been trying default PWM testcase available by STM for modulating Duty channel and frequency. I change values of TIM_PERIOD and CCRx_Val. I only see frequency changing. For some reason I observe only 50% duty cycle.

For some reason I am not able to see pins behavior in plotter. I am not able to see PD 2,4,5 output on plotter on STVD tool.I got the testcase from https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm8-embedde...

RShah.3 by Associate
  • 230 Views
  • 0 replies
  • 0 kudos