XN, YN Read and Write Registers
152
SNIU028A – February 2016 – Revised April 2016
Copyright © 2016, Texas Instruments Incorporated
Filter
4.4
XN, YN Read and Write Registers
There are several registers which allow access to dynamic values inside the filter. For register formats,
consult the
Filter Reference section
below.
4.4.1 CPU Xn Register
The CPUXN register is used in the CPU Sample mode described above. This is where the firmware writes
the CPU controlled value in CPU Sample mode. See
.
4.4.2 Filter XN Read Register
This register provides both Xn and Xn-1 for read by the firmware.
4.4.3 Filter YN Read Registers
There are three read registers for internal filter results:
FILTERKIYNREAD
FILTERKDYNREAD
FILTERYNREAD
These provide the outputs of the Integrator, Differentiator, and the total filter.
The proportional output is not provided. It can be determined by multiplying Xn by KP, or by subtracting
KiYn and KdYn from Yn.