Other Parts Discussed in Thread: OPT3101
Hello,
We're using OPT3101 EVM to develop our code base for distance measurement app.
We'd like to ask if our understanding on how monoshot mode works
is right.
We're planning to use monoshot mode for power-saving.
In other words, we want to measure a distance only when we trigger
measurement by setting "MONOSHOT_BIT" to 1.
Now we have a question here:
we assume that PHASE_OUT[15:0] register value wouldn't be updated and
remain constant as frames aren't captured once MONOSHOT_MODE[1:0] is set to 3(=monoshot_mode).
Is this assumption correct..??
Because, after I set MONOSHOT_MODE[1:0] to 3 by calling dev.writeReg(addr) I always
observe updated PHASE_OUT values, in other words PHASE_OUT value chages each time it's read out,
even though I've not set MONOSHOT_BIT to 1 yet. It looks this phenomenon doesn't match our assumption.
I put what we've done and observed below for your info:
1. Connect PC to OPT3101 EVM over USB
|
2. Start Latte GUI
|
3. After Latte has started, read out those registers for status-check by dev.readReg(addr) methond in readAllRegisters.py :
0x27:0x26ac18 // read addr 0x27, mode = continuous mode
0x00:0x000000 // read addr 0x00, MONOSHOT_BIT = 0
|
4. Then, I wrote value 0x26ac1B, which changes LSB 2bit to 3 from 0, at addr:0x27 to make the mode monoshot mode.
After reading addr0x27 out again, I saw the reg value was what was expected. All is fine so far.
0x27:0x26ac1b // read addr 0x27, mode = monosho_mode
|
5. Now, I tried reading out PHASE_OUT(addr0x08 bit[15:0]) some times and saw
its value changing even though MONOSHOT_BIT stayed 0:
0x00:0x000000 // read addr 0x00, MONOSHOT_BIT = 0
0x08:0x960b1a // read addr 0x08, PHASE_OUT = 0x0b1a
0x08:0x96097b // read addr 0x08, PHASE_OUT = 0x097b
0x08:0x960b1e // read addr 0x08, PHASE_OUT = 0x0b1e
.
.
In short, our questions are as follow :
Q1. Is our assumption mentioned above on monoshot mode correct?
Q2. If not, would you tell us right regsiter settings to get monoshot mode to work?
I appreciate your help in advance,
regards,
kinoshita