Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dumbest SPI chip

18 views
Skip to first unread message

John Larkin

unread,
Feb 7, 2012, 6:09:28 PM2/7/12
to


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?


--

John Larkin, President
Highland Technology, Inc

jlarkin at highlandtechnology dot com
http://www.highlandtechnology.com

Precision electronic instrumentation
Picosecond-resolution Digital Delay and Pulse generators
Custom laser controllers
Photonics and fiberoptic TTL data links
VME thermocouple, LVDT, synchro acquisition and simulation

hamilton

unread,
Feb 7, 2012, 6:27:52 PM2/7/12
to
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 ?

lang...@fonz.dk

unread,
Feb 7, 2012, 6:49:21 PM2/7/12
to
On 8 Feb., 00:09, John Larkin <jlar...@highlandtechnology.com> 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 can be so many thing it is impossible to say.
4 wires? 3 wires? data on rising/falling edge of clock?
minimum time from enable to clock? minimum time from last clock to !
enable? turn around from input to output on data?
number of bits per read/write? to mention some

figure out what it needs to talk to and simulate that with what ever
fpga/cpld board you have around

-Lasse

bitrex

unread,
Feb 7, 2012, 7:01:34 PM2/7/12
to
On 2/7/2012 6: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?
>
>

What about an SPI relay driver?

http://parts.digikey.com/1/parts/573298-ic-spi-driver-relay-ctrl-pdso-24-tle7232g.html

Use the outputs to blink some LEDs, or something.

Bob

unread,
Feb 7, 2012, 6:59:56 PM2/7/12
to
On Feb 7, 3:09 pm, John Larkin <jlar...@highlandtechnology.com> 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?
>
> --
>
> John Larkin, President
> Highland Technology, Inc
>
> jlarkin at highlandtechnology dot comhttp://www.highlandtechnology.com
>
> Precision electronic instrumentation
> Picosecond-resolution Digital Delay and Pulse generators
> Custom laser controllers
> Photonics and fiberoptic TTL data links
> VME thermocouple, LVDT, synchro   acquisition and simulation

I'd say, if you're familiar with them, that one of the PICs is about
as easy as it gets. We use these for quick and dirty test interfaces
around our labs:
www.olimex.com/dev/pic-lcd3310.html $68 in stock at Mouser.

Phil Hobbs

unread,
Feb 7, 2012, 7:02:10 PM2/7/12
to
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?



A 74HC595 shift register and 8 LEDs with resistors.

Cheers

Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510
845-480-2058

hobbs at electrooptical dot net
http://electrooptical.net

John Larkin

unread,
Feb 7, 2012, 7:04:48 PM2/7/12
to
On Tue, 07 Feb 2012 16:27:52 -0700, hamilton <hami...@nothere.com>
wrote:
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.

Spehro Pefhany

unread,
Feb 7, 2012, 7:06:21 PM2/7/12
to
On Tue, 07 Feb 2012 15:09:28 -0800, the renowned John Larkin
<jla...@highlandtechnology.com> 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?

How about a 25AA010AT 128x8 SPI EEPROM? Write and verify. SOT-23-6.
Sells for 30 cents or so.


Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
sp...@interlog.com Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com

Martin Riddle

unread,
Feb 7, 2012, 7:10:04 PM2/7/12
to

"John Larkin" <jla...@highlandtechnology.com> wrote in message
news:0eb3j7lo5rl6buks4...@4ax.com...
>
>
> 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?
>
>
> --

74HC595? I think the Clk needs to be inverted to make it compliant.
Hang some LED on the outputs and watch them flicker?

Or NXP has some LED/Peripheral drivers that are SPI/I2C

Or maybe these are too Dumb.

Cheers


miso

unread,
Feb 7, 2012, 7:17:24 PM2/7/12
to
On 2/7/2012 3: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?
>
>
DOS and bit banging the parallel port.

bitrex

unread,
Feb 7, 2012, 7:23:15 PM2/7/12
to
On 2/7/2012 7:02 PM, Phil Hobbs wrote:
> 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?
>
>
>
> A 74HC595 shift register and 8 LEDs with resistors.
>
> Cheers
>
> Phil Hobbs

The only disadvantage I see with the 74HC595 is that it doesn't have a
MISO pin, so there's no way to verify that that component of the
protocol is working correctly.

John Larkin

unread,
Feb 7, 2012, 7:26:56 PM2/7/12
to
On Tue, 07 Feb 2012 19:02:10 -0500, Phil Hobbs
<pcdhSpamM...@electrooptical.net> wrote:

>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?
>
>
>
>A 74HC595 shift register and 8 LEDs with resistors.
>
>Cheers
>
>Phil Hobbs

I need something I can write to and read back from, to test all four
SPI port lines.

I could loop MOSI to MISO; we verified that the ARM will talk to
itself that way, but that doesn't test chip select or clock integrity,
and MISO could be shorted to MOSI on the DUT board, and we'd miss
that. Policy is that a production test should catch all reasonably
possible opens/shorts/bad parts/assembly errors.

Maybe I'll just use an SPI eeprom, and write a 16-bit test pattern
then read it back. That would test the entire port, but that is a mild
nuisance to program. But then, I don't have to write the code!

The HC595 works if I shift 16 bits in and out and manually read the
LEDs, but that's not as automated as it might be.

John Larkin

unread,
Feb 7, 2012, 7:28:46 PM2/7/12
to
The shift register does have input and output available, so I could
test MISO/MOSI/CLOCK. But not CS, except by eyeballing LEDs.

bitrex

unread,
Feb 7, 2012, 7:30:36 PM2/7/12
to
On 2/7/2012 7:28 PM, John Larkin wrote:
> On Tue, 07 Feb 2012 19:23:15 -0500, bitrex
> <bit...@de.lete.earthlink.net> wrote:
>
>> On 2/7/2012 7:02 PM, Phil Hobbs wrote:
>>> 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?
>>>
>>>
>>>
>>> A 74HC595 shift register and 8 LEDs with resistors.
>>>
>>> Cheers
>>>
>>> Phil Hobbs
>>
>> The only disadvantage I see with the 74HC595 is that it doesn't have a
>> MISO pin, so there's no way to verify that that component of the
>> protocol is working correctly.
>
> The shift register does have input and output available, so I could
> test MISO/MOSI/CLOCK. But not CS, except by eyeballing LEDs.
>
>

Oh right, I forgot about the daisy chaining output.

John Larkin

unread,
Feb 7, 2012, 7:30:52 PM2/7/12
to
No, it's the other way: the DUT has an ARM with a master SPI port, and
I need a target devive to prove that the SPI port works. I want to put
that on my test board.

John Larkin

unread,
Feb 7, 2012, 7:33:25 PM2/7/12
to
On Tue, 07 Feb 2012 19:06:21 -0500, Spehro Pefhany
<spef...@interlogDOTyou.knowwhat> wrote:

>On Tue, 07 Feb 2012 15:09:28 -0800, the renowned John Larkin
><jla...@highlandtechnology.com> 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?
>
>How about a 25AA010AT 128x8 SPI EEPROM? Write and verify. SOT-23-6.
>Sells for 30 cents or so.
>
>
>Best regards,
>Spehro Pefhany

Yeah, I might just use an EEPROM. We have SO8's in stock, AT93C86A.
It's a little messy to program, but not too bad.

Spehro Pefhany

unread,
Feb 7, 2012, 7:48:37 PM2/7/12
to
On Tue, 07 Feb 2012 16:33:25 -0800, the renowned John Larkin
<jla...@highlandtechnology.com> wrote:

>On Tue, 07 Feb 2012 19:06:21 -0500, Spehro Pefhany
><spef...@interlogDOTyou.knowwhat> wrote:
>
>>On Tue, 07 Feb 2012 15:09:28 -0800, the renowned John Larkin
>><jla...@highlandtechnology.com> 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?
>>
>>How about a 25AA010AT 128x8 SPI EEPROM? Write and verify. SOT-23-6.
>>Sells for 30 cents or so.
>>
>>
>>Best regards,
>>Spehro Pefhany
>
>Yeah, I might just use an EEPROM. We have SO8's in stock, AT93C86A.
>It's a little messy to program, but not too bad.

Aren't they Microwire rather than SPI?

Phil Hobbs

unread,
Feb 7, 2012, 7:54:18 PM2/7/12
to
You can daisy chain them--put SDO to MISO.

lang...@fonz.dk

unread,
Feb 7, 2012, 8:11:33 PM2/7/12
to
On 8 Feb., 01:30, John Larkin <jlar...@highlandtechnology.com> wrote:
> On Tue, 07 Feb 2012 16:17:24 -0800, miso <m...@sushi.com> wrote:
> >On 2/7/2012 3: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?
>
> >DOS and bit banging the parallel port.
>
> No, it's the other way: the DUT has an ARM with a master SPI port, and
> I need a target devive to prove that the SPI port works. I want to put
> that on my test board.
>

even easier then, just configure the pins as GPIO in the test program
and test the connections that way

-Lasse

k...@att.bizzzzzzzzzzzz

unread,
Feb 7, 2012, 9:05:07 PM2/7/12
to
On Tue, 07 Feb 2012 15:09:28 -0800, John Larkin
<jla...@highlandtechnology.com> 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?

Do you have complete control of the SPI interface? How about a dual D-FF?
Connect D1 to MOSI, SCK to Clk1, Q1 to D2, SS to Clk2, and Q2 to MISO; a 1-bit
SPI port.

John Larkin

unread,
Feb 7, 2012, 9:27:56 PM2/7/12
to
The SPI pins on this ARM chip (LPC3250) can't be programmed to be
GPIOs.

John

--

John Larkin, President Highland Technology Inc
www.highlandtechnology.com jlarkin at highlandtechnology dot com

Precision electronic instrumentation
Picosecond-resolution Digital Delay and Pulse generators
Custom timing and laser controllers
Photonics and fiberoptic TTL data links
VME analog, thermocouple, LVDT, synchro, tachometer
Multichannel arbitrary waveform generators

John Larkin

unread,
Feb 7, 2012, 9:32:51 PM2/7/12
to
On Tue, 07 Feb 2012 19:48:37 -0500, Spehro Pefhany
<spef...@interlogDOTyou.knowwhat> wrote:

>On Tue, 07 Feb 2012 16:33:25 -0800, the renowned John Larkin
><jla...@highlandtechnology.com> wrote:
>
>>On Tue, 07 Feb 2012 19:06:21 -0500, Spehro Pefhany
>><spef...@interlogDOTyou.knowwhat> wrote:
>>
>>>On Tue, 07 Feb 2012 15:09:28 -0800, the renowned John Larkin
>>><jla...@highlandtechnology.com> 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?
>>>
>>>How about a 25AA010AT 128x8 SPI EEPROM? Write and verify. SOT-23-6.
>>>Sells for 30 cents or so.
>>>
>>>
>>>Best regards,
>>>Spehro Pefhany
>>
>>Yeah, I might just use an EEPROM. We have SO8's in stock, AT93C86A.
>>It's a little messy to program, but not too bad.
>
>Aren't they Microwire rather than SPI?
>
>
>Best regards,
>Spehro Pefhany

Microwire is, technically, a subset of SPI. We can certainly program
the ARM's SPI port to talk to the AT93C86A.


--

John Larkin, President Highland Technology Inc
www.highlandtechnology.com jlarkin at highlandtechnology dot com

Precision electronic instrumentation
Picosecond-resolution Digital Delay and Pulse generators
Custom timing and laser controllers
Photonics and fiberoptic TTL data links

John Larkin

unread,
Feb 7, 2012, 9:35:06 PM2/7/12
to
Yeah, that would work. We know that the ARM will do simultaneous SPI
output and input. We'd have to run a few cases to prove that
everything works.


--

John Larkin, President Highland Technology Inc
www.highlandtechnology.com jlarkin at highlandtechnology dot com

Precision electronic instrumentation
Picosecond-resolution Digital Delay and Pulse generators
Custom timing and laser controllers
Photonics and fiberoptic TTL data links

k...@att.bizzzzzzzzzzzz

unread,
Feb 7, 2012, 9:47:08 PM2/7/12
to
On Tue, 07 Feb 2012 18:35:06 -0800, John Larkin
<jjla...@highNOTlandTHIStechnologyPART.com> wrote:

>On Tue, 07 Feb 2012 21:05:07 -0500, "k...@att.bizzzzzzzzzzzz"
><k...@att.bizzzzzzzzzzzz> wrote:
>
>>On Tue, 07 Feb 2012 15:09:28 -0800, John Larkin
>><jla...@highlandtechnology.com> 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?
>>
>>Do you have complete control of the SPI interface? How about a dual D-FF?
>>Connect D1 to MOSI, SCK to Clk1, Q1 to D2, SS to Clk2, and Q2 to MISO; a 1-bit
>>SPI port.
>
>Yeah, that would work. We know that the ARM will do simultaneous SPI
>output and input. We'd have to run a few cases to prove that
>everything works.

Or just bit-bang it.

John Larkin

unread,
Feb 7, 2012, 9:58:33 PM2/7/12
to
On Tue, 07 Feb 2012 21:47:08 -0500, "k...@att.bizzzzzzzzzzzz"
<k...@att.bizzzzzzzzzzzz> wrote:

>On Tue, 07 Feb 2012 18:35:06 -0800, John Larkin
><jjla...@highNOTlandTHIStechnologyPART.com> wrote:
>
>>On Tue, 07 Feb 2012 21:05:07 -0500, "k...@att.bizzzzzzzzzzzz"
>><k...@att.bizzzzzzzzzzzz> wrote:
>>
>>>On Tue, 07 Feb 2012 15:09:28 -0800, John Larkin
>>><jla...@highlandtechnology.com> 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?
>>>
>>>Do you have complete control of the SPI interface? How about a dual D-FF?
>>>Connect D1 to MOSI, SCK to Clk1, Q1 to D2, SS to Clk2, and Q2 to MISO; a 1-bit
>>>SPI port.
>>
>>Yeah, that would work. We know that the ARM will do simultaneous SPI
>>output and input. We'd have to run a few cases to prove that
>>everything works.
>
>Or just bit-bang it.

This NXP chip has bizarre restrictions on pin use. Some are I/O; some
are input only, some output only. The output-only pins power up in
various high/low states. The SPI port I'm testing can't be repurposed
to DIO. We've figured out most of the quirks, but we've been bit a few
times. Some of the things we know about SPI had to be determined by
experiment.

hamilton

unread,
Feb 8, 2012, 12:46:44 AM2/8/12
to
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

Jasen Betts

unread,
Feb 8, 2012, 6:33:07 AM2/8/12
to
On 2012-02-08, John Larkin <jla...@highlandtechnology.com> wrote:
> On Tue, 07 Feb 2012 19:23:15 -0500, bitrex
><bit...@de.lete.earthlink.net> wrote:
>
>>The only disadvantage I see with the 74HC595 is that it doesn't have a
>>MISO pin, so there's no way to verify that that component of the
>>protocol is working correctly.
>
> The shift register does have input and output available, so I could
> test MISO/MOSI/CLOCK. But not CS, except by eyeballing LEDs.

Wire CS to the reset pin also. if you don't asert CS it you don't
(eventually) get back what you sent, can test for that in software.


--
⚂⚃ 100% natural

--- Posted via news://freenews.netfront.net/ - Complaints to ne...@netfront.net ---

Nico Coesel

unread,
Feb 8, 2012, 8:47:48 AM2/8/12
to
John Larkin <jla...@highlandtechnology.com> 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?

A small flash / eeprom memory? You could read the device ID. For
testing you want to be able to do something usefull.

--
Failure does not prove something is impossible, failure simply
indicates you are not using the right tools...
nico@nctdevpuntnl (punt=.)
--------------------------------------------------------------

Joe Chisolm

unread,
Feb 8, 2012, 1:29:51 PM2/8/12
to
On Tue, 07 Feb 2012 19:06:21 -0500, Spehro Pefhany wrote:

> On Tue, 07 Feb 2012 15:09:28 -0800, the renowned John Larkin
> <jla...@highlandtechnology.com> 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?
>
> How about a 25AA010AT 128x8 SPI EEPROM? Write and verify. SOT-23-6.
> Sells for 30 cents or so.
>
>
> Best regards,
> Spehro Pefhany

I second this but I would use something like a 25AA02E48 with the
pre-programmed mac address. This gives you a known value on a read.
You can check that a read of the OID matches the Microchip OID. You
can also program the upper 1/4 with some values and then lock them down.

--
Chisolm

lang...@fonz.dk

unread,
Feb 8, 2012, 2:40:53 PM2/8/12
to
On 8 Feb., 03:27, John Larkin
<jjlar...@highNOTlandTHIStechnologyPART.com> wrote:
> On Tue, 7 Feb 2012 17:11:33 -0800 (PST), "langw...@fonz.dk"
>
>
>
>
>
>
>
>
>
> <langw...@fonz.dk> wrote:
> >On 8 Feb., 01:30, John Larkin <jlar...@highlandtechnology.com> wrote:
> >> On Tue, 07 Feb 2012 16:17:24 -0800, miso <m...@sushi.com> wrote:
> >> >On 2/7/2012 3: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?
>
> >> >DOS and bit banging the parallel port.
>
> >> No, it's the other way: the DUT has an ARM with a master SPI port, and
> >> I need a target devive to prove that the SPI port works. I want to put
> >> that on my test board.
>
> >even easier then, just configure the pins as GPIO in the test program
> >and test the connections that way
>
> >-Lasse
>
> The SPI pins on this ARM chip (LPC3250) can't be programmed to be
> GPIOs.
>

usermanual says they can, looking at the registers it does look like
they can
though with the limitation that some of the pins are output only

-Lasse

John Larkin

unread,
Feb 8, 2012, 3:02:44 PM2/8/12
to
On Tue, 07 Feb 2012 22:46:44 -0700, hamilton <hami...@nothere.com>
Since one end is an ARM processor with SPI interface, and the other
end is the dumbest available SPI device, do you think that maybe I
should make the ARM the master?

lang...@fonz.dk

unread,
Feb 8, 2012, 3:18:44 PM2/8/12
to
On 8 Feb., 21:02, John Larkin <jlar...@highlandtechnology.com> wrote:
> On Tue, 07 Feb 2012 22:46:44 -0700, hamilton <hamil...@nothere.com>
> wrote:
>
>
>
>
>
>
>
>
>
> >On 2/7/2012 5:04 PM, John Larkin wrote:
> >> On Tue, 07 Feb 2012 16:27:52 -0700, hamilton<hamil...@nothere.com>
the usermanual say you have no choice, it is master only
"dummest" possible spi device would be something like one or more
'595 in string

spiclk,dout,din,ce to sclk,sin,sout,rclk


-Lasse

hamilton

unread,
Feb 8, 2012, 4:10:11 PM2/8/12
to
Yes,

As testing would require that ability to read/write multi-data, it would
seem to be best that a spi memory device be used.

It would be self contained and you can write/read many times.

We have just upgraded our serial eeprom device (CAT25256) to a F-RAM
device (FM25W256).

The cost for the F-RAM part is 5x the cost of the eeprom.
But the life of the F-RAM part is almost forever (10^6 write cycles
compared to 10^14 write cycles)

If you only need 2-3 for building your test fixture, I am sure you can
get samples from Ramtron.com

hamilton

John Larkin

unread,
Feb 8, 2012, 5:02:58 PM2/8/12
to
On Wed, 08 Feb 2012 14:10:11 -0700, hamilton <hami...@nothere.com>
Let's see: at $3000 per DUT, one write cycle per test, 1e6 cycles, we
wear out the test fixture after a mere $3 billion of revenue. Hmmm, we
may have to consider a wear leveling algorithm.

hamilton

unread,
Feb 8, 2012, 7:20:27 PM2/8/12
to
LOL, I am sure your programmers would like to write more then one write
cycle per test. Its just fun.

I am sure your investors would tolerate with only $1B in revenue !!


Ralph Barone

unread,
Feb 8, 2012, 10:45:15 PM2/8/12
to
Remember, look after the pennies and the dollars will take care of
themselves.

josephkk

unread,
Feb 12, 2012, 9:04:27 PM2/12/12
to
On Tue, 07 Feb 2012 18:58:33 -0800, John Larkin
All said and done a PIC dev kit or AVR dev kit sounds like the easy way to
go. Yeah, you have to write some SW but then you could publish it for
fame. You could even arrange to R/W the test data via USB

?-)

John Larkin

unread,
Feb 12, 2012, 11:54:05 PM2/12/12
to
PICs and AVRs are slow. The LPC3250 is a 32-bit, 260 MHz ARM with
vector floating point and all sorts of peripherial goodies. But I
suspect they bought a bunch of outside IP (like DRAM controllers, ADC,
ethernet, not to mention the ARM core itself) and sort of shoveled it
all onto one chip.

Simon S Aysdie

unread,
Feb 13, 2012, 6:00:35 PM2/13/12
to
On Feb 7, 3:09 pm, John Larkin <jlar...@highlandtechnology.com> wrote:
> 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?

It is already mentioned, but the 74HC595 IC and also the 74HC165 IC.
I have used them quite a bit. NXP has the BQ package, which is the
smallest I know of.

When chaining them, one has to be careful about the clock edge hold
and setup times to the various units in the chain if it is to be
guaranteed. At least, theoretically one has to be careful. If you
only need 8 bits, you're in fat-city.

I have a 16-, 24-, and 40-bit loop-backed chains of 595/165 on the PCA
I'll have released this summer. Never have any problems...

josephkk

unread,
Feb 16, 2012, 12:27:17 AM2/16/12
to
On Sun, 12 Feb 2012 20:54:05 -0800, John Larkin
Gee, you claim to be a business owner. How much does the LPC3250 cost
relative to a PIC or ATtiny to be a minimal SPI device? Or did you lose
context again, or is it a prejudice?

?-)
0 new messages