How to use SPI in Atmel SAME70 xplained

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

HI, Am new to Atmel SAM processors.

I really need some help with the ASF programming.

 

Can anybody provide a sample code to demonstrate data transfer using SPI?

smiley

This topic has a solution.

Silly beans are always silly
:)

Last Edited: Tue. Nov 29, 2016 - 11:12 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

File -> New -> Example projects...  There is an example project titled "SPI Example - SAME70 XPLD"

 

BTW, you posted in the wrong community.  You should have posted here.

 

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

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

Sorry, Am new to this.

I'll keep that in mind in my next post.

laugh

 

By any means can I move this post to that location?

Silly beans are always silly
:)

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

Hi Guys,

 

I have managed to get the SPI working.

But now am in a confusion like, hot to change the SPI clock frequency.

I did see a function like "spi_set_baudrate_div"

 

Even after using the function like in the example code, the frequency doesn't seem to change.

 

Any Idea?

crying

Silly beans are always silly
:)

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

I have some how managed to make the internal SPI work without any issues.

Still I haven't got a clear cut idea regarding how things really work.

 

One more query.

Am not able to make the SPI clock frequency below 250kHz.

Is there any reason behind that?
surprise

Silly beans are always silly
:)

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

It is working good for now.
But I really don't know why I couldn't bring the clock frequency below 250kHz.

Silly beans are always silly
:)

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

What did you do to SPI works. ? My SPI doesn't work with SD card on extended board IO1 Explained. I don't have even SPI clock.