AT90s2313 SPI interface

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

Not sure if I am in the correcct forum for this but here it goes...

I have quite the stock of the older 2313's that I would like to use in my home automation system.
The question is the spi interface. The datasheet says it is for loading the program memory. I see nothing in the datasheet regarding it's use in applications. I would love to use it to interface to my d/a converter.

The question is: Is there a way I can use the SPI, or do I have to create one in firmware, which would suck. :(

Regards
Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

There is no hardware SPI on that device.
A software SPI would be very easy to write and don't need much code.

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

The only drawback of the firmware SPI is that it is *slightly* slower,
but not much, as AVRs are pretty fast in bit-banging (in particular
if the IO port can be reached through SBI/CBI instructions as it is
the case for all PORTx registers on the AT90S2313).

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

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

Thanks to both of you!

I kinda figured it did not have an SPI, I was kinda hoping since it adveretised one in the datatsheet albeit for program loading

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user