STM8 MCUs

Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

PWM Input measurement - TIM1

Posted on May 29, 2015 at 15:14Hello all,I want to use TIM1 and its PWM input mode to obtain duty cycle and frequency of measured signal on STM8S003. But I have uncertainty about measured value.Snippets of codevoid initialization () {//System Clocks...

STM8L Discovery basic GPIO Interrupt

Posted on February 11, 2015 at 19:38 Hey, I've buyed the STM8L-Discovery board because it seems to be interesting. I've started reading manual and want to build an simple application: a string is be displayed on the lcd and I want to s...

flol2204 by Associate
  • 1456 Views
  • 2 replies
  • 0 kudos

STM8 STVD coding help needed

Posted on May 27, 2015 at 14:04hello again, how to do bit handling in STVD for STM8s for ex i want to set PA1 = 0 or CEN = 1, enable timer1. i dont see any header file supporting the same. please give me some examples.thank you #bit-handling #stm...

kumaresh by Associate II
  • 691 Views
  • 1 replies
  • 0 kudos

ST8 STVD simulator help needed

Posted on May 27, 2015 at 11:21hello, i am trying to understand how plotter works on STVD simulator. when i go in simulation mode and Select 'View>I/O Stimulation' , i dont see any pin name like PA1 or PD1 etc and i can only see RESET, IRQ1 to IRQ29...

kumaresh by Associate II
  • 624 Views
  • 1 replies
  • 0 kudos

Getting PWM caounter value

Posted on May 27, 2015 at 12:37hello,MCU: STM8S003K3In my application I using 16MHz of system clock and l create a PWM (in this case PWM_D) of 200Hz generated by 4MHz clock. Therefor my timer's counter value is (4M/200=) 20,000.Also, l have another ...

lior2 by Associate
  • 498 Views
  • 0 replies
  • 0 kudos

I2C Slave

Posted on May 17, 2015 at 21:28I've been trying to work out how to make the STM8S act as an I2C slave and to be honest I'm failing.  I think I've set everything up according to the reference manual but for some reason I'm not getting the expected in...

Nevyn by Associate II
  • 2213 Views
  • 3 replies
  • 0 kudos

STM8S003k3 EXTI interrupt double entering problem

Posted on May 22, 2015 at 18:54 Hello i have some problem withSTM8S003k3 and IR recieve protocol. I set EXTI PORTB interrupt by RISE and FALL: GPIO_DeInit(GPIOB); GPIO_Init(GPIOB, GPIO_PIN_2, GPIO_MODE_IN_FL_IT); disableInterrupts(); EXTI...

STM8S: cannot communicate with ROM Bootloader!

Posted on May 11, 2015 at 14:12Hi, we are trying to program a STM8S-Discovery, fitted with a STM8S105x6 microcontroller, using the native bootloader (via USART1 pins). We disconnetted the onboard ST-Link by removing R13-R14 resistor. We are usin...

STM8S003F3 Timer Issue

Posted on May 20, 2015 at 23:52Hey guys, I recently wrote some code to turn on Timer1 channels 1-3 and Timer2 channel 1 as PWMs to pulse a few LEDs. This code was originally written for the STM8S003K3, but I am now trying to switch over to an STM8S0...

cfleck by Associate II
  • 447 Views
  • 0 replies
  • 0 kudos

STM8L MCU interface to ST-LINK/V2 programmer

Posted on April 30, 2015 at 01:32First time using an STM8L MCU.  I am drawing a schematic and I am not sure if my programming connector is wired right.  I will use an ST-LINK/V2 programmer.  Do I simply connect the 4-pin connector as shown below?  P...

0690X00000602m6QAA.jpg
jmm385 by Associate
  • 701 Views
  • 2 replies
  • 0 kudos