interrupt real time imcrement some function
Hi,
we want to use some function,
scenario 1:
we have a dimmer,and then we have a 50 hz signal it can every 10ms send to interrupt pin,if we receive the signal we can send PWM signal, we must to real time handle the signal, how can i use RTOS function in interrupt?
and then it can not affect RTOS kernrl operation.
thanks
best regard,
Eric
interrupt real time imcrement some function
I’m afraid your question is not clear to me.
Are you asking how to ensure interrupt latency is not effected by the
kernel? If so then it depends on the microcontroller you are using. If
you are using a FreeRTOS port that supports interrupt nesting then set
the interrupt’s priority above configMAXSYSCALLINTERRUPTPRIORITY as
the kernel will only disable interrupt at or lower than that priority.
https://www.freertos.org/a00110.html#kernelpriority