On 2/7/2012 5:04 PM, John Larkin wrote:
> On Tue, 07 Feb 2012 16:27:52 -0700, hamilton<
hami...@nothere.com>
> wrote:
>
>> On 2/7/2012 4:09 PM, John Larkin wrote:
>>>
>>>
>>> I'm designing a test/loopback board for a laser controller. I went to
>>> engineering school for five years for this?
>>>
>>> Anyway, I need to verify the SPI interface on the DUT; it comes out on
>>> a ribbon cable for our customer to use. I was thinking that I could
>>> put the dumbest, easiest to program SPI part in the world on my test
>>> board, and let the uP in the DUT pound on it to verify the link. So,
>>> what's the dumbest SPI chip on the planet?
>>>
>>>
>> spi input or spi output ??
>>
>> spi does not come without a peripheral or a cpu attached.
>>
>>>> it comes out on a ribbon cable for our customer to use.
>>
>> So you need an spi output .... right ?
>>
>> The spi talks to ..... what ?
>
> The board I'm trying to test has an ARM processor with an SPI port:
> MISO, MOSI, ChipSelect, SPIclock, all brought out on a ribbon cable. I
> need to test that port, so I need a target device.
>
>
Hmmm, Still not enough information.
Is the code to test this port on the ARM chip or external to the ARM chip ??
I am sure you understand how an spi port works, so I use this page as a
white board:
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
The second diagram shows Master and Slave devices.
The master sends the slave a byte at the same time as the slave sends a
byte to the master, exchanging data between master and slave.
The master always supplies the clock and chip select to the slave device.
Here is where my question comes from, which device is the master and
which is the slave ?
Most times the sent data or received data is ignored for the sake of the
transaction. I want to receive a byte so I'll send junk to the slave
while the slave sends me real data. Or I want to send data to the slave,
so it will send me data that II will ignore.
Looking at SPI code available on the net shows this type of simplex
transactions.
So, there is no such thing as a dumb SPI chip.
thanks
don