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

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
  • 996 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
  • 560 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
  • 482 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
  • 908 Views
  • 1 replies
  • 0 kudos

RTC not work

Posted on March 09, 2012 at 04:26Hello all, I connected crystal 32.768 khz to pin C5,C6 of stm8l151. I want to use RTC-calendar but look like crystal not work.   /* Enable LSE */   CLK_LSEConfig(CLK_LSE_ON);   /* Wait for LSE clock to be ready */   ...

np1 by Associate II
  • 465 Views
  • 1 replies
  • 0 kudos

STVD Debuger error

Posted on December 08, 2011 at 15:57In debugger STVD permanently there are failures. Only reboot helps

0690X00000602iOQAQ.jpg

How to erase not empty STM8L151 device ?

Posted on March 06, 2012 at 19:36I want the device  to be ''like a virgin''. I've tried STVP but erase option is  not visible there. Why?What is another method to erase the chip ? Is that possible to be done by EWSTM8 of IAR ?Thanks,E.L.

elil by Associate III
  • 616 Views
  • 2 replies
  • 0 kudos