SPI protocol software implementation

Status
Not open for further replies.

Fan174

Member level 2
Joined
Mar 27, 2018
Messages
51
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
413
Good evening to all

I am trying to flow chart to implement the bit banging method of spi interfacing. I have made it mine

I have attached flow chart. Please Help me to make it correct
 

Attachments

  • SPI flow chart.pdf
    175.9 KB · Views: 64

Hi,

not bad. But you have to take care about timing.
CLK=LOW and without delay CLK=HIGH may violate the specifications.

CS is never set HIGH.

*****
Instead of bit bang mode:
I recommend to use a modern microcontroller with SPI periferal included.
Cheaper, faster, easier...

Klaus
 


Hi Klaus

I have one query

Let's say I have PIC16F877A with inbuilt SPI and slave device (AT25HP256)

I have attached datasheet AT25HP256

How many slave devices (AT25HP256) we can connect at SPI Bus?
 

Attachments

  • AT25HP256_AT25HP512_doc1113.pdf
    277.7 KB · Views: 43

How many slave devices (AT25HP256) we can connect at SPI Bus?
As many as independent CS signals can be provided in your design.
 

Hi,

As many as independent CS signals can be provided in your design.
and additionally this is independent whether you use inbuilt SPI or bit bang SPI.

Klaus
 

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…