Please show example using accumulation feature of ADuC706x. Can´t qet it working.
Please find attached a working example.
Note : only upper 16 Bit of ADC0DAT are added to ADC0ACC - means with 512 samples added you should see approx. twice the value of ADC0DAT in ADC0ACC.
Thank you !
Why can more detail the only upper 16 bits of?
Alexsandr, I don't really understand your question - just guess you are asking why only 16-Bit are used on ADC0ACC - this is the way the original part was designed (ADuC703x) on demand from the lead customers.
But for the purpose it is intended to be used, it absolutely makes sense - it should basically sum up the ADC0 results for a long time while the micro is in low-power-mode.
Thank you that was my question! The lower 8 bits to add to the result?
Page 41datasheet see:
Finally, a 32-bit accumulator (ADC0ACC) function can be
configured (ADCCFG[6:5]) allowing the primary ADC to add
(or subtract) multiple primary ADC sample results. User code
can read the accumulated value directly (ADC0ACC) without
any further software processing.
I thought that you can get the average of all ADT0DAT in an amount ADC0RCR.
Depending on the used configuration, you can get the sum of all samples, but just the 16 MSBs. But depending on the used sampling rate, the dropped LSBs are possibly only noise... specifically possible if you run the ADC in low-power-mode, which is the primary intended use for the ADC0ACC.
Retrieving data ...