Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

I want to use an I/O port to control an SPI clock and its data.

I want to use an I/O port to control an SPI clock and its data.

2005-07-25 by fangneu

Because my MCU has not enough SPI pins so I can only use I/O pins as 
control SPI.But I'm not sure that the way of the IO pins simulate 
SPI.Should I send a pluse(0),follow it send a datum then send another 
pluse(1).At I/O port,I can only send a datum at the same time and can 
not send a byte or two byte data?

Re: [lpc2000] I want to use an I/O port to control an SPI clock and its data.

2005-07-26 by Charles Manning

On Monday 25 July 2005 13:42, fangneu wrote:
> Because my MCU has not enough SPI pins so I can only use I/O pins as
> control SPI.But I'm not sure that the way of the IO pins simulate
> SPI.Should I send a pluse(0),follow it send a datum then send another
> pluse(1).At I/O port,I can only send a datum at the same time and can
> not send a byte or two byte data?

I will let you into a little secret of mine. I have been using SPI for over 
ten years and have never used an SPI peripheral. I have always bit-banged the 
SPI mastering. I will be changing that for a project I just started though, 
because I need faster speed.

The easiest way to do this is to  the data sheet for the device you are 
talking to and look at the timing diagrams.

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.