Getting started

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

Hey guys, I'm getting quite a bit exasperated here. I really need someone to point me to some documentation, and maybe it's just that I'm looking in the wrong places, but here it goes...

 

I have a SAM4S Xplained Pro development board. Let's say that I want to start a project and simply print "Hello" over the debug UART interface at a rate of 1 Hz. Can anyone tell me where I would find the documentation on how to do the following...

 

  1. Create a project with the appropriate modules installed

  2. Configure said modules (UART, Timer) during program initialization.  This include timer allocation, pin allocation, module initialization.

  3. Configure interrupts

  4. Write to the UART port

 

What I am not looking for is "Open example project xyz and muddle through it". In my AtmelStudio, adding a module may necessitate a specific conf_xxxx.h file be created. Where is this stipulated? Which modules require it, which do not? Beyond this, all the links to the API within the ASF Wizard are broken such that they arrive at the home screen of the site.

 

I am, through piecing together random information found on a variety of websites, able to send characters over the debug port, but I need to know how I would do this for all cases (let's say I want DTR on one system, or parity on another, where is the documentation for this????? What if I wanted to use DMA for the UART?).

 

There is this ASF4 API Reference Manual, but it still doesn't answer some of the questions. Let's say I wanted to configure Timer 0, how would you do this? For reference, here's the manual.

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

There's a whole set of "Getting Started with Atmel Studio 7" videos on the Atmel Studio page - near the bottom:

 

https://www.microchip.com/mplab/avr-support/atmel-studio-7

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for that.  I'm more curious about something comparable to the PIC's reference library.  With Microchip, there existed an online set of reference modules for the Harmony/PLIB frameworks.  There were also reference manuals for individual subsystems (Timers, comparators, PWM, etc...) that referenced direct bit configurations in the applicable registers.  Does the same exist for Atmel products?