Non-ASF baisc start and coding for SAM21C

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

Hi all,
I am using ATSAMC21G18A-MUT.
I previously used ATXMEGA which had different datasheet and manual.
Somehow SAM21C seems difficult to start with. Are there any basic examples (non-ASF coding) to configure basic clock and start using PORTS pins? 
And is there only one datasheet for SAMC21 series? No separate manual for registers like for XMEGA?

maar

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

For example, if i want to enable OSC48M, how do I access it? Which file I have to look into to get the names for accessing. The names mentioned in datasheet e.g OSC48MCRTL can't be accessed directly
Also what is a non-ASF way of accessing and writing to 32 bit registers?

maar

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

Alex Taradov (AVRFreak alexru) has some starter projects on GitHub.

For manuals there are the ARM Cortex M0+ TRM and User's Guide.

And the Datasheet covers each of the peripherals...

 

David