SCI/RS232 <=> SPI

This is the place for any magazine-related discussions that don't fit in any of the column discussion boards below.
Post Reply
divzr0
Posts: 8
Joined: Mon Nov 14, 2005 1:01 am
Location: Philadelphia
Contact:

SCI/RS232 <=> SPI

Post by divzr0 »

Hey guys looking for some input here....

I'm looking for the easiest way to convert rs232/sci to a spi signal.

Background:
I'm using a microcontroller Motorola s12 series that only has one SCI port that will be used for programming/sending data to a pc. I'm also trying to use the maxbotix sensors that are often advertised in nv. If I use rs232 I can poll all sensors at once instead of each on individually. My dev board has an open spi port so I'd like to do it that way. Or is it just easier to write a serial software driver using capture/compare channels.

Thanks
Gorgon
Posts: 325
Joined: Wed May 04, 2005 1:01 am
Location: Norway
Contact:

Post by Gorgon »

You could use a SPI UART chip to add a new serial channel to the micro, like the max3100.

Depending on the traffic, you could multiplex the SCI to 2 RS232 drivers with a couple of gates so you could switch between the PC and the sensors.

TOK ;)
Gorgon the Caretaker - Character in a childrens TV-show from 1968. ;)
Post Reply

Who is online

Users browsing this forum: No registered users and 74 guests