Sign up or log in Sign up using Google. Bence Kaulics 5, 10 23 Sign up using Email and Password. How do I know what pins to use in the initialization code? However, the ASF documentation does an exceptionally poor job of actually explaining what’s going on and why, so you’ll need to carefully study the MCU datasheet sections on clock, power management, GPIO, and SPI to really figure out what you’re doing. It’s so difficult to work out what is being driven, what you have to provide to configure the drivers, and what they actually do that it’s actually quicker just to read the datasheet and write your own drivers particularly when you don’t need all the configuration complexity and can just hardwire in the settings you need.

Uploader: Mikakree
Date Added: 22 September 2018
File Size: 14.99 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 22489
Price: Free* [*Free Regsitration Required]

Thank you for the help!!

Microchip® Advanced Software Framework

atmle However, the ASF documentation does an exceptionally poor job of actually explaining what’s going on and why, so you’ll need to carefully study the MCU datasheet sections on clock, power management, GPIO, and SPI to really figure out what you’re doing. As already mentioned, the ASF documentation is a complete mess.

Sign up using Facebook. It’s so difficult to work out what is being driven, spj you have to provide to configure the drivers, and what they actually do that it’s actually quicker just to read the datasheet and write your own drivers particularly when you don’t need all the configuration complexity and can just hardwire in the settings you need.

  LINUX BCM4310 DRIVER

Referring back to the datasheet descriptions of the various hardware registers’ functions will help.

How do I know what pins to use in the initialization code? Can anyone help me to understand how you initialize the SPI?

Check out this post for details: I don’t intend to bash Atmel, but I have to agree, their documentation has so many lines of invisible ink I can successfully program the chip in Atmel Studio, by using a batch file which loads bosssa.

Though, experienced developers say that beginners should go with ASF which is actually trueit doesn’t mean that you can achieve with less effort the same thing. Sign up using Email and Password.

That may help a lot. Bence Kaulics atmle, 10 23 Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

So all of that is a very general answer–your specific solution will depend on the particular hardware setup you have, so you’ll need to look at the Arduino Due schematics to figure out which pins you’ll need to use for SPI and what clock settings are appropriate.

Sign up or log in Sign up using Google. You just need different type of effort.

ASF Source Code Documentation

It’s tough for an absolute beginner. Above all, remember that the datasheet is your friend!

By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies. I am running Atmel As 6. If you’re just starting out, then ASF is the way to go. By zpi our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

  ASUS A7V8X-MX MOTHERBOARD DRIVER DOWNLOAD

In either case, you will have to deal with a lot of things that the Arduino environment handles for you. Many MCUs of this class will have several SPI units, and the datasheet will specify which pins can be used by which unit.

As spk can see, I don’t have the slightest clue how atkel go about setting up the SPI interface in Atmel studio. Most pins will have many peripherals which can be sip, so you’ll need to set the pin multiplexer to select the proper SPI unit.

You have two options here. You can manually set the configuration registers directly for the SPI peripheral, or you can use the “Atmel Software Framework” which abstracts a lot of the details into a higher-level API.

Finally, you’ll need to configure the SPI peripheral itself. Post as a guest Name. John August 2 Unfortunately the datasheet also does a poor job of explaining how peripherals are meant to be used, so some reading between the lines will be required. Email Required, but never shown.