Forum: µC & Digital Electronics SAM4E AFEC in differential mode

von larryk (Guest)

Rate this post
0 useful
not useful
Hi all,

I try to use the SAM4E AFEC in differential mode. The use of the offset 
in this mode is not clear to me. Main question is, does the offset in 
diff mode only affect the common mode setting or is it applied to the 
differential result.
My recent triees to use the offset had no effect to the AFEC output 

Some details on the setup:
AD8131 to drive the diff input +AD4/-AD5
common mode voltage is 1.36V
The AFEC is centered (2048) for AD4 = AD5 what equals 0V input for the 
AD8131. My initial intention was to use the offset to move the AFEC zero 
to 0V input voltage.

I tried various ways, with AFEC_CDOR as well as AFEC_COCR. For channel 4 
as well as for channel 0 depending on ANACH. To the best of my knowledge 
the calibration routine is also called.

Thanks for your time, Larry.

: Edited by Admin
von larryk (Guest)

Rate this post
1 useful
not useful
Ok, digidal offset compensation is not supported in diff mode. I 
received a reply from ATMEL support:

The offset compensation is not available in differential mode, this is
only for single ended mode. The signal will be centered to 1/2*ADVREF by

Datasheet section 43.6.9 :
    "The Offset is only available in Single Ended Mode."

Don't know why I haven't seen this I spent several hours with debugging 
and the datasheet.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.