Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: SPI spi1 pins work around

  1. #1
    Senior Member
    Join Date
    Sep 2016
    Posts
    137

    SPI spi1 pins work around

    Hi


    I re arranged In my previous post the pins to SPI1 and the default SPI. For the max31855 and it works.
    I know you can set the SPI1.setSCK(27) to pin 27 but why isnít this pin used for SPI default. Because the pin 13 SCK is on the other side of the board, which will require you to pass a CLK signal at max 26MHz between your traces of the teensy. Isnít it better to change this to pin 27?

    I tried to swap this but the teensy or library doesnít comply. Screen and max31855 stop working.


    Best regards

    Bastiaan

  2. #2
    Senior Member
    Join Date
    Nov 2015
    Location
    Cold hollow VT
    Posts
    169
    ISTR you are using a T3.5 or T3.6. On those SCK0 is on pin 27 (probably what you meant). I bet Paul used pin #13 as an extension of T3.0 thru T3.2 pins which he tried to make similar/compatible to Arduino. One could certainly use pin #27 as SCK0 especially if it helped in wiring the PCB for your circuit.

  3. #3
    Senior Member
    Join Date
    Sep 2016
    Posts
    137
    Quote Originally Posted by grease_lighting View Post
    ISTR you are using a T3.5 or T3.6. On those SCK0 is on pin 27 (probably what you meant). I bet Paul used pin #13 as an extension of T3.0 thru T3.2 pins which he tried to make similar/compatible to Arduino. One could certainly use pin #27 as SCK0 especially if it helped in wiring the PCB for your circuit.
    I tried that but the SPI devices stopped working. Iíll try tomrrow again

    Thanx

    For the reply!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •