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.