cancel
Showing results for 
Search instead for 
Did you mean: 

TIMER and GPIO PIN

Nakata
Associate

Hello,
I'm have a Nucleo board with a STM32F334R8T6
I configured a timer with 10kHz and I'm using the HAL_TIM_PeriodElapsedCallback to call a funtion that will control my motor and read some data with the ADC. I want to check the frequency that the controller function hapens, my first idea was to toggle a GPIO pin every time the function is called, but the frequency is lower than the 10kHz, aprox 7kHz, anyone knows why this is hapenning?

Nakata_2-1722018201849.png

Nakata_0-1722018043049.png

Nakata_1-1722018123342.png

 

0 REPLIES 0