CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

maxim max3110 spi uart

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
lewiseley



Joined: 30 Oct 2003
Posts: 24
Location: skegness

View user's profile Send private message Visit poster's website

maxim max3110 spi uart
PostPosted: Sat Oct 14, 2006 4:28 am     Reply with quote

hi
i have been using a software uart, but have now decided to dump it and go for the spi uart from maxim, i also use the i2c bus which i intend to drop as well, and go all spi.

i was hoping that you could detail what i will need.

i am looking to have multiple max 3110's and also frams ( 2 ) all hooked up on the spi bus, i was also considering providing an expansion port to allow another spi master to connect in as well.

are there any pitfalls i should watch out for, ( my chip is a 18f2680 ) , which is the most appropriate mode, do the lines need pullups etc.

any advice will be welcome.

thanks
Ttelmah
Guest







PostPosted: Sat Oct 14, 2006 4:55 am     Reply with quote

The MAX3110, works OK, but is a bit of a pig to get working. Basically, there are a couple of faults in the data sheet, and the 'example' C program supplied wth it, will only work to reliably receive data, if data transmission is taking place at the same time. I have posted in the past a set of interrupt driven drivers for this chip, and this is the way I'd go. So you would need the three SPI lines, a seperate 'select' line to each chip, and a seperate interrupt line from each chip. If you want another SPI master to be able to connect to your processor, then you will need to reserve the hardware SPI port for this, and use software SPI to drive the MAX chips (and any other slave devices). This brings a slight 'timing' downside, requiring the code to spend longer in the interrupt handlers, but should not be too bad...
No pull ups required. However if the SPI lines are going any significant distance, you may need to consider terminating networks.
How many serial ports do you need?. Remember you have two hardware UARTs already present on the 2680, and a Max 3110, has two sets of buffers supplied in each chip, so two of the Maxim chips, will give you four hardware ports with buffers (assuming no hardware handshaking is used).
Email me directly roger at ttelmah dot demon dot co dot uk, if you want to talk about using these chips.

Best Wishes
Ttelmah
Guest







PostPosted: Sat Oct 14, 2006 5:09 am     Reply with quote

Thinking on, the 2680, is one of the smaller chips, that only has the EUSART, not a EUSART+UART, so change the above comment to giving you three ports, not four.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group