This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CAN RAM

What does " writing blank IF register to each message object" in the following code mean?

//clear CAN Msg RAM
void clear_msg_RAM (void)
{
SFRPAGE = CAN0_PAGE; // setting the SFR page
CAN0ADR = IF1CMDMSK; // Point to Command Mask Register 1
CAN0DATL = 0xFF;         // Set direction to WRITE all IF registers to message object
for (i=1;i<33;i++)
{
CAN0ADR = IF1CMDRQST; // Write blank IF registers to each message object
CAN0DATL = i;
}
}

0