Driving xmega with 26MHz source to XTAL1

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

I'm using an XMEGA128A3U.  Had a lot of trouble finding out if I can drive the thing with an external clock source at 26MHz (note: not external crystal, which goes up to 16MHz).  Is this possible?  There isn't even an option for it in Atmel Start.

 

Thanks

Ben

This topic has a solution.
Last Edited: Sat. Feb 3, 2018 - 11:15 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

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

I KNEW I’d read it somewhere! Thanks for confirming. How do you get round this not being in Atmel Start as an option?

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

Easy answer would be to not bother with Atmel Start/ASF ;-)

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

@clawson wrote:

Easy answer would be to not bother with Atmel Start/ASF ;-)

+1.  Atmel START (ASF4) has lots of support for the various SAM families, significantly less support for XMEGA families, and, with a few exceptions, no support for for the MEGA/TINY families.

 

If you want to use ASF with an XMEGA use ASF3 (the ASF Wizard built into Atmel Studio).  Unless you have a compelling reason to use ASF, I would follow Cliff's "easy answer."

 

 

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

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

    I do it the old fashioned way:

- read datasheet about the peripheral in question from the beginning to end. It is not much.

- take each register / bit and if I am not happy with the default values, I write to it accordingly. Atmel lists nicely all registers related to a particular peripheral at the end of that peripheral description.

 

    Job done. This way:

- I am familiar with the peripheral

- I am aware what it can do and what it cannot

- I take the most of it

- I do not need to ask anybody for help

- I do not ask in forums about it and I do not need to wait for answers

- Most of the time I no need to debug that code

- Nothing keeps me from going forward.

 

It is that simple.

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

angelu wrote:
I do not need to ask anybody for help
I started to make a comment on that, but decided that it would be inefficacious...

David (aka frog_jr)

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

Yeah, given up with ASF. Gone back to a bare setup and writing my own libraries. It’s somewhat easier even if I don’t seem to be able to properly simulate external clock detection/selection in Studio 7