Register Description by Block
ADE3800
Algorithm, Color, Threshold, or Window Control changes should be made at the end of a valid
measurement, otherwise they will corrupt the current measurement in progress:
● set DMEAS parameters for the desired measurement
● start the measurement (don’t change the parameters above)
● wait until measurement completion.
4.9.4
Note:
Mode Control
All measurements (except De_Size) are performed in One Shot mode. For De_Size measurement,
software can request measurements in one of two ways:
● One Shot – synchronous with respect to the Micro Controller
● Free Run – asynchronous with respect to the Micro Controller
The block indicates when a measurement is valid.
● In One Shot mode the measurement is completed through an Auto Clear of the Start
condition.
● In Free Run mode when the measurement is completed a polling bit toggles. A freeze bit is
provided to freeze the results. Measurements still continue while result registers are frozen.
4.9.5
Edge Intensity
The Edge Intensity measurement is the sum of the absolute value of the delta between adjacent
pixels. A programmable threshold is applied to zero out noise and amplify edges.
Equation:
Delta_val = abs(pixelA – pixelB) – threshold;
Delta_val = Delta_val < 0 ? 0: Delta_val;
Sum += Delta_val;
For all 3 color channels:
Sum += Delta_val on Red channel + Delta_val on Green channel + Delta_val on Blue channel
The measurement includes all transitions inside the defined window.
Measurement Window: The Edge Intensity is computed over a defined window as described in
Window Control.
Color Channels: A specific color channel (R/G/B) or all color channels (All) can be applied to the
Edge Intensity.
Result: The output at the end of the measurement is a 32-bit number.
4.9.6
Pixel Sum
The Pixel Sum is the sum of all selected pixels for either a specific color channel or all color
channels.
Measurement Window: The Pixel sum is computed over a defined window as described in Window
Control.
Color Channels: A specific color channel (R/G/B) or all color channels (All) can be applied to the
Pixel Sum.
Result: The output at the end of the measurement is a 32 bit number.
4.9.7 Min / Max
The Min / Max reports the minimum and maximum pixel found.
48/138