Software SPI

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I wan't to use a slave SPI port on small AVR's without hardware SPI interface.
Does anyone have code example of software SPI interface in C?

Thanks in advance.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Does Atmel application note AVR320 help any (I didn't actually read it, just went and found it)?

http://www.atmel.com/dyn/product...

Regards,
Steve

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi again,

Also check out project #0165 in the User Projects section of the Academy tab.

Regards,
Steve

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the replies Steve.
I have already read AVR320, I would have mentioned this in my first post, but I forgot - sorry.
Project #165 looks usefull though, I would try to have a look at this project.
http://8515.avrfreaks.net/Freaks...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello anders/all,
I’ve the same question:

Does anyone have code example of software SPI interface in C?

Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's an SPI interface bit-bashed to a 24 bit LTC2440 ADC taking data to output via RS232.

Attachment(s): 

Ralph Hilton

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's another - it gets a frequency from an RS232 connection and bit bashes instuctions to an AD9833 DDS.

Attachment(s): 

Ralph Hilton

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Read this one:

http://www.embedded.com/showArti...

Sergey.

=================================
All your need is CodeVisionAVR + VMLAB
Need help? Ask me mailto:bbigmak@mail.ru