Question
STM32F4 Timer Interrupts , mode Slave , Toggle on match
Hello everyone, I'm asking for your advice. I use stm32f429i-DISC1 board with display(I use) , HCLK = 96 MHz , APB1 = 48 MHz...,
I start the for example timer_1, output compare CH1 (output)
mode=toggle on match ; ...preload = Enable ... , counter period = 500 nSec ; CH1 output is ok ,
but in parallel with this, I want to be able to implement internal interrupts in each period(500nSec)
and output a certain value to the some pin,
but when I start this functions my display begins to not work ,
/// __HAL_TIM_ENABLE_IT(&htim1, TIM_IT_UPDATE); /// conflicted with display ///
or
/// HAL_TIM_Base_Start_IT() (Not Recommended) /// conflicted with display ///
and
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
//if (htim->Instance == TIM1)
if(htim == &htim2 )
{
HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_2);
}
..........
}
and I see that the fastest speed of this interrupt is 2.5 uSec but not 500 nSec .
why is this so ?
How can I solve this issue ?
