Skip navigation
All Places > STM8 MCUs Community

STM8 MCUs

Log in to follow, share, and participate in this community.

Recent Activity

Siddharth Kachhia
#include "Filter.h" #define Samples 3 #include <math.h> #include <stdlib.h>   extern unsigned long int data; long int Result_Previous,Average,; unsigned char Stable;   void FIR_Filter(unsigned long int Clean) {     static unsigned char Index=0; //    static bit_16 Index1=4000;     static unsigned long int ADC_Mean[Samples];          unsigned… (Show more)
in STM8 MCUs
mahdi honarvar
Hello. I want compile a simple program that is : stm8/ segment 'rom' PD_ODR EQU $500F PD_DDR EQU $5011 PD_CR1 EQU $5012 ;/////////////////////// bset PD_DDR,#6 bset PD_CR1,#6 loop2 bset pd_odr,#6 bres pd_odr,#6 jp loop2 end   when I compile this program Stvd get a lot of error that is :   can any one help me?? my windows is 7 and 64bit and… (Show more)
in STM8 MCUs
addy.richard
Hi, I'm using the STM8L052r8. Running the SYSCLK at 16MHz but at various parts of the code I'm changing the Pre-scaler to slow it down, then returning to the 16MHz. I'd like to set up a Time base completely independent of the SYSCLK using the LSE internally redirected to the ETR inputs of TIM3. I can't find any code examples of this, Can… (Show more)
in STM8 MCUs
GURUMOORTHI KANDASAMY
microcontroller :stm8s003f3p6   when I am trying to upload the code it shows following error   Error : Cannot communicate with the device !   so I was thinking this error is shown because the internal oscillator is not configured.   then I have used following internal clock configuration in STVD but it is showing error following error   void… (Show more)
in STM8 MCUs
shah.kavita
Hello,       We had developed one application using STVD IDE & cosmic compiler with 8k limit, for that we have following error while compile the code. #error clnk Release\stm8s003.lkf:1 segment .text size overflow (1358)  The command: "clnk -l"C:\Program Files\COSMIC\32K_Compilers\CXSTM8\Lib"  -o Release\stm8s003.sm8 Release\stm8s003.lkf " has… (Show more)
in STM8 MCUs
GURUMOORTHI KANDASAMY
#include <iostm8s003f3.h> #include <intrinsics.h> int main() { // // Initialise Port D. // PD_ODR = 0; // All pins are turned off. PD_DDR_DDR4 = 1; // Port D, bit 4 is output. PD_CR1_C14 = 1; // Pin is set to Push-Pull mode. PD_CR2_C24 = 1; // Pin can run upto 10 MHz. // // Now lets toggle to IO line. // while (1) { PD_ODR_ODR4 = 1;… (Show more)
in STM8 MCUs
Chayan Roy
Is their any IAP tutorial and example code for STM8S00f3
in STM8 MCUs
Chayan Roy
Hello, Here is my code :  TIMER1 and TIMER2 works fine,but TIMER4 is not working properly. Problem is what ever value is written  to TIM4_PSCR ,it is not taking any value, prescalar register always shows 0X00. TIMER4 is used for 100us delay, TIMER4 starts when TIMER1 interrupt occurs.May be I am making some silly mistake. Here is the code below:… (Show more)
in STM8 MCUs
MHz
Hi, I can manage to change clock from HSI>HSE and vice versa. But I am not able to bring LSI as my master clock. Can anyone help please? I am using STM8S Discovery board and Cosmic C as my compiler. My code is as follows: /* MAIN.C file  *   * Copyright (c) 2002-2005 STMicroelectronics  */ #include "stm8s.h" u16 c=50000; u8 i; main() {… (Show more)
in STM8 MCUs
krause.philipp
I wrote a tutorial that shows how to blink LEDs on a STM8L-Discovery using free tools only. … (Show more)
in STM8 MCUs
Load more items