Microsecond delay for STM32G030F6P6TR
Hello I am trying to work with Microseconds delay in my code
so follow this very help full post on web POST
and I configure TIMER 3 ( I have also check with all available timer )
But unfortunately, it doesn't work for my STM32GO3O MCU
/* USER CODE BEGIN 0 */
void delay(uint16_t delay)
{
__HAL_TIM_SET_COUNTER (&htim3,0);
while (__HAL_TIM_GET_COUNTER(&htim3)<delay);
}
/* USER CODE END 0 */
I used pin PA6 to debug the pulse output on the oscilloscope. but PA6 not changing the state.
please help how can I able to work with microseconds delay in STM32G030
