JAJSLP2A august 2021 – july 2023 AFE439A2 , AFE539A4 , AFE639D2
PRODUCTION DATA
The AFE539A4 provides a preprogrammed PI controller state machine. Figure 7-9 shows the PI controller architecture. ADC channel 0 is used as the input and DAC channel 1 is used as the output. DAC channel 2 is used as a comparator that is used to set the output of DAC channel 1 to a value specified by the FIXED-OUTPUT field. Table 7-13 lists all the input/output pin names and functions.
PIN | FUNCTION | RANGE |
---|---|---|
AIN0 | ADC0 input | Hi-Z: 0 V to VFS / 3 Finite impedance: 0 V to VFS |
FB1 | Voltage-feedback input for DAC1—connect this pin to OUT1 | Not applicable |
OUT1 | DAC1 voltage output | 0 V to VFS |
AIN2 | DAC2 comparator input— connect to AGND if unused for fixed output clamping | See Section 7.4.3 |
AEN | Not used for PI control—connect to VDD using a pullup resistor | Not applicable |
The PI controller provides many configuration parameters. Table 7-10 describes the function of each configuration parameter:
REGISTER FIELD NAME | STATIC ADDRESS |
---|---|
SETPOINT | The 10-bit set point to which the ADC input is compared by the PI controller. The unit of this value is the same as the value at the ADC input. The PI controller minimizes the error between the set point and the sensed ADC data. |
KP | This 16-bit parameter is used as the proportional gain. KP is multiplied with the instantaneous error. A higher KP enables the loop to correct the error faster. However, if the external process has a fast response time, a higher KP can cause system instability. |
KI | This 16-bit parameter is used as inverse integral gain. KI is inverted and multiplied to the accumulated error. This parameter is important to help minimize the steady-state error under different ambient conditions of the process. A higher KI means a weaker response to the steady-state error. A smaller KI can effectively correct the steady-state error, but can also lead to bigger oscillations. The integral function is disabled when KI = 0. |
MAX-OUTPUT | This 10-bit value limits the maximum value of the PI controller output. |
MIN-OUTPUT | This 10-bit value limits the minimum value of the PI controller output. |
COMMON-MODE | This 10-bit value is present at the PI output when the proportional and integral outputs are zero. This parameter is very important to help achieve a uniform response for all set points with fixed KP and KI settings. COMMON-MODE represents the nominal output to achieve a given set point. Therefore, for best results, use empirically measured COMMON-MODE values for every set point. |
LOOP-POLARITY | This 1-bit parameter provides the option to invert the phase of the PI-controller loop. This function is useful when the loop external to the device has an additional phase inversion. |
FIXED-OUTPUT | This 10-bit parameter is used to take the output to this predefined value based on the output of comparator. This function is useful in failure scenarios. |
ADC-MODE | This 1-bit parameter is used to select between Hi-Z or finite-impedance mode for ADC. ADC-MODE = 0 corresponds to Hi-Z input; ADC-MODE = 1 corresponds to finite-impedance input. |
CMP-THRESHOLD | This 10-bit parameter is used to set the threshold for comparator. |
REGISTER FIELD NAME | STATIC ADDRESS | STATIC ADDRESS LOCATION | DEFAULT VALUE (16‑BIT ALIGNED) | DYNAMIC ADDRESS | DYNAMIC ADDRESS LOCATION |
---|---|---|---|---|---|
SETPOINT | 0x22[9:0] | SRAM | 0x0200 | 0x06[9:0] | Register |
KP | 0x23[15:0] | SRAM | 0x0064 | N/A | N/A |
KI | 0x26[15:0] | SRAM | 0x0000 | N/A | N/A |
MAX-OUTPUT | 0x20[15:6] | SRAM | 0xFFF0 | N/A | N/A |
MIN-OUTPUT | 0x21[15:6] | SRAM | 0x0000 | N/A | N/A |
COMMON-MODE | 0x25[11:2] | SRAM | 0x02FF | 0x0C[11:2] | Register |
LOOP-POLARITY | 0x27[0] | SRAM | 0x0000 | N/A | N/A |
FIXED-OUTPUT | 0x27[15:6] | SRAM | 0x0000 | N/A | N/A |
ADC-MODE | 0x27[1] | SRAM | 0x0000 | N/A | N/A |
CMP-THRESHOLD | 0x24[15:6] | SRAM | 0x8000 | N/A | N/A |
Table 7-16 shows the default device configuration.
REGISTER NAME | ADDRESS | DEFAULT VALUE |
---|---|---|
COMMON-CONFIG | 0x1F | 0x1249 |
DAC-A-VOUT-CMP-CONFIG | 0x03 | 0x0401 |
DAC-B-VOUT-CMP-CONFIG | 0x09 | 0x0400 |
DAC-C-VOUT-CMP-CONFIG | 0x0F | 0x0405 |
DAC-D-VOUT-CMP-CONFIG | 0x15 | 0x0401 |
STATE-MACHINE-CONFIG0 | 0x27 | 0x0003 |
Follow these steps to configure and operate the PI controller: