Pages: [1]   Go Down
Author Topic: Using direct C code to control SAM3X8E  (Read 270 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 4
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi I'm reading the datasheet of SAM3X mounted on DUE and i'm asking myself if it possible to control directly the processor using the instuctions gived by Atmel at http://asf.atmel.com/docs/3.0.1/api.html.

In particular I need to set/clear some control bits in the registers, I found the comands label but i don't know how to make they work, can someone help me???
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 620
Posts: 33999
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The register names are defined as addresses so just use them like a variable, use the bit read or write or the logic operations to manapulate bits in them.
Some bits in registers also have names you can use them with logic operations as well.
Logged

Offline Offline
Newbie
*
Karma: 4
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

KK!!! thanks.... I'm experimenting some inline asm^^
Logged

Pages: [1]   Go Up
Jump to: