STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

timer counter

float get_resi(void) in https://gist.github.com/goog/bf784c5f63a199ddbde7cd49db92f73fcould you help to check the get_resi function?im not sure whether my time counter has some issue?

Normal files needed to use STM8 with STVD and Cosmic

I am working on my first STM8 project and getting used to its own flavour of quirks etc.Setting up a new project installs stm8s_interrupt_vector.c which I understand. I want to use the standard peripheral drivers so have downloaded them and added the...

BCowa by Associate II
  • 380 Views
  • 0 replies
  • 0 kudos

timer code

static void TIM1_Config(void) { CLK_PeripheralClockConfig(CLK_Peripheral_TIM1, ENABLE); TIM1_DeInit(); // 2m/ 40 TIM1_TimeBaseInit(39, TIM1_CounterMode_Down, 0xffff, 0); //timer freq = (clock CPU/16) -> 1bit = 1uS -> 92...

Cannot reach the low power consumption target

Hello,I'm starting to use the STM8L family and in particular the STM8L050 MCU. I want to start with low power so i wrote this piece of code : /* MAIN.C file * * Copyright (c) 2002-2005 STMicroelectronics */ #include <stdint.h> #include "stm8l.h" ...

stm8l lcd low power

mcu into active-halt mode, so i can not enable ULP?if i set ulp to 1, then the lcd blinks

0690X00000AA4uSQAT.png

how to disable RX interrupt temporarily

#if I2C_ENABLE USART_ClearITPendingBit(USART1, USART_IT_RXNE); USART_ITConfig(USART1, USART_IT_RXNE, DISABLE); p_write = (uint8_t *)&temp100; sEE_WriteBuffer(p_write, write_addr, 2); USART_ITConfig(USART1, USART_IT_RXNE, ENABLE); printf("i2c write do...