Anyway, to answer the question: That may help a lot. If you’re just starting out, then ASF is the way to go. Bence Kaulics 5, 10 23 Email Required, but never shown. I don’t intend to bash Atmel, but I have to agree, their documentation has so many lines of invisible ink
|Date Added:||11 July 2018|
|File Size:||69.4 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Microchip® Advanced Software Framework
Many MCUs of this class will have several SPI units, and the datasheet will specify which pins can be used by which unit. Referring back to the datasheet descriptions of the various hardware registers’ functions will help. Thank you for the help!! I am running Atmel Studio 6.
Anyway, to answer the question: I can successfully program the chip in Atmel Studio, by using a batch file which loads bosssa. Most pins will have many peripherals which can be selected, so you’ll need to set the pin multiplexer to select the proper SPI unit. I don’t intend to bash Atmel, but I have to agree, their documentation has so many lines of invisible ink John August 2 As you can see, I don’t have the slightest clue how to go about setting up the SPI interface in Atmel studio.
Sign up using Facebook. Finally, you’ll need to configure the SPI peripheral itself. Bence Kaulics 5, 10 23 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.
ASF Source Code Documentation
Unfortunately the datasheet also atmek a poor job of explaining how peripherals are meant to be used, so some reading between the lines will be required. 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.
Home Questions Tags Users Unanswered. Asc up using Email and Password. There are examples in the ASF documentation linked in previous comments that should help you out, and if you examine them closely you should see that the example applications do all of the things I’ve outlined above. Check out this post for details: You can manually set the configuration registers directly for the SPI peripheral, or you can use the atjel Software Framework” which abstracts a lot of the details into a higher-level API.
How do I know what pins to use in the initialization code?
In either case, you will have to deal with a lot of things that the Arduino environment handles for you.