Results 1 to 2 of 2

Thread: HPS SPI Master with more than 4 Slave Selects

  1. #1
    Join Date
    Oct 2013
    Posts
    8
    Rep Power
    1

    Question HPS SPI Master with more than 4 Slave Selects

    Good afternoon,

    for a new hardware project we require an SPI interface from an Arria 10 SoC with more than 4 slave devices / slave selects.
    The Arria 10 SoC SPI Master Controller does only support up to four slave selects according to the documentation though.

    What is a good way to support more than 4 slave selects?

    Any help is highly appriciated.

    Thanks!

  2. #2
    Join Date
    Dec 2016
    Posts
    44
    Rep Power
    1

    Default Re: HPS SPI Master with more than 4 Slave Selects

    A 4->16 decoder with the 4 CS lines as input will allow you to access to 16 slaves.
    The 4 bits of the SER register are sent out (inverted) "as is" on the 4 chip selects lines

    SER register description:
    Each bit in this register corresponds to a slave select line (spim_ss_x_n] from the SPI Master. When a bit in this register is set (1), the corresponding slave select line from the master is activated when a serial transfer begins. It should be noted that setting or clearing bits in this register have no effect on the corresponding slave select outputs until a transfer is started. Before beginning a transfer, you should enable the bit in this register that corresponds to the slave device with which the master wants to communicate. When not operating in broadcast mode, only one bit in this field should be set.

Similar Threads

  1. SPI Master/Slave Interface
    By Deadman in forum VHDL
    Replies: 7
    Last Post: January 16th, 2015, 10:16 AM
  2. I2c master/slave
    By shamlo in forum General Altera Discussion
    Replies: 0
    Last Post: January 23rd, 2014, 09:31 PM
  3. Spi slave and spi master code
    By joselito23 in forum General Discussion Forum
    Replies: 0
    Last Post: April 30th, 2013, 11:29 AM
  4. Spi slave and spi master code
    By joselito23 in forum Altera Forum Website Related
    Replies: 0
    Last Post: April 30th, 2013, 11:29 AM
  5. i2c slave to spi master
    By FERRARO GIUSEPPE in forum General Altera Discussion
    Replies: 1
    Last Post: July 22nd, 2010, 01:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

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