Using GPIO Pin As SI & SO for SPI interface?

Status
Not open for further replies.

qville_usm

Newbie level 1
Joined
Feb 8, 2007
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
Hi...

I currently do a design using Fujitsu MB91F467 Microcontroller. Right after PCB fab, i found out that the connection for SO & SI pin to SPI EEPROM not according to hardware SPI standard. I've been thinking if i could posibly use the port function as standard GPIO for SPI purpose. The CS & SCK pin is correctly connected. Is anybody know about this? Or any related material suited my need now.

Thx in advance for looking at my problem.

Arigato..
 

Indeed you may use GPIO to make a spi interface. The problem is that if you don't use hardware support it will be a bit slower and will keep the processor busy. The microcontroler will have to control all signals as GPIO (CE, SCL, and MOSI and read MISO).
 
Reactions: FvM

    FvM

    Points: 2
    Helpful Answer Positive Rating
I don't think it is possible to use the hardware SPI clock and custom MISO/MOSI data lines because you can't synchronize the clock with the data.
You have to do it either completely in hardware level for all lines (clock, DI, DO) or use custom pins (GPIO user controlled) for all three signals, a custom clock pin and turn it high/low synchronized with the data in your custom DI/DO pins

Alex
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…