MSCAN regiester CanHwFIFOThreshold

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Jing1
Level 1
Level 1
5 questions asked 10 sign-ins First reply posted

Specifies the threshold size of Rx FIFO buffer

at which interrupt is triggered to copy the data.

when configured as 2 , the ID use example 0x751 , every time when transimitted at the second twice the irq will triggered . 

when configured as 1 , every time transimitted can trigger the irq . 

what's the actural meaning of this threhold ?

0 Likes
1 Solution
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

It depends on the application. If the CAN bus sends one frame per second to your device, then you can use a FIFO threshold of 1. However, if your data load is heavy, then you should adjust the value of the FIFO threshold to fit your system and application. 

If your application involves heavy data load and the CAN bus is constantly transmitting frames, setting the FIFO threshold to a higher value might be more appropriate. This can help reduce the frequency of interrupts and improve the overall performance of the system.

View solution in original post

0 Likes
3 Replies
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

In general, the threshold size of the Rx FIFO buffer can affect the performance and efficiency of the communication. A smaller threshold size may result in more frequent interrupts and higher CPU utilization, while a larger threshold size may result in longer delays in copying the data and potentially overflowing the buffer.

0 Likes
Jing1
Level 1
Level 1
5 questions asked 10 sign-ins First reply posted

Dear Experts , 

thank your response firstly , 

and could you share me much more about this threshold ? like how should i determin the specific value for every time ? it will be more better if we have some examples.

 

0 Likes
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

It depends on the application. If the CAN bus sends one frame per second to your device, then you can use a FIFO threshold of 1. However, if your data load is heavy, then you should adjust the value of the FIFO threshold to fit your system and application. 

If your application involves heavy data load and the CAN bus is constantly transmitting frames, setting the FIFO threshold to a higher value might be more appropriate. This can help reduce the frequency of interrupts and improve the overall performance of the system.

0 Likes