Hello.
I have some trouble understanding how to use SAM3X8E in the Due board, I can use and write to registers on the 8bit controllers and I have spent hours and hours and will continue spending hours reading the SAM3X datasheet but man is it hard to get.
I have read that its a steep learning curve to go from AVR 8bit to SAM 32bit or what to call it and I could really need a few answers.
How does one use the PDC, DMA functionality to lighten the burden of the CPU and enable "multi-tasking"?
I know that it isn't really multi-tasking but close enough, but as a example:
I can get the ADC running i free-running mode and I use it with only Due A0(SAM ADC Ch7), but I want to be able to direct the resulting data to.... some memory:)
From the datasheet;
"The channel EOC bit in the Status Register (ADC_SR) is set and the DRDY is set. In the case of
a connected PDC channel, DRDY rising triggers a data transfer request. In any case, either
EOC and DRDY can trigger an interrupt."
"If the ADC is used with a PDC, only the transfers of converted data from enabled channels are
performed and the resulting data buffers should be interpreted accordingly."
I don't at all get how its done and I might misunderstand something, but how does one set up a PDC?
Does someone have any suggestion of where I can learn more about how to use the SAM registers or is reading the datasheet and trying to understand samlib the only way to go?
And is it possible to get the due to send ADC results through the serial port to a PC with PDCs/DMAs?
I would think that the hole answer to this inquiry could be quite extensive but I have completely lost my direction and pointing me towards anything could really help me out.
There are no information regarding SAM3 internal workings that is not appreciated.
Regards