STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Rotary potentiometer code

Posted on October 10, 2011 at 21:47Hi all, some piece of code to manage a rotary encoder potentiometer. The model I use is from the chinese market maybe by TREXON. I'll propose both interrupt and polling mode. The interrupt code has been adapted fro...

spiovan9 by Associate II
  • 419 Views
  • 0 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

UART2_RX_IRQHandler

Posted on June 30, 2010 at 18:38Dear friends, I've implemented a sort of tiny PC datalogger via RS232 based on the Discovery board and an ST232 serial interface. It is only 2 ADC channels + 4 DIN + 4DOUT. The sampling time is 15 ms but this is becau...

0690X00000603OFQAY.jpg
spiovan9 by Associate II
  • 464 Views
  • 0 replies
  • 0 kudos