Example code for AVR151 (SPI Setup and use)?

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

I'm looking through the AVR151 app-note on how to setup and use the SPI interface and I'm not seeing any code examples/sample code anywhere even though it mentions it.  In fact at the bottom under revision history it mentions:

"Updated the firmware to the latest version of Atmel Studio (Atmel Studio 7) and made minor changes in the document. "

 

Am I missing something?

-Adam
"Please don't judge my God by my inability to follow him" - Chris Mollins
================
www.onecircuit.com
================

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

Go to any atmel avr device page that lists AVR151 under "Documents" and you will see TWO icons alongside. One leads to the PDF you already have while the one that looks like a file folder leads to the ZIP that you clearly don't have.
.
But SPI is so simple I doubt example code has much to show you that isn't already given in the SPI section of the datasheet.

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

Yeah I'm not finding it anywhere. Not sure if it got lost when Microchip took over?  

 

I'm using an ATMega16 and the 2 pages I found that show the PDF are these:

http://www.atmel.com/products/mi...

http://www.microchip.com//wwwApp...

 

But no sign of the zip.

-Adam
"Please don't judge my God by my inability to follow him" - Chris Mollins
================
www.onecircuit.com
================

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

Yeah I'm not finding it anywhere

Not looking very hard:

http://www.atmel.com/products/microcontrollers/avr/megaAVR.aspx?tab=documents

 

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

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

Ah it was under Application notes and not Documents.  Got it... Thanks.

-Adam
"Please don't judge my God by my inability to follow him" - Chris Mollins
================
www.onecircuit.com
================