• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

SP1 pin mapping

Scheduled Pinned Locked Moved
Firmware developers
2
4
768
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    jpsantos
    last edited by 12 Dec 2017, 18:56

    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,```
    [[language]]
    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?
    
    Thanks!
    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 12 Dec 2017, 21:37

      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.

      Duet WiFi hardware designer and firmware engineer
      Please do not ask me for Duet support via PM or email, use the forum
      http://www.escher3d.com, https://miscsolutions.wordpress.com

      1 Reply Last reply Reply Quote 0
      • undefined
        jpsantos
        last edited by 18 Dec 2017, 14:12

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

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 18 Dec 2017, 16:59

          Yes.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA