User Activity

Hello,Regarding this post I am able to read my encoder value correctly. // STM32 TIM3 Encoder Decoder (PC.06:A PC.07:B) VLDiscovery - sourcer32@gmail.com #include ''stm32F10x.h'' #include ''STM32vldiscovery.h'' /**********************...
Here is my source code: void CLOCK(void){ RCC_DeInit(); RCC_LSICmd(ENABLE); RCC_HSEConfig(RCC_HSE_ON); while(RCC_WaitForHSEStartUp()==ERROR); FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable); FLA...
Hello,Here is my source code:  void WatchDog(void){   NVIC_InitTypeDef nvicStructure; NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);   nvicStructure.NVIC_IRQChannel = WWDG_IRQn; nvicStructure.NVIC_IRQChannelPreemptionPriority = 1; nvicSt...
Hello,My timer PWM channel is connected directly to a mosfet driver. By using TIM_Cmd(TIM2, DISABLE);it puts the output at high level. I tried to use TIM_DeInit(TIM2); but it generates an additional pulse in the output ( I count the each PWM pulse in...
int Pulse(void)   {   TIM_TimeBaseInitTypeDef TimeStruct;     RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2,ENABLE);     TIM_SelectInputTrigger(TIM2,TIM_TS_ITR3);//   TIM_SelectSlaveMode(TIM2,TIM_SlaveM...