mcp2515 spi timing
jrmorgan
Posts: 2
I am having problems getting the spi to work a mcp2515 CAN controller. i dont have a bs2 right now on the bench so i was using a bs1 which needs a different approach to spi. The datasheet says the data output is valid from clock low a max of 45 nanosecs. 2 questions:
does the bs2 command SHIFTIN have faster timing to handle this?
any ideas to get the bs1 to work?
thanks
does the bs2 command SHIFTIN have faster timing to handle this?
any ideas to get the bs1 to work?
thanks
Comments
The BS1 doesn't have the SHIFTIN/SHIFTOUT statements and is much slower than the BS2. There are several Nuts and Volts columns as well as other application notes on using the BS1 with various SPI devices. It basically uses the HIGH and LOW statements or TOGGLE statement to produce the clock and samples the data I/O pin during the proper phase of the clock. It's very slow. An SPI byte transfer takes 12 to 15ms at best since the BS1 only executes 2000 interpretive codes per second.