STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 466 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
  • 633 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
  • 440 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
  • 984 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
  • 583 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
  • 805 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
  • 320 Views
  • 0 replies
  • 0 kudos