STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! STM8S105C4, are nested interrupts recommended for TIM4 and UART2?

Hello, I am new to ITC. I use a the TIM4 interrupt as a 10ms time base, using a callback function for the SPL interrupt handler INTERRUPT_HANDLER(TIM4_UPD_OVF_IRQHandler, 23).The callback transmits a UART2 packet to an external device and then waits ...

Kmax18 by Senior
  • 440 Views
  • 2 replies
  • 0 kudos

Tim1 and Tim2 block each other.

Hello stm community,I am working with the STM8S001J3 processor on the ST Visual Develop Toolchain.And I use the TIM1 and the TIM2.The Tim1 is enabled via the external port when the D port is active. It is used to work synchronously with the 50hz/230v...

atürk.1 by Associate
  • 313 Views
  • 0 replies
  • 0 kudos

Resolved! No output from TIM2 in compare mode on STM8L101F3

I am trying to get a pulse out of TIM2 in compare mode but I see no output. Here is my snippet of code:#include "iostm8l101f3.h" void main( void ) { CLK_CKDIVR = 0x01; // 8MHz PA_CR1 = 0xFF; // all pullups PB_DDR = 0x01; // 0000 0001...

AMacd.1 by Associate III
  • 420 Views
  • 1 replies
  • 0 kudos

STM8S TIM2 Interrupt not working

Hi, I'm trying to Implement an interrupt every 60 seconds, however something is missing. The TIM2 itself is working but can't seem to generate any interrupt. Any idea on what am i missing? The following is the code I am using. thanks //Required Hea...

SAlam.1 by Associate
  • 739 Views
  • 3 replies
  • 0 kudos

How to generate PWM with offset / delay?

I need to generate two signals as shown below.I need to be able to adjust A and B independently. Is there some way to use TIMER1's OC1 and OC2? I can't figure out how to make an offset in the output compares - everything seems to start at the main co...

0693W00000Dq2rmQAB.png
EAnde.3 by Associate II
  • 887 Views
  • 4 replies
  • 0 kudos

Getting PWM counter value at STM8S003F3.

Our customer need some help to develop their application using STM8S003F3.They are using Timer 1 as PWM generator at 125kHz but, does't have success to implement a overflow counter. They told us that the PWM pulse generator are working well. Did you ...

0693W000008yHvVQAU.jpg 0693W000008yHvBQAU.jpg
MNasc.1 by Associate
  • 419 Views
  • 1 replies
  • 0 kudos

TIM4 and I2C don't work together

I have a Arduino Mega and a STM8S003F3. I set up I2C communication between them. Arduino Mega is master. STM8S is slave. STM8S runs at 3.3V. Arduino Mega I2C clock frequency is the default(100KHz). TIM4 goes into interrupt every 1ms.If I don't enable...

AMehm.1 by Associate
  • 380 Views
  • 0 replies
  • 0 kudos

What does the STM8 TIM3_BKRConfig() function do?

As a newbie I'm struggling to understand the following line of code:TIM3_BKRConfig(TIM3_OSSIState_Enable,TIM3_LockLevel_1,TIM3_BreakState_Enable,TIM3_BreakPolarity_High,TIM3_AutomaticOutput_Enable);Introductory material that I've found on timers/PWM ...

Resolved! How to use TIMER 2 as simple counter in STM8S103F3?

Posted on January 14, 2018 at 09:04 Hi All, I am new to STM8S and not yet that good at microcontroller programming in general. I am trying to learn about timers/counters in microcontrollers. I wrote following code to toggle an LED connected...

Junaid PV by Associate II
  • 2250 Views
  • 6 replies
  • 0 kudos