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

Thread: Two SPI devices on Teensy 4.0

  1. #1
    Member
    Join Date
    Nov 2020
    Location
    Czech Republic
    Posts
    63

    Two SPI devices on Teensy 4.0

    Hi all,
    is possible to conenct two SPI devices, display and 24-bit ADC on Teensy 4.0? I have no clue hot to do it.
    Wiring you can see on picture.
    Could I use same pins and control both devices by software?
    Thanks for any advice.
    Michal

    Click image for larger version. 

Name:	SPI.jpg 
Views:	7 
Size:	38.8 KB 
ID:	27085

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,553
    See Better SPI Bus Design in 3 Steps

    It is possible, as long as the devices are designed to tri-state their MISO to keep the Pin #12 usable.

    SPI BUS on Teensy pins 11, 12, 13 can then be shared to multiple devices for use 'in turn' where each requires a unique CS pin connected.

    And for Teensy 4.0, those pins must see only 3.3V from the device.

  3. #3
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    3,926
    the MISO/MOSI/SCK can be ran in parallel provided the devices tri-state their MISO pin on deassertion of the CS pin. However, the other pins should be different: CS, RST, DRDY, RST etc

Posting Permissions

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