Skip to main content
umesh_patil
Associate III
September 24, 2019
Question

Microsecond delay using timer in stm32L0

  • September 24, 2019
  • 2 replies
  • 591 views

I want to generate the microsecond delay for stm32l083cz.

when I using the configuration

PLL clock ...32Mhz freq to APB1 which is connected to timer2

PSC -- 32-1 and Period 0xffff-1

Its working perfect and i am able to generate the microsecond delay.

But When I am using

HSE ---8Mhz freq to APB1

PSC to 8-1 and Period 0xffff-1

Delay is not working.

I am watching the count by using __HAL_TIM_SET_COUNT and __HAL_TIM_GET_COUNT for desirable delay.

Please guide me through this.

This topic has been closed for replies.

2 replies

dbgarasiya
Senior
December 28, 2019

If i want to configure timer of 5 sec how can i do it

what are configuration to do ?

dbgarasiya
Senior
December 28, 2019

i am using stm32f779bi controller