问题还没有解决 我的中断接受程序是这样的 还请strongchen大哥帮忙看看
interrupt void CAN1_InterruptRx(void)
{
if (SerFlag & FULL_RX_BUF) { /* Is any char already present in the receive buffer? */
SerFlag |= CAN1RFLG_OVRIF_MASK; /* If yes then set internal flag OVERRUN */
}
SerFlag |= FULL_RX_BUF; /* Set flag "full RX buffer" */
ErrFlag |= SerFlag; /* Add new error flags into the ErrorFlag status variable */
CAN1RFLG = CAN1RFLG_RXF_MASK; /* Reset the reception complete and release the RX buffer */
}作者: strongchen 时间: 2007-7-13 14:32