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

STM8L152C6T6 EEPROM erasing problem.

Posted on April 24, 2012 at 10:20Dear everyone,When the updating stm8l make use of the swim , Everytime the EEPROM data was erased. I don't know this cause.The download tool is RFasher7. Of course was disable the Erase EEPROM option in this tool.

hansung by Associate
  • 524 Views
  • 2 replies
  • 0 kudos

Programming STM8S via USB

Posted on April 16, 2012 at 09:13Hi,Is it possible to program stm8s mcu s via comport/usb with interface card(maybe max232 chip etc.)?I dont need debugging.Programming will be ok.What should I do for that?Can I use STVP with my custom interface boar...

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
  • 625 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
  • 1015 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
  • 581 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
  • 501 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...