Commit 6c5b1142 authored by Dimitris Lampridis's avatar Dimitris Lampridis

[doc] fix formula for calculating the corrected DAC value. Fixes #1

parent 9f8fbde7
......@@ -956,7 +956,7 @@ As for the ADC correction values, there is one pair (offset, gain) of DAC correc
Below is the formula to calculate the corrected DAC value (applying gain and offset correction):
@example
@group
c_val = ((val + offset) * gain/0x8000) - 0x8000
c_val = ((val + offset) * gain/0x8000) + 0x8000
where:
c_val = corrected value to write to DAC (16-bit unsigned)
val = value from user (16-bit signed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment