Announcement

Collapse
No announcement yet.

Programming SPI Flash that has more than one device connected to it

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Programming SPI Flash that has more than one device connected to it

    I'm designing a PCB that converts from PCIE to USB. In my design, I'm including an SPI female header where I can connect it to Dediprog through male connector where I can flash the FW of the VIA LABS vl805:






    I want to know how I can connect to the SPI flash pins (SPISI, SPISO, SPICS#, SPICK) also to the Host controller and also to the SPI Header and to guarantee there is no clashes between the two. is the current connection is right?
    Last edited by Firasgany7; 09-13-2021, 08:06 AM.

  • #2
    This link is from an arduino tutorial and shows multiple device connections

    http://www.learningaboutelectronics....controller.php

    Comment


    • Firasgany7
      Firasgany7 commented
      Editing a comment
      Thanks Steve!

  • #3
    Firasgany7 you would need individual Chipselect for each SPI device. This means, master will only talk to the device which is selected (active), other devices will not react to what is happening on the SPI bus. Also, be sure CLOCK is distributed correctly (e.g. if you are planning to have more masters, then the things may be a little bit more complicated).

    PS: Be careful, be sure you use devices which if they are not active (selected) will have Outputs in HiZ. Some SPI devices do not work this way and they will push HIGH even they are not selected and should not be active. You would need to double check this in datasheet or it may need to be set correctly in registers or in software.

    Comment


    • #4
      Firasgany7 i am Saurabh Kumar hardware design engineer, Mumbai. i have to discuss some feature usb hub controller please reply with your email id.
      i want to design usb 3.1 or usb 3.2 base hub controller can you suggest the chip ic no.

      Comment

      Working...
      X