SAM4E AFEC in differential mode

Guest #3627424
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 
value.

Some details on the setup:
ADVREFP = 2.73V
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.
Guest #3629131
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
default.

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.

Reply

A question of your own? This thread is over 12 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.