STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Dubts, how to reset stm8s

Posted on December 01, 2013 at 08:05Hi guys, I am new to STM8s discovery... I have done the following code: stm8/     ;mapping.asm exists ...     segment 'rom'      start     bset $5011,#0;sets PD0 to input loop_main     ldw X,#$FFFF loop_delay    ...

lmx1 by Associate II
  • 562 Views
  • 3 replies
  • 0 kudos

Reading data from array

Posted on May 29, 2015 at 00:03Hi, I'm developing application which include I2C communication, so I have implemented code from AN8231. So far it works fine and I got data from I2C peripheral in input_buf[]. Data are valid, and I can see them in watc...

delkons by Associate
  • 260 Views
  • 1 replies
  • 0 kudos

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
  • 857 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
  • 432 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
  • 384 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
  • 326 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
  • 1378 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...