2023-08-10 04:09 AM
i am Initialize UART2 and timer1 then my timer interrupt and UART2 interrupt in working fine but when i set priority timer first they do not set why?
void main(void){
NVIC-Set-Priority(TIM1_BRK_UP_TRG_COM_IRQn, 0);
NVIC-Enable-IRQ(TIM1_BRK_UP_TRG_COM_IRQn); // Timer interrupt enable
NVIC-Set-Priority(USART2_IRQn, 2);
NVIC-Enable-IRQ(USART2_IRQn);
while (1)
{
}
}
Solved! Go to Solution.
2023-08-10 05:37 AM
Maybe your timer interrupts are happening too frequently. Debug the program. Hit pause and see where execution is at.
2023-08-10 05:37 AM
Maybe your timer interrupts are happening too frequently. Debug the program. Hit pause and see where execution is at.
2023-08-17 04:59 AM
thanks sir,
i am done with your solution and my issue is resolve.