emulate SPI using UART

K

Kelvin Chu

Guest
Hi Group,

I'm a hardware newbie, so please excuse me if this seems like a dumb
question.

I have a UART connection here which I'm trying to use to communicate with a
SPI port...
Is it possible to emulate SPI using a UART port?

I'm trying to do that, but I have read much documentation and it seems that
it is impossible, but is there a really smart way that this can be done?

Thanks

Kelvin
 
Kelvin Chu wrote:
Hi Group,

I'm a hardware newbie, so please excuse me if this seems like a dumb
question.

I have a UART connection here which I'm trying to use to communicate with a
SPI port...
Is it possible to emulate SPI using a UART port?

I'm trying to do that, but I have read much documentation and it seems that
it is impossible, but is there a really smart way that this can be done?

Thanks

Kelvin


kelvin,
You didn't say what processor you are trying to do this with, but the
answer is, probably not.

Standar UARTs have an asynchronus receive, and an asynchronus transmit,
and maybe a few handshaking signals. SPR requires a SYNCHRONOUS clock,
transmit, and receive, as well as a chip select signal. They are very
different beasts. If you have spare pins, you can bit-bang an SPI in
software easier than try to manipulate the UARTs pins to emulate an SPI
port.

Charlie
 
On Thu, 12 May 2005 01:10:05 +1000, "Kelvin Chu" <kc@ih.unsw.edu.au> wroth:

I have a UART connection here which I'm trying to use to communicate with a
SPI port...
Where is the UART? Is it on a microprocessor? Or is it on a desktop
computer?

Jim
 
Hi guys,

Thanks for all the replies so far, you guys have given me another direction
to look at it from

I'm using a CC1010 processor by Chipcon (SPI to program it)
and a FTDI232BM (provides a USB->UART, so PC->ftdi->chipcon)

(I know the FTDI2232C provides a SPI out front, but my school has too many
FTDI232BMs left over :p)

After reading some of your suggestions, I did some more research, and found
that the FTDI232BM supports bit-bang mode !!! (I didn't think of this
before), so I'm now looking into this direction

Again, thanks heaps!,

Kelvin

"Kelvin Chu" <kc@ih.unsw.edu.au> wrote in message
news:d5t78t$ncj$1@tomahawk.unsw.edu.au...
Hi Group,

I'm a hardware newbie, so please excuse me if this seems like a dumb
question.

I have a UART connection here which I'm trying to use to communicate with
a
SPI port...
Is it possible to emulate SPI using a UART port?

I'm trying to do that, but I have read much documentation and it seems
that
it is impossible, but is there a really smart way that this can be done?

Thanks

Kelvin
 

Welcome to EDABoard.com

Sponsor

Back
Top