Reading ASF documentation

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

The documentation for ASF seems confusing to me.  There are volumes of details, but the more basic information seems to be obfuscated.

 

To test this premise, I looked to see how to get a sense of time and specifically a free running counter.  It could be in ticks, microseconds, milliseconds or whatever.

 

In http://asf.atmel.com/docs Finding: 

 

is relatively simple.  But these are fine details.

 

Where is the basic get the time function?

 

It seems that everything is mired in the sort of myopic view of things.

 

Worse, the search engine needs an exact match.

So, asking for everything with sysclk, time or hz can produce a mind-numbing list or nothing.

Given the two extremes, a mind-numbing list is preferable.  At least it can be sifted through.

 

Is there a better manual?

 

Any comments or suggestions?

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

Is there a better manual?

No.

Any comments or suggestions?

I've found the Quick Starts more informative than the actual "documentation."

 

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

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

Trivet wrote:
Where is the basic get the time function?

I'm not sure  ASF has that?

 

That would certainly explain why you can't find any documentation for it!

 

EDIT

 

Maybe what you need is Real Time Counter (RTC) or 32-bit Real Time Counter (RTC32) ?

 

 

EDIT 2

 

 

gives me HTTP 403 - Forbidden.

 

Try: http://asf.atmel.com/docs/latest/xmegaa/html/

 

 

EDIT 3

 

or, perhaps, use Timer Counter (TC) to set up a free running timer & read as required ?

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...
Last Edited: Thu. Aug 23, 2018 - 04:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Where is the basic get the time function?

Missed this earlier...  You need the Calendar Functionality Service (or something like that).

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

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

Am looking for a way to mark the passage of time, in milliseconds would be nice.

 

One might imagine that sysclk_init() has a routine to get system ticks.

 

The RTC routines look promising but lack details and the online documentation (below) is not working.

 

awneil wrote:

Trivet wrote:
Where is the basic get the time function?

I'm not sure  ASF has that?

 

That would certainly explain why you can't find any documentation for it!

 

Maybe what you need is Real Time Counter (RTC) or 32-bit Real Time Counter (RTC32) ?

 

 

gives me HTTP 403 - Forbidden.

Try: http://asf.atmel.com/docs/latest/xmegaa/html/

 

 

 

Thanks for the updated link.

 

The old link has gone stale and the new one is not - particularly useful.

 

 

Last Edited: Sun. Sep 2, 2018 - 11:13 PM