I am trying to implement a precision time synchronization scheme over CAN for PWM carrier synchronization.
One way I could think of is to reset the PWM counters through a software ISR. The CAN interrupts have a very low priority and may be blocked by other interrupts leading to reliability issues.
Other way could be to use an external CAN controller with Tx / Rx interrupt lines.
Another way could be to use the CAN Tx interrupt on the time master to capture the sending time and CAN Rx interrupt on the time slaves to capture the local receiving time without any main CPU action. The times can be counter values on a CLB tile. I find this robust well suited to my problem but I cannot figure out any way to route the CAN interrupt lines to the CLB.
Is there a solution to this ?