In N program cycles, N X values are read into an internal buffer. The arithmetic mean of these values is calculated, and is delivered to the Y output. From the N+1 program cycle onwards, the oldest X value in the buffer is deleted and replaced with the current X value.
NOTE: As long as RDY = 0, the mean is not derived from N values but from the current updated read-in number (n < N).
After a modification of the N value or after a cold/warm start, the internal buffer is deleted. The output is set to the input value X and RDY to "0". The buffer is filled during the next N cycles. The Y output contains a mean of the values accumulated so far. RDY remains "0" until the buffer is filled with correct X values after N program cycles then RDY becomes "1".
The value YMAN is transferred to the Y output. The buffer is completely filled with the value YMAN and marked as full (RDY = 1).
Floating mean with limited memory of N = 50 values