Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

STM32 Timer Output compare not working proper

$
0
0
I am using STM32L476 Nucleo board and cubemx. I want to use Output compare channel 1 for timeout of 2ms. i have configure the timer but timer is not giving interrupt for Output compare. i am getting interrupt for period i gives for timer. but not for output compare. Here is my timer configuration.


Code:
static void MX_TIM1_Init(void)
{

  /* USER CODE BEGIN TIM1_Init 0 */

  /* USER CODE END TIM1_Init 0 */

  TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  TIM_SlaveConfigTypeDef...
STM32 Timer Output compare not working proper

Viewing all articles
Browse latest Browse all 4923

Trending Articles