STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Why does Timer1 seem to have a slower clock?

I have a common function that I use to set up Timer 5 (I'm using it for PWM output, if it matters):timerCounts = CLK_GetClockFreq() / pow(2, TIM5_PRESALER_xx) / pwmFrequency;TIM5_TimeBaseInit(TIM5_PRESCALER_xx, timerCounts);And that works really well...

AWern.2 by Associate
  • 792 Views
  • 1 replies
  • 0 kudos

Stop iwdg in halt mode on STM8L051F3

HeyI have tried to use the option byte to stop the iwdg when i enter halt.I can see that i manage to set the WDG_HALTin option byte 3.But the watchdog still resets the MCU after i enter halt. Please help me, cant i do it? If so then how do i read tha...

PRasm.3 by Associate II
  • 2790 Views
  • 15 replies
  • 0 kudos

I am getting my MV values in ADC as 268 but for my requirements it should read vge equivalent to 1.31 but I am getting only 0.8 with Vref 3.3v.Can any help me with my configuration is correct .What is my mistake here please

/* MAIN.C file *  * Copyright (c) 2002-2005 STMicroelectronics */#include "stm8s.h"#include "stm8s_clk.h"#include "stm8s_adc1.h"void Clk_Config(void);void ADC_Config(void);void ADC_Read(uint16_t *MV);main(){ unsigned short MV; Clk_Config(); ADC_Confi...

SRAM.11 by Associate III
  • 799 Views
  • 0 replies
  • 0 kudos