STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

TIM2 input capture - what is wrong with my init

Posted on August 07, 2012 at 22:02 I have an embedded system built around a STM8S105 which, among other things, must measure the frequency of a pulsed input. The pulses are coming in on pin 29 (PD4/TIM2 CH1) anywhere from 0 to about 1200 pulses ...

How to use LSE as clock source of TIM1 or TIM2/3/5 or TIM4

Posted on March 05, 2012 at 03:59If it's possible to use LSE as the clock source of TIM1 or TIM2/3/5 or TIM4 ?Use LSE as external trigger of  TIM1 or TIM2/3/5 or TIM4 is accepted too, if possible please share some code sample. #stm8-timer-lse

lzyos by Associate II
  • 604 Views
  • 2 replies
  • 0 kudos

Counter TIM4

Posted on February 13, 2012 at 16:01Hi! I have a probem with a simple software that I've wrote to learn to use timers.This is the code that I've used.&sharpinclude ''stm8l15x.h''main(){   TIM4_DeInit(); TIM4_TimeBaseInit(TIM4_Prescaler_2048, 200); T...

karl246 by Associate
  • 525 Views
  • 2 replies
  • 0 kudos

STM8S debugger changes speed of MCU !?

Posted on October 06, 2011 at 15:24Hi all, I'm use the STM8S103K MCU with COSMIC + STVD + STLINK debugger. I setup TIMER1 to generate a bitsequence (each 14ms) on an output pin during timer overflow. Everything is fine as long as the debugger is con...

6 step PWM on STM8L15x

Posted on June 10, 2011 at 14:50Hey! I'm trying to make sensorless BLDC control unit on STM8L15xxx MCU. High-side switches of drive circuit are opened by logical ''1'', and low-side - by logical ''0''. So I need to perform six-step trapezoidal com...

kirlik by Associate II
  • 366 Views
  • 0 replies
  • 0 kudos

output clock

Posted on April 02, 2011 at 14:41hello,please tell me how can I program a output clock for another sequential circuit outside #external-clock #timer #cco

nad by Associate II
  • 543 Views
  • 2 replies
  • 0 kudos

examples/TIM2/TIM2_Input_Capture/main.c

Posted on December 16, 2010 at 17:29Hi all, I was studying the examples on timers and so on. I came across the source ''main.c'' in the STM8S Firmware Library package, examples/TIM2/TIM2_Input_Capture/main.c, a piece of which is shown below. Th...

spiovan9 by Associate II
  • 670 Views
  • 5 replies
  • 0 kudos

3 PWM in stm8s

Posted on September 26, 2010 at 12:39Hello All  i need use 3 pwm  by user timer1, timer2, timer3 by config TIM1_PWMIConfig(); TIM2_PWMIConfig(); TIM3_PWMIConfig(); How to config? i use stm8s-discovery #tim1 #pwm #stm8s #tim2 #timer #tim3

uthenb by Associate II
  • 462 Views
  • 0 replies
  • 0 kudos