Hi,
we are trying to use the rising-edge flash mode of the TPS61310 to trigger flash pulses of different lengths on multiple TPS61310s via the STRB0 pin.
Figure 45 on page 27 of the datasheet describes exactly what we want to achieve: A short trigger pulse on the STRB0 line starts a flash pulse that goes on for the exact time programmed with the STIM/SELSTIM bits in register 0x03. The length of the trigger pulse and flash pulse are supposed to be unrelated.
Our test scenario consists of two flash pulses with different lengths (5.3ms and 852ms). To set this scenario up we used the following settings in the TPS61310:
- STRB1 pin: permanently LOW
- Tx-MASK pin: NC
- Register 0x00: 0x00
- Register 0x01: 0x81 [flash mode; 25mA]
- Register 0x02: 0x81 [flash mode; 25mA]
- Register 0x03: first pulse: 0x0C [5.3ms STIM; rising-edge] second pulse: 0xE4 [852ms STIM; rising-edge]
- Register 0x04: default
- Register 0x05: 0x6F [default + all 3 LEDs enabled]
- Register 0x06: default
- Register 0x07: default
Both flash pulses are triggered by pulses on STRB0. Those trigger pulses have a HIGH-time of 5ms.
By observation it is clear that both flash pulses are the same length, approximately the length of the HIGH-time of the trigger pulse. Increasing the HIGH-time of the trigger pulse proportionally increases the flash pulse length.
Some experiments and observations:
- The behaviour is the same when setting the SFT bit in register 3 and then triggering with the STRB0 pulse.
- When the HIGH-time of the trigger pulse is increased to 10ms, the TO bit in register 3 is set after the first (5.3ms) pulse. After the second (852ms) pulse the TO bit is not set.
- When the HIGH-time of the trigger pulse is increased to 900ms, the TO bit in register 3 is set after the first (5.3ms) and the second (852ms) pulse.
This behaviour does make perfect sense when you are expecting a level-sensitive trigger mode. However we set the trigger mode to rising-edge via the STT bit in register 3 and therefore expect rising-edge behaviour.
Is there a configuration setting we are missing? Are any of the other hardware pins of the TPS61310 important in that use case?
Thanks in advance.