JAJSLP2A august 2021 – july 2023 AFE439A2 , AFE539A4 , AFE639D2
PRODUCTION DATA
The AFE439A2 provides a preprogrammed PI controller state machine, as shown in Figure 7-9. ADC channel 0 is used as the input and SDA/SCLK/PWM pin is used as the output. DAC channel 1 is used as a comparator that is used to set the output of PWM output 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 |
AEN | Not used for PI control—connect to VDD using a pullup resistor | Not applicable |
AIN1 | DAC1 comparator input— connect to AGND if unused for fixed output clamping | See Section 7.4.3 |
SDA/SCLK/PWM | PWM output—connect to VDD or VIO using a pullup resistor | 0 V to VDD or VIO |
A0/SDI/DIR | Direction output—connect to VDD or VIO using a pullup resistor | 0 V to VDD or VIO |
The PI controller provides many configuration parameters. The following Table 7-6list describes the function of each configuration parameter:
REGISTER FIELD NAME | STATIC ADDRESS |
---|---|
SETPOINT | The 8-bit set point to which the ADC input is compared to 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 7-bit value limits the maximum value of the PI controller output. |
MIN-OUTPUT | This 7-bit value limits the minimum value of the PI controller output. |
COMMON-MODE | This 7-bit value is present at the PI output when the proportional and integral outputs are zero. This parameter is 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 8-bit parameter is used to take the output to this predefined value based on the output of comparator channel 2. This function is useful in failure scenarios. |
CMP-THRESHOLD | This 8-bit parameter is used to set the threshold for comparator. |
REGISTER FIELD NAME | SRAM ADDRESS | STATIC ADDRESS LOCATION | DEFAULT VALUE (16‑BIT ALIGNED) |
---|---|---|---|
SETPOINT | 0x22[9:3] | SRAM | 0x0200 |
KP | 0x23[15:0] | SRAM | 0x0032 |
KI | 0x26[15:0] | SRAM | 0x0000 |
MAX-OUTPUT | 0x20[15:9] | SRAM | 0x7E00 |
MIN-OUTPUT | 0x21[15:9] | SRAM | 0x0000 |
COMMON-MODE | 0x25[11:5] | SRAM | 0x0000 |
LOOP-POLARITY | 0x27[0] | SRAM | 0x0000 |
FIXED-OUTPUT | 0x27[15:9] | SRAM | 0x8000 |
CMP-THRESHOLD | 0x24[15:9] | SRAM | 0x8000 |
Table 7-16 shows the default device configuration.
REGISTER NAME | ADDRESS | DEFAULT VALUE |
---|---|---|
COMMON-CONFIG | 0x1F | 0x13F9 |
DAC-A-VOUT-CMP-CONFIG | 0x03 | 0x0405 |
DAC-D-VOUT-CMP-CONFIG | 0x15 | 0x0401 |
STATE-MACHINE-CONFIG0 | 0x27 | 0x0003 |
Follow these steps to configure and operate the PI controller: