STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

ST-Link/V2 Programming Issue

Posted on September 06, 2013 at 12:39I am trying to load program using STVD (ST-Link/V2) but getting the error ''can't communicate with the device''. I am only applying Vcc and Gnd to controller + 4 wires of SWIM cable. What should I do? Do I need t...

harsh by Associate II
  • 621 Views
  • 2 replies
  • 0 kudos

PWM input capture

Posted on December 18, 2013 at 17:59Hi,I'm trying to read a 5kHz square wave dc=50%. I'm using thw pwm input capture.The problem is that the program gives me a dc=100% and strange frequencies, but i cannot figure out why it happens.. can someone hel...

gibba by Associate II
  • 310 Views
  • 0 replies
  • 0 kudos

Same functions ; different result

Posted on December 17, 2013 at 16:19I am using STM8L-Discovery board, STVD and Cosmic Compiler 32k; and ST peripheral libraries(stn8l15x.h file revision number is 1.4/2010) I have runned the next code:#include ''stm8l15x.h''#include ''delay.h''void ...

ionutF by Associate III
  • 302 Views
  • 0 replies
  • 0 kudos

Same functions ; different result

Posted on December 17, 2013 at 16:15I am using STM8L-Discovery board, STVD and Cosmic Compiler 32k; and ST peripheral libraries(stn8l15x.h file revision number is 1.4/2010) I have runned the next code:#include ''stm8l15x.h''#include ''delay.h''void ...

ionutF by Associate III
  • 366 Views
  • 0 replies
  • 0 kudos

STM8L152C6T6 - PWM output compare

Posted on December 17, 2013 at 01:26Hi everyone,I need to generate a square wave and I've written some code but it doesn't work as i want. Can anyone help me with my doubts please?first of all: I'm not sure that the following registers are in hexade...

gibba by Associate II
  • 359 Views
  • 1 replies
  • 0 kudos

STM8L152C6T6 - frequency counter

Posted on December 16, 2013 at 00:23Hi everyone,I'm working on a frequency counter and I'd like to use the internal timers of the mcu. Do some application notes exist related to this topic? I couldn't find any link. Otherwise, do anyone of you have ...

gibba by Associate II
  • 597 Views
  • 2 replies
  • 0 kudos

A little something for Luca

Posted on December 13, 2013 at 00:27Hey Luca compiling this (Cosmic):volatile _Bool GPI1 @5006:6; _Bool Ext_1; _Bool LastExt_1; void IH_Init(void) {     Ext_1 = LastExt_1 = ~GPI1; }  produces this error message #error castm8 \LOCALS~1\Temp\s1f8.cx2...

jdf25252 by Associate II
  • 795 Views
  • 1 replies
  • 0 kudos

Software reset (cold reboot)

Posted on November 15, 2013 at 18:36Hi, I'm looking for the proper (standard?) way for cold rebooting an STM8. I see that the first interrupt handler in the interrupt vector is what is called on startup. With my COSMIC compiler, the name of that fun...

shabbyx by Associate II
  • 1976 Views
  • 2 replies
  • 0 kudos

ATOMTHREADS RTOS for STM8 compiling error in IAR

Posted on December 11, 2013 at 14:16Hi,I have downloaded an opensource RTOS for STM8 from the below locationhttp://cloud.github.com/downloads/kelvinlawson/atomthreads/atomthreads-1.3.tar.gzFollowed the instructions to build the project, I got the be...

rajesh2 by Associate
  • 503 Views
  • 0 replies
  • 0 kudos