hi, has anyone interfaced MCP2515 with ST10F269. i am facing issues with establishing the connection b/w the two. the CAN routines are fine (i suppose), but the SPI interface between the two seems to be the issue. Can anyone please post his/her code if any. This would be of very much great help... Thanks a lot in advance.
Rgds
Well, you should confirm which uC-interface the former design used.
I'm not familar to ST10F, but your pasted code looks like accessing external parallel very much...
82C900 has two different types of interfaces: Parallel and SSC. The wiring and programming upon these two interfaces are quite different.
If your former design used SSC, then it's compatible with basic SPI and could be able to transfered to MCP2515 with some modifications. But if not, it'll need a whole rebuild of the soft (driver layer and mid-layer).