PGA411在故障一直存在的情况下,寄存器的值会一直存在吗?还是说读一次就会被清除?

PGA411在故障一直存在的情况下,寄存器的值会一直存在吗?还是说读一次就会被清除?

  • 一般会有这么两种情况,假设故障标志置1的情况下,要么是读完标志后自动置0或者是需要手动清零。
    关于这个故障标志,其实手册讲的很清楚:
    The fault flags themselves are SPI fault bits that can be found in the DEV_STAT1, DEV_STAT3, and
    DEV_STAT4 SPI registers. Most of these fault flags will be cleared upon a SPI read command (assuming the
    fault itself is no longer present in the system). This behavior allows the MCU to identify transient faults, that may
    no longer be present, during the next scheduled SPI read.
    For evaluation or testing purposes, the FAULTRES pin can be held LOW to keep the exciter enabled even during
    fault conditions.
    Optionally, masking some faults that can signal a fault condition in the system is possible. By doing so, the
    PGA411-Q1 device reports the fault through the assigned SPI fault flag however no action occurs as long as the
    mask is set.
    To help protect the output exciter amplifier, some faults disable the exciter coil by setting the EXTEN SPI bit to 0
    which disables the exciter power amplifier (pins OE1 and OE2) . Exciter override bits are defined for some of
    these faults to keep the exciter amplifier enabled if that fault occurs. If the exciter is disabled through a SPI
    command, a 100-µs delay is recommended before the device changes state or is re-enabled.