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

Configuration of Option bytes in source code, Cosmic

Posted on October 17, 2016 at 11:12Hi,is it possible to specify Options bytes in source file ?I mean something similar to what I use with Microchip PIC18 (in .c files):#pragma config  WDT = ON // WDT Enabled#pragma config  WDTPS = 256 // Watchdog pr...

Cosmic, compile without unused code

Posted on October 10, 2016 at 15:13Hi,I made a primitive program that calls few functions of Standard Peripheral Library / CLK and GPI modules, so source files  stm8s_clk.c + stm8s_gpio.c were added to project.After compilation I checked .map file a...

STVP Programming Toolkit - How to Unlock Chips?

Posted on September 13, 2013 at 18:37I've looked over UM0151 and have thus far successfully developed python code that can program STM8 chips using the discovery board programmer, and modify the image.I am trying to rapidly develop a programming/tes...

brad by Associate
  • 2794 Views
  • 2 replies
  • 0 kudos

ST Visual Develop Compile Error

Posted on October 14, 2016 at 09:02Hi, I used the ST Visual Develop with Cosmic STM8 free tools with no limits version to compile a C program. However, some errors were shown, ''&sharperror clnk debug\stm8 gerenal io program.lkf:1 can't open file de...

smwong by Associate
  • 562 Views
  • 0 replies
  • 0 kudos

I2C problem when use STM8AF6223 - Eeprom24C128

Posted on October 13, 2016 at 08:53 Hi All, When I use STM8AF6223 read data from eeprom 24C128,I can't poll RXNE flag. This is my code for Read Eeprom: uint8_t Read_EEPROM(uint8_t EepAddr,uint8_t RegAddr) { uint8_t data=0; /* check ...

0690X00000604yTQAQ.png

DAC for stm8l151G6U6

Posted on March 20, 2013 at 05:19Hi all, I used DAC and it OK on stm8l151C6T6,  this is 48pin MCU. But now i change to 28pin DAC.It not work:     CLK_PeripheralClockConfig(CLK_Peripheral_DAC, ENABLE);     DAC_DeInit();     DAC_Init(DAC_Channel_1, DA...

np1 by Associate II
  • 577 Views
  • 3 replies
  • 0 kudos

Maximal toggling frequency of STM8

Posted on October 07, 2016 at 15:06Hi,I have just started with STM8 and would like to found the fastest toggling method.Currently I have best result with following code: while (1) {#pragma asm push A pushw X ld A, #1 // toggle with pin D0 ldw X, #0x...

How to Establish LIN communication between STM8AL and STM8AF

Posted on October 06, 2016 at 07:47Hello all,               I am new to LIN protocol, stuck in establishing LIN communication between STM8AF and STM8AL boards. I am referring to example code found in STM forum for LIN communication. I have downloade...

Through-Hole Microcontroller with Evaluation Tool

Posted on October 05, 2016 at 20:17Hi, I'm working on a project that needs a microcontroller to produce a control signal for an analog audio effect. The microcontroller I choose needs the following requirements:-Through-Hole / DIP package-At least 4...

epalaima by Associate II
  • 1056 Views
  • 0 replies
  • 0 kudos

STM8S003 registry access

Posted on October 05, 2016 at 15:26Our company as an electronic engineering company is willing to use your products specifically STM8S003.For more than 12 years we have used Atmel products and have lots of experiences on it.Beginning with your STM8S...