1 out of 1 members found this post helpful.
Did you find this post helpful?

|
Re: CAN header and EXT asm question
Watch out for the slew rate control bit in PICS.
It defaults to on in the PIC18F26K80!
This screwed me for hours as the SPI just kept falling over above 1mhz.
Not enough drive power for the circuit capacitance etc.
Once I found the SLRCON register and cleared it the SPI bus would run happily at 10mhz with the PIC overclocked to 80mhz.
In the end I dropped back to 8mhz and 64mhz for the bus and pic respectively.
IIRC 10mhz SPI is the maximum for the MCP2515 running with an 8mhz crystal.
Bookmarks