3.2.3 Metrology State Flags Register
| Name: | STATE_FLAG |
| Property: | Read |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| SWELL_DET_VC | SWELL_DET_VB | SWELL_DET_VA | SAG_DET_VC | SAG_DET_VB | SAG_DET_VA | ||||
| Access | R | R | R | R | R | R | |||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| CREEP_DET_S | PC_OUT_OF_RANGE | ARCH_DETECT_FAIL | CREEP_DET_P | CREEP_DET_Q | CREEP_DET_IC | CREEP_DET_IB | CREEP_DET_IA | ||
| Access | R | R | R | R | R | R | R | R | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| HOST_ID_FAIL | |||||||||
| Access | R | ||||||||
| Reset | 0 |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| ATSENSE_FAIL | FREQ_LOCKED | TIMING_Vx[1:0] | PH_C_ACTIVE | PH_B_ACTIVE | PH_A_ACTIVE | ||||
| Access | R | R | R | R | R | R | R | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
Bits 28, 29, 30 – SWELL_DET_Vx Voltage Swell Detected Flag for Channel x
| Value | Description |
|---|---|
| 0 | Voltage swell is not detected for the current half line cycle |
| 1 | Voltage swell is detected for the current half line cycle |
Bits 24, 25, 26 – SAG_DET_Vx Voltage Swell Detected Flag for Channel x
| Value | Description |
|---|---|
| 0 | Voltage sag is not detected in the current half line cycle |
| 1 | Voltage sag is detected in the current half line cycle |
Bit 23 – CREEP_DET_S Total Apparent Power Creep Detected Flag
CREEP_DET_S status flag only updated when enabled (CREEP_S_EN = 1).
| Value | Description |
|---|---|
| 0 | Apparent power creep is not detected in the current full line cycle |
| 1 | Apparent power creep is detected in the current full line cycle |
Bit 22 – PC_OUT_OF_RANGE Phase Corrector Out of Range
| Value | Description |
|---|---|
| 0 | Requested phase correction values in range |
| 1 | Requested phase correction values out of range |
Bit 21 – ARCH_DETECT_FAIL Architecture Detect Failure
| Value | Description |
|---|---|
| 0 | A proper device (”SH” or “C”) was detected |
| 1 | An improper device (not ”SH” nor “C”) was detected |
Bit 20 – CREEP_DET_P Total Active Power Creep Detected Flag
| Value | Description |
|---|---|
| 0 | Active power creep is not detected in the current full line cycle |
| 1 | Active power creep is detected in the current full line cycle |
Bit 19 – CREEP_DET_Q Total Reactive Power Creep Detected Flag
| Value | Description |
|---|---|
| 0 | Reactive power creep is not detected in the current full line cycle |
| 1 | Reactive power creep is detected in the current full line cycle |
Bits 16, 17, 18 – CREEP_DET_Ix Phase x Current Creep Detected Flag
| Value | Description |
|---|---|
| 0 | Channel x current creep is not detected in the current full line cycle |
| 1 | Channel x current creep is detected in the current full line cycle |
Bit 15 – HOST_ID_FAIL Host Identification Failure Indication
| Value | Description |
|---|---|
| 0 | Proper PIC32CXMTx part successfully identified |
| 1 | Failed to identify proper PIC32CXMTx part |
Bit 7 – ATSENSE_FAIL ATSENSE State
| Value | Description |
|---|---|
| 0 | ATSENSE initialization is successful |
| 1 | ATSENSE initialization is failed |
Bit 5 – FREQ_LOCKED Frequency Locked Flag
| Value | Description |
|---|---|
| 0 | Line frequency is not determined. Using sample count limit for metrology integration period. |
| 1 | Line frequency was determined |
Bits 4:3 – TIMING_Vx[1:0] Dominant Voltage Channel
| Value | Description |
|---|---|
| 0 | Voltage phase VA is used for timing extraction purposes |
| 1 | Voltage phase VB is used for timing extraction purposes |
| 2 | Voltage phase VC is used for timing extraction purposes |
Bits 0, 1, 2 – PH_x_ACTIVE Phase x is active
| Value | Description |
|---|---|
| 0 | Voltage phase x is inactive |
| 1 | Voltage phase x is active |
