ZCDCON
| Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SEN | OUT | POL | INTP | INTN | |||
| AccessR/W | R | R/W | R/W | R/W | |||
| Reset0 | x | 0 | 0 | 0 |
Zero-Cross Detect Software Enable
This bit is ignored when ZCD fuse is cleared.
| Value | Name | Description |
|---|---|---|
X |
ZCD Config fuse =
0 |
Zero-cross detect is always enabled. This bit is ignored. |
1 |
ZCD Config fuse =
1 |
Zero-cross detect is enabled. ZCD pin is forced to output to source and sink current. |
0 |
ZCD Config fuse =
1 |
Zero-cross detect is disabled. ZCD pin operates according to PPS and TRIS controls. |
Zero-Cross Detect Data Output
| Value | Name | Description |
|---|---|---|
1 |
POL = 0 |
ZCD pin is sinking current |
0 |
POL = 0 |
ZCD pin is sourcing current |
1 |
POL = 1 |
ZCD pin is sourcing current |
0 |
POL = 1 |
ZCD pin is sinking current |
Zero-Cross Detect Polarity
| Value | Description |
|---|---|
1 |
ZCD logic output is inverted |
0 |
ZCD logic output is not inverted |
Zero-Cross Detect Positive-Going Edge Interrupt Enable
| Value | Description |
|---|---|
1 |
ZCDIF bit is set on low-to-high ZCD_output transition |
0 |
ZCDIF bit is unaffected by low-to-high ZCD_output transition |
Zero-Cross Detect Negative-Going Edge Interrupt Enable
| Value | Description |
|---|---|
1 |
ZCDIF bit is set on high-to-low ZCD_output transition |
0 |
ZCDIF bit is unaffected by high-to-low ZCD_output transition |