Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Some help required with SPI on AVR162 and MAX3100

Some help required with SPI on AVR162 and MAX3100

2006-02-14 by deonbez2002

Does anybody have a experience of how to setup, connect and transfer 
data via an AVR162 SPI connected to a MAX3100. 

From the MAX3100 datasheet it looks like there is always a 16 bit word 
transfer between the MAX3100 and the connecting device. On the AVR side 
it supports 8bits only. Can I just transfer two bytes after each other 
to satisfy the 16bit transfer ?

Does anyone no of a code library that supports SPI on the AVR that I 
can use as reference ?

Thanks,

Deon.

Re: Some help required with SPI on AVR162 and MAX3100

2006-02-14 by Dave VanHorn

--- In AVR-Chat@yahoogroups.com, "deonbez2002" <deonbez@...> wrote:
>
> Does anybody have a experience of how to setup, connect and transfer 
> data via an AVR162 SPI connected to a MAX3100. 

Long ago, 8 of them talking to an 8535.

> Can I just transfer two bytes after each other 
> to satisfy the 16bit transfer ?

Yes, but don't let /CS go invalid between transfers.

> Does anyone no of a code library that supports SPI on the AVR that I 
> can use as reference ?

I may be able to find it.  But my conclusion at the end was that 
smaller AVRs for each port would have been a better solution. Cheaper, 
more "brains" available, larger buffers, plus I could send new firmware 
as desired.

Re: [AVR-Chat] Re: Some help required with SPI on AVR162 and MAX3100

2006-02-14 by Leon Heller

----- Original Message ----- 
Show quoted textHide quoted text
From: "Dave VanHorn" <dvh@dvanhorn.org>
To: <AVR-Chat@yahoogroups.com>
Sent: Tuesday, February 14, 2006 4:49 AM
Subject: [AVR-Chat] Re: Some help required with SPI on AVR162 and MAX3100


> --- In AVR-Chat@yahoogroups.com, "deonbez2002" <deonbez@...> wrote:
>>
>> Does anybody have a experience of how to setup, connect and transfer
>> data via an AVR162 SPI connected to a MAX3100.
>
> Long ago, 8 of them talking to an 8535.
>
>> Can I just transfer two bytes after each other
>> to satisfy the 16bit transfer ?
>
> Yes, but don't let /CS go invalid between transfers.
>
>> Does anyone no of a code library that supports SPI on the AVR that I
>> can use as reference ?
>
> I may be able to find it.  But my conclusion at the end was that
> smaller AVRs for each port would have been a better solution. Cheaper,
> more "brains" available, larger buffers, plus I could send new firmware
> as desired.

I designed a system like that a few years ago for a comms hub - four 2313s 
connected to a mid-range PIC via SPI. I used software SPI on the 2313s.

Leon
--
Leon Heller, G1HSM
leon.heller@bulldoghome.com
http://www.geocities.com/leon_heller

Re: Some help required with SPI on AVR162 and MAX3100

2006-02-16 by deonbez2002

Dave,

Thanks for the advice of using smaller AVRs. I will use that solution 
in future.

I have a current product with a Max3100 and will appreciate it if you 
can lay you hands on the code and forward it to me.

Deon Bez.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.