STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 783 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
  • 407 Views
  • 0 replies
  • 0 kudos

Stm8l152C6 - Low power wait mode

Posted on March 14, 2012 at 16:32Hello, I am working on the Stm8l152C6 processor. Trying to put the processor on the low power wait mode. Timer 3 will be running on LSE. Code runs from RAM and will wait for an event  for an capture compare event in ...

megha_hs by Associate
  • 317 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
  • 319 Views
  • 0 replies
  • 0 kudos

USART and DMA

Posted on March 14, 2012 at 09:50 /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ #ifdef USE_STM8L1526_EVAL /* define the DMA par...

senmeis by Associate
  • 331 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
  • 721 Views
  • 1 replies
  • 0 kudos