SP1 pin mapping

  • Hi all,
    I've had a bit more time to play around and I'm looking into adding an SPI to RS485 IC to the SPI1 line, to a DuetEthernet board.
    I'd like to integrate it neatly with the current firmware and so I've seen that the SmartDrivers initialise each TMC spi device with the relevant CS (or enable). The mapping is, as far as I could read,```
    ENABLE_PINS[DRIVES] = { 78, 41, 42, 49, 57, 87, 88, 89, 90, 31, 82, 60 };

    E0_EN 99
    E1_EN 133
    E2_EN 57
    E3_EN 55
    E4_EN 52
    E5_EN 53
    E6_EN 140
    I looked through the code searching for some underlying pin remapping but couldn't see it.
    Can anyone remember how this bit works? Is GlobalTmcEnablePin part of an old deprecated design?

  • administrators

    See https://duet3d.com/wiki/DuetWifi_Pinout_table for the mapping between logical and physical pins.

    I don't recommend that you share the SPI bus for the TMC2660 drivers with anything else. Use the SPI0 bus for additional devices instead. You can pick it up from either the daughter board connector or the external SD card connector.

  • Thanks for the link!
    Ok, will use the SPI0 instead - the daughter board connector is the SPI0 pinout connector by the expansion header, correct?

  • administrators


Log in to reply