Part Number: DAC63001
Other Parts Discussed in Thread: DAC63204-Q1
Hi Team,
Posting on behalf of our customer.
I will share this post with our customer so he can reply when needed.
We are using the DAC63001 as a programmable comparator/latch in an electronic circuit breaker application. We would like to confirm the correct register configuration and expected behavior of the comparator latch on the physical OUT0 pin.
Channel used: DAC0 / FB0 / OUT0
Supply/reference: 3.3 V
Comparator input: FB0
Required behavior: OUT0 should latch after FB0 crosses the programmed threshold, and should reset only after writing RST-CMP-FLAG-0.
Our intended behavior is:
Safe/no trip: OUT0 high
Trip: OUT0 low
OUT0 must remain latched after threshold crossing
Latch reset by writing COMMON-DAC-TRIG.RST-CMP-FLAG-0 = 1
Current tested configuration:
DAC0-MARGIN-HIGH address 0x13 = 0x0120 // approx. 15 mV threshold
DAC0-MARGIN-LOW address 0x14 = 0x0000 // zero-code
DAC0-CMP-MODE-CONFIG address 0x17 = 0x0400 // CMP-X-MODE = 01, hysteresis mode
DAC0-VOUT-CMP-CONFIG address 0x15 = 0x000D // CMP-X-EN=1, CMP-X-OUT-EN=1,
// CMP-X-HIZ-IN-DIS=1, CMP-X-INV-EN=0
COMMON-CONFIG address 0x1F = bit15 set // WIN-LATCH-EN = 1
COMMON-DAC-TRIG address 0x21 = 0x000E // RST-CMP-FLAG-0,
// TRIG-MAR-LO-0,
// TRIG-MAR-HI-0
We also tested COMMON-CONFIG.WIN-LATCH-EN = 0.
Observed behavior:
With CMP-X-MODE = 01 and MARGIN-LOW = zero-code, the OUT0 pin behaves as a comparator/hysteresis output, but does not latch as expected.
When FB0 crosses the threshold, OUT0 changes state.
When FB0 returns below the threshold, OUT0 also returns, instead of remaining latched.
Writing RST-CMP-FLAG-0 does not appear to be the only thing controlling the output state.
In window comparator mode, WIN-LATCH-EN appears to latch internal status, but the physical OUT0 pin does not behave like a latched output. This seems consistent with the datasheet statement that the static behavior of WIN-CMP-X is not reflected at the output pins.
Datasheet reference:
The datasheet states:
“When the DAC-X-MARGIN-HIGH is set to full-code or the DAC-X-MARGIN-LOW is set to zero-code, the comparator works as a latching comparator; that is, the output is latched after the threshold is crossed.”
We are trying to understand precisely what “output” means in this sentence for hysteresis comparator mode: does it refer to the physical OUT0 pin, or to an internal comparator status bit?
Questions:
For CMP-X-MODE = 01 hysteresis comparator mode, should the physical OUT0 pin latch when MARGIN-LOW = 0x0000?
Is COMMON-CONFIG.WIN-LATCH-EN relevant only to window comparator mode, or should it also be enabled for hysteresis latch mode?
Is TRIG-MAR-HI-0 / TRIG-MAR-LO-0 required after writing DAC0-MARGIN-HIGH and DAC0-MARGIN-LOW for comparator thresholds to take effect?
What is the recommended register sequence to configure DAC0 as an active-low latching comparator on OUT0?
For active-low latch behavior similar to datasheet Figure 7-6, should the configuration be:
MARGIN-LOW = 0x0000
MARGIN-HIGH = threshold
CMP-X-MODE = 01
CMP-X-INV-EN = 0
CMP-X-OUT-EN = 1
Is there any additional register, status bit, GPIO mapping, or NVM/default behavior that must be configured to make OUT0 latch physically?
Any example register sequence for DAC63001 configured as a physical OUT0 latching comparator would be very helpful.
Regards,
Danilo
