Skip navigation
All Places > STM8 MCUs Community

STM8 MCUs

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

Recent Activity

Chayan Roy
Hello, I am completely new to stm8microcontroller, currently I am doing a project on  it. My  project is ir remote operated home automation. Now,for the programming ,I am  using two timers,TIMER4  for rc5 decoding and TIMER1 for some delay operation. TIMER 1 operation is continuous, i.e like main function. TIMER1 will be running continuously and… (Show more)
in STM8 MCUs
berton.ivan.001
Hi I`m new with the STM8S-Discovery and the STM8S105. I usually write my code in assembler so I get a deeper touch on the micros hardware. But I encountered an issue with the STVD tool. When I`m entering the debug mode and push the RUN button I can see the red LED next to the USB connector blinking. But the simple code does not work. The code… (Show more)
in STM8 MCUs
Gerry Briggs
There are many many registers that must be set in order to have a PWM output based on either TMR2 or TMR3.  I will talk about each, to the extent that I understand them, using the STM8L051F3 as the example:   PB_DDR:   bits 0, 1, and 2 must be set so that the micro pins are configured as outputs PD_DDR:   bit 0 must be set so that Port D.0 is an… (Show more)
in STM8 MCUs
Ajit Thorabale
Hi   I am using 20 pin STM8s003f3 controller. I have programmed TIM2 channel 3(pin 10) in Input capture mode with capture to be made on falling edge detection on channel 3. I have enabled TIM2 capture/compare interrupt. I have also configured the option byte. I am facing problem related to interrupt, there is no pulses or signals at channel… (Show more)
in STM8 MCUs
Ajit Thorabale
Hi I am facing problem in Timer2 programing. It does not go into the interrupt. Please find below program of Timer2 initialization. I am using STVD for programing STM8S003F3.   The Prescalar clock frequency is 16Mhz       //Configuring TIM2 for 1 ms delay generation     TIM2->PSCR =0x04;        //Deviding incoming clock by 16 Fck_cnt =… (Show more)
in STM8 MCUs
marton.miklos
Dear ST!   As a hobby STM8 user I am forced to use the STVD with Cosmic compiler because this is the only free development environment with debug capabilities.   I would have the following suggestions to make the usage of tool less painful (because it is right now...).   - Add a do not show this dialog again options for this dialog:     I am… (Show more)
in STM8 MCUs
nguyen_phu.thinh.001
Dear all,   here is my code to read spi data: uint8_t TI_TDC1000_SPIByteReadReg(uint8_t addr) { uint8_t read_byte,inst; uint8_t dummy = 0x00; inst = TDC1000_READ_BIT & addr; // for read make sure bit6 is 0 //GPIO_ResetBits(TI_TDC1000_CSn_PORT ,TI_TDC1000_CSn_PIN); // CS enable while (SPI_GetFlagStatus(SPI1, SPI_FLAG_TXE)== RESET);… (Show more)
in STM8 MCUs
gustamko.master
Hi,   i use IAR EWSTM8 to debug and flash the STM8S103F3 controller which i have here on a small blue breakout board. Yesterday i flashed the Controller via the ST-Link V2 as always but instead of going into the debug menu, IAR gave me this on the console:   C-SPY Processor Descriptor V2.20.1.176 for STM8 C-SPY Debugger Driver, ST-LINK… (Show more)
in STM8 MCUs
yussi koske
Hello,  i can't get my stm8s105c6t6 i2c to work. Hopefully anybody has an idea what i'm diong wrong. i'm pleased for any imput i can get.    here some changed code which doesn't do anything but i just try to measure anything on PORT E.1 &E.2. Unfortunately  the two Pins remain high (i'm using the std library from stm8): void main(void) {… (Show more)
in STM8 MCUs
Load more items