Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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: 63

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,

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: 41

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top