STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

LIN Transciever

Posted on October 25, 2016 at 07:47Hello all, I am using NXP's  TJA1028T/5V0/20/1J  LIN transceiver with STM8 board. To bring LIN transceiver into ''Normal Mode'', is it mandatory to feed 5V supply to EN pin and VBATT pin of transceiver?  I have fed...

Setting up the programming environment for STM8s003f3P6?

Posted on October 20, 2016 at 07:51i am learning to program in embedded C by myself and i have bought an stm8s003f3P6 microcontroller and  a STLINKV2 programmer to program device and i under i can use STVISUAL DEVELOPE code or IAR EMBEDDED WORKBENCH...

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
  • 2702 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
  • 538 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
  • 559 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...