In STM8 I read two adc channel on adc interrupt for Ac voltage and current reading. please provide suggestion and example of multi channel adc reading on interrupt
please provide suggestion and example of multi channel adc reading on interrupt
Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.
please provide suggestion and example of multi channel adc reading on interrupt
Posted on August 02, 2016 at 13:24I have a weird condition in which the STM8S003 does not read the entire packet I'm sending using a PC serial port. For example I have sent 256 bytes using a PC software but at the end I have only read 214 bytes inst...
the function where taken from st spl main() ; TIM1_DeInit(); GPIO_DeInit(GPIOC); GPIO_Init(GPIOC, GPIO_PIN_1, GPIO_MODE_OUT_PP_HIGH_FAST); //TIM1_TimeBaseInit(0, TIM1_COUNTERMODE_UP, 4095, 0); TIM1->CCER1 = 0x77 ; TIM1->CCER2 = 0x37 ; TIM1->C...
We can get the information that the CPUDIV can be used to divide fMATESR for CPU. And the divide ration can up to 128:1. I wonder that when you configure CPUDIV to 128:1, can CPU works normally when access peripherals such as I2C. Or CPUDIV is just ...
#include "stm8s.h"#define I2C_PORT (GPIOB)#define SDA_pin (GPIO_PIN_5)#define SCL_pin (GPIO_PIN_4)#define SLAVE_ADDRESS 0x60#define I2C_OWN_ADDRESS 0x00static void CLK_Config(void);void I2C_init(void);void I2C_Write(uint8_t I2C_Slave_Address,ui...
Hi,Does ST have some code samples to use PWM on STM8L151 ??If so, where can I find it?Thanks,Itai
Hi. I am writing very time sensitive code on the STM8 mostly using assembly. However, I have noticed that sometimes adding one cycle of delay at one point in the code changing the timing of the whole code. I will explain in more detail to clarify. I ...
I have initialized TIM1 timer with:TIM1_DeInit();TIM1_TimeBaseInit(16, TIM1_COUNTERMODE_UP, 1000, 0);TIM1_SetCounter(0);TIM1_ITConfig(TIM1_IT_UPDATE, ENABLE);TIM1_Cmd(ENABLE);But calls to TIM1_GetCounter(); return the value 2. I can see the counter ...