• AVR Freaks

Hot!dspic33ep256mc506 can bus fifo overflow handling?

Super Member
  • Total Posts : 647
  • Reward points : 0
  • Joined: 2004/05/14 12:49:28
  • Status: offline
2021/01/16 12:20:56 (permalink)
5 (1)

dspic33ep256mc506 can bus fifo overflow handling?

I have 8 buffer locations for can receive in fifo mode. I did not see any overflow for a long test period but I want to handle every situation as usual. My test program is MCC based. I'm calling CAN1_Receive() periodically and if function returns success, I loop until there is no message to read which should empty the fifo. But if there is an overflow situation there seems to be no handle situation in MCC code:
if(C1INTFbits.RBOVIF == 1)
        C1INTFbits.RBOVIF = 0;
        return messageReceived;

In an overflow situation the message is ignored but there is no FIFO flushing, RXFULn or RXOVFn flag clearing.
What should I do to properly handle it? Thanks.

0 Replies Related Threads

    Jump to:
    © 2021 APG vNext Commercial Version 4.5