Go Down

Topic: Using direct C code to control SAM3X8E (Read 862 times) previous topic - next topic


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???


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.


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

Go Up