RM0400
-- Configuring the time stamp and timeout registers
-- Configuring the interrupt registers
--Writing the start addresses of all the M_CAN Buffers
--Writing to the RAM for filter configuration
===================================================
--
Writing to TX Buffer
write(M_CAN0,0xF,driver.regs.can0_tscc.addr,0x000);
write(M_CAN0,0xF,driver.regs.can0_tocc.addr,0x000);
write(M_CAN0,0xF,driver.regs.can0_ie.addr,0xFFFFFFFF);
write(M_CAN0,0xF,driver.regs.can0_ils.addr,0x00000002);
write(M_CAN0,0xF,driver.regs.can0_ile.addr,0x00000003);
write(M_CAN0,0xF,driver.regs.can0_gfc.addr,0x000);
write(M_CAN0,0xF,driver.regs.can0_xidam.addr,0x00FFFFFF);
generate and drive M_CAN0 can0_rxf0c keeping {
generate and drive M_CAN0 can0_rxf1c keeping {
generate and drive M_CAN0 can0_sidfc keeping {
generate and drive M_CAN0 can0_xidfc keeping {
generate and drive M_CAN0 can0_txbc
generate and drive M_CAN0 can0_txefc keeping {
DocID027809 Rev 4
CAN Subsystem
.f0sa == 0x100;
.f0s
== 0x03;
.f0wm == 0x01;
};
.f1sa == 0x200;
.f1s
== 0x03;
.f1wm == 0x01;
};
.flssa == 0x000;
.lss
== 0x80;
};
.flesa == 0x080;
.lse
== 0x40;
};
keeping {
.tbsa == 0x300;
.ndtb == 0x020;
.tfqs == 0x1D;
};
.efsa == 0x380;
.efs == 0x020;
.efwm == 0x00;
};
1055/2058
1091
Need help?
Do you have a question about the SPC572L series and is the answer not in the manual?
Questions and answers