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
sorry for the misconception but as i mentioned in the mail. my current requirement is to use MCP8515 instead of 82C900. i have a working code for 82C900 and has been asked to re-use the SPI part of it.
I have written the CAN controller routines for ST10F<-->MCP2515 and i believe its fine. now as per the requirement when i started re-using the SPI code (from 82C900), i was not able to figure out some difference which i mentioned in my previous post.
i hope i am clear. please excuse me if i confused you.
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).