SPI / LCD / SD

Home Forums TinyG TinyG Support SPI / LCD / SD

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8757
    RetroCNC
    Member

    Hi,

    I’m looking to expand the TinyG2 code with a stand-alone operation mode, so I can operate from an LCD and SD card.

    What is the best method of getting access to the SPI port from the G2 code? I see there is the Motate/SamSPI code, but the template instanciation is commented out, and produces an error if it is enabled.

    Is this code even tested / working?

    Thanks!

    #8760
    RetroCNC
    Member

    I’m starting to get my head around it.

    However the default motate pin assignments for the due seem to be wrong for extended SPI. This is what we have —

    _MAKE_MOTATE_SPI_CS_PIN(52, B, 2);
    _MAKE_MOTATE_SPI_CS_PIN(65, B, 1);
    _MAKE_MOTATE_SPI_CS_PIN(77, A, 0);
    _MAKE_MOTATE_SPI_CS_PIN(78, B, 3);

    On the due, pins 10, 4 and 52 correspond to channels 0, 1 and 2 respectively. So the only pin correctly configured above is pin 52. Using any of the others will result in an unexpected CS pin being asserted.

    #8763
    cmcgrath5035
    Moderator

    You are in “low level development land”, you’ll get much better help here

    It is unclear if G2 has much/any support yet for the SD Card capability once you get the pins properly moved.
    Are you using a custom shield?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.