Page 1 of 1

SCI/RS232 <=> SPI

Posted: Wed Mar 28, 2007 3:09 pm
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

Posted: Wed Mar 28, 2007 3:34 pm
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 ;)