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

STM8S Discovery and CCO

Posted on April 14, 2012 at 11:40 I am new at this so please be gentle with me :) I am struggling to get the CCO pin to output the current clock frequency and I'm struggling. I have checked out the examples in the STM8S library (version 2.1), in...

Nevyn by Associate II
  • 573 Views
  • 1 replies
  • 0 kudos

eliminate unused functions out of linked file

Posted on April 04, 2012 at 14:17Hi, I'm using COSMIC's CXSTM8 in STVD environment. My Problem: With my last Compiler/Linker I was sure, that unused procedures automatically were not linked to the resulting file. Now I am rather short of programm m...

UART2 RX TX initialization-how to use?

Posted on December 14, 2011 at 22:47Hello, I have problem with initialization UART2 in my project(STM8S105). Below you can see part of my code, what am i doing wrong? I'm trying to send sign to LCD display. ...void UART2_Cmd(FunctionalState ENABLE);...

Using GPIO pins for additional I2C ports

Posted on March 26, 2012 at 22:26Has anyone come up with a way to use GPIO ports as I2C? My current app uses an external I2C mux to make three I2C channels. I would like to replace this HW with independent I2C output from the STM8. So I would have t...

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
  • 972 Views
  • 2 replies
  • 0 kudos

Can't get I2C working

Posted on March 15, 2012 at 05:57I'm trying to get I2C working, I've verified I can manually toggle the pins at 400KHz with a pull up resistor. I can't seem to get the I2C code to work correctly though.    input_clock = CLK_GetClockFreq()/1000000;  ...

drebbe by Associate II
  • 538 Views
  • 0 replies
  • 0 kudos

IAR Sample code for STM8S103F3

Posted on March 14, 2012 at 13:25I am unable to understand the IAR files involved in developing an application for STM8S103F3. Specifically, the files involved for interrupts and where to write the ISR for the interrupts, when using the IAR IDE. Fur...

rnd2 by Associate
  • 458 Views
  • 0 replies
  • 0 kudos

TIM1 counter

Posted on March 08, 2012 at 20:57 Hello, I try measure frequency 50-500Hz. I use STM8S-DISCOVERY KIT with STM8S105C6T6 and FWLib. How initiate the appropriate timer and which port to use? #include ''stm8s_con...

STM8S I2C library

Posted on February 15, 2012 at 20:16Is there any good library to manage the STM8S I2C peripheral running as a slave?I have tested some examples and I'm having many problems in noisy environments, the bus is busy but both slave and master wait for th...

using TIM1 TRGO to start adc conversion

Posted on November 22, 2011 at 16:17hello, I'm trying to trigger the ADC1 with the TRGO signal of TIM1, here is the code that I,m using to configure the timer: TIM1_DeInit(); TIM1_TimeBaseInit(128, TIM1_CounterMode_Up, 62500, 0); TIM1_SelectOutputT...

giu by Associate II
  • 870 Views
  • 1 replies
  • 0 kudos