XMEGA/XPLAIN example code/projects?

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

After reading through AVR1000 (getting started with C programming on the xmega) it is clear they now do things very differently. Does anyone have any good links for projects on an xmega? I am using the xplain right now, so projects specific to that board would be even better.

Thanks,
Sam

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

There sare lots of threads about the Xmegas, just do a little search.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Have a look at all AVR13xx application notes. Remember, they are typically TWO downloads, a PDF and a separate ZIP with code.

I don't approve of the driver-like coding style Atmel uses in these application notes, but if you study the tiny "driver" functions you get an idea how the new naming conventions work.

IMHO, the new naming conventions aren't much different from the classic way. They just give thing proper names, using suffixes, and they spare you some work. In the classic way you always had to create the bit and group masks in code, e.g. (1 << PB5). Now you get predefined _bm and _gm masks.

Stealing Proteus doesn't make you an engineer.

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

My XMEGA project:
http://www.gabotronics.com/development-boards/xmega-xmultikit.htm.
It demonstrates a bunch of stuff on the XMEGA: the DAC working with the DMA, SD Card interface and FAT file system, USART, Scientific Calculator using an recursive descent parser, and a Mixed Signal Oscilloscope. I am about to finish the project and will post it on the AVRFreaks project section.

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

Hi ganzziani!!

I saw you project and, let me tell you that it´s an excellent project!

I´ll be waiting your post.

Regards.