Altera_Forum
Honored Contributor
20 years agoSPI PUZZLE
Hello, all
I have problems with SPI as follows. As you know, SPI is a 3 wire interface and a SPI should have 3 signals commonly, but in SOPC Builder, a SPI have 4 signals actully. They are sclk, ss_n, mosi and miso. Why? Generally speaking, a chip(such as TLV320AIC23B, which is a stereo audio codec) with SPI interface has 3 SPI pins, and they're clk, ss and data, which is a bidirector signal.Suppose that the SPI is configured as master, and an off-chip device with SPI interface is configured as slave. Then, how should I connect them? And what functions the signal of miso acts in this instance? Anyone can help me? Thanks.