How to use two SPI busses with CB1 on Manta M8P

Lots to go through here.

Those pins are the defaults for the SPI2 hardware port. In your printer.cfg you would be able to just specify SPI2.

Looking at the schematic (Manta M8P V1.1), these pins ONLY go to EXP2 - they do not go to the “MCU-CARD” (that’s the SPI1 pins discussed below).

That’s using on the 40pin rPi connector.

That is the default for SPI1

What are the stepper drivers that you’re using. If you’re not using the TMC2130/TMC2160 (ie TMC2208 or TMC2209) then you’re fine.

No worries, I’d agree with that.

It’s called “bit-banging” and a) very well understood and b) well implemented in Klipper.

But, what it appears to me is that you won’t need to use it.

Not what I was asking for - what I was asking about was the SPI devices you want to attach and which ones you want to use.

So, from what I understand, you have three SPI ports available:

  • SPI1 which is the 8 pin connector on the M8P AND used for the motor connectors AND the SD Card socket (as noted above)
  • SPI2 which is coming through the EXP2 connector
  • rPi SPI /dev/spidev1.1 SPI port (which has your ADXL345 already on it)

That leaves the two SPI ports on the M8P for your use. If you are using SPI1 in any way (communicating with SPI TMC Stepper Drivers or using an SD Card for firmware updates) then I’d recommend staying away from it.

Now, above, you mention something about a TFT3.5 which uses an SPI interface -is this still an option?

As noted above, it’s simply SPI2

spi_bus: spi2

I agree that the Klipper reference isn’t really helpful - I suspect that it has to do with the fact that main controller board designers are pretty willy-nilly when it comes to how SPI ports and pins are wired. However, it doesn’t look like the Manta M8P designer wasn’t too bad in selecting the SPI pins.

So, I think we’re in agreement that the SPI2 port would be best to wire the ADS1220.

2 Likes