Configuring ADCs and DACs in Arduino Due.

10 years 4 months ago - 10 years 3 months ago #22 by JR

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

7 years 4 months ago #636 by BowDown
Can you offer some more documentation on this code?
For expressions like ADC -> ADC_CDR , we have a pointer to a class object. The class members are ADC_ MR, ADC_CDR, ADC_ISR, ADC_CR, ADC_CHER..

But no matter how long i searched on the internet, i didn't find any information for these class members.
Is there a resource or documentation on this class and in general in the arduino Due ADC handling?

The official arduino due documentation page details the handling of the ADC via analogWriteResolution() and analogWrite(). This is the only thing i could find.

In addition to that can you offer some documentation or link for the dacc_set_channel_selection() and write_conversion_data() functions?

Thanks a lot!

Please Log in to join the conversation.

7 years 4 months ago - 7 years 4 months ago #637 by Ray
If you want more info about the ADC_ MR, ADC_CDR, ADC_ISR, ADC_CR, ADC_CHER registers, you can have a look to the ATSAM3X8E datasheet , it is a very detailed document (1459 pages) and all these registers are explained there.


In addition to that can you offer some documentation or link for the dacc_set_channel_selection() and write_conversion_data() functions?

There are all explained in the atmel website:
asf.atmel.com/docs/latest/sam.drivers.da...rs__dacc__group.html

Please Log in to join the conversation.

Time to create page: 0.071 seconds