SBAS883A February 2018 – June 2018 OPT3101
PRODUCTION DATA.
The sequencer supports various interrupt output modes using the comparison commands listed in Table 19. The register settings to use the sequencer for generating interrupt output using COMP_WINDOW are listed in Table 22, and the corresponding interrupt output is shown in Figure 24. To use a comparison with hysteresis (COMP_HYST) use COMMAND0 = 0xA00 and the rest of the settings remain the same as when using COMP_WINDOW.
PARAMETER | VALUE | DESCRIPTION |
---|---|---|
Sequencer Interrupt Signal | ||
TG_SEQ_INT_START | 9850 | Set the sequencer interrupt at the end of the last averaged sub-frame after data ready is available |
TG_SEQ_INT_END | 9858 | |
TG_SEQ_INT_MASK_START | NUM_AVG_SUB_FRAMES | |
TG_SEQ_INT_MASK_END | NUM_AVG_SUB_FRAMES | |
Sequencer Commands | ||
COMMAND0 | 0x700 | COMP_WINDOW.
COMP_STATUS = 1 when distance is between the lower (COMPARE_REG1) and upper (COMPARE_REG2) limits else COMP_STATUS = 0 |
Get COMP_STATUS on GP1 | ||
GPIO1_OBUF_EN | 1 | Enable GP1 output buffer. |
GPO1_MUX_SEL | 3 | Select DIG_GPO_1 on GP1 |
GPO_SEL1 | 8 | Select COMP_STATUS on DIG_GPO_1 |
Comparison Settings | ||
COMP_IN_SEL | 1 | Select amplitude PHASE_OUT for comparison input COMP_IN |
COMPARE_REG1 | PHASE1 | Phase corresponding to a lower distance (phase) threshold |
COMPARE_REG2 | PHASE2 | Phase corresponding to an upper distance (phase) threshold |
Sequencer Enable | ||
EN_SEQUENCER | 1 | Enable the sequencer.
Sequencer enable should be only be changed while TG_EN = 0. Before changing this register disable TG (TG_EN = 0), modify this register and then enable TG (TG_EN = 1). |
EN_PROCESSOR_VALUES | 1 | Enable processor values to control the STATUS_OUT register bits. |