SPI (software based) code or reference needed for AT89c51

Thread Starter

tension885

Joined Apr 6, 2008
1
hi,
i need some good reference or sample code for software based SPI
for AT89c51 (only for master side).i have searched but not getting code or reference which show how to implement SPI in software. so please help me with your valuable
suggestions and ideas or experience.
also what is SPI mode 0,0 and 1,1?? how they will be implemented in software?

please do reply
 

hgmjr

Joined Jan 28, 2005
9,027
This link will take you to an application note on the SPI interface at the ATMEL website. It may not be exactly what you are looking for but the information it contains could serve as a starting point for your coding efforts.

hgmjr
 

Arm_n_Legs

Joined Mar 7, 2007
186
What do you mean software based SPI? Are you trying to generating signal on a 8051 without a built-in SPI hardware? Then you would need to have a good understanding of the SPI protocol and simply pulse the I/O pins to generate the required signals.
 
Top