Part Number: AM263P4-Q1
MCAN_getOpMode() after calling MCAN_setOpMode(). How long does it usually take to switch to initialization mode or normal mode with MCAN_setOpMode()? Also, what would be the worst-case duration?This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM263P4-Q1
MCAN_getOpMode() after calling MCAN_setOpMode(). How long does it usually take to switch to initialization mode or normal mode with MCAN_setOpMode()? Also, what would be the worst-case duration?Hi Imaoka,
Thanks for reaching out with this excellent question. There is some synchronization that occurs during a CPU write to the MCAN registers to account for the differences in the internal operating clock and functional CAN bus clock. I was unable to find a hard defined number or value for the common or worst-case timings for switching between INIT and NORMAL operating modes. Most of the timeout example codes I have seen, use a max timeout value of 1 second. This seems like a valid option, though my recommendation would be to implement a test timer in your code to measure the actual time taken for the switch in your application. You can then determine a more accurate timeout period accounting for typical case + guardbands.
Best Regards,
Zackary Fleenor