Hi,
I work with TPS61311 and have some problems and questions with programming this module in flash mode.
(working with LED2, STRB1 is always = 0)
1. Problem: Video mode is activated after the flash.
a) STRB0 = 0
b) Module reset
FlashRegWrite(0x00, (1 << 7)); Sleep(100);
c) Module is setup to be in Flash Mode
FlashRegWrite(0x01, 0x10 | (2 << 6));
d) STRB0 = 1 fires flash for ~500ms
e) after 500ms led does not turn off, but for 13s is still on.
It looks like video mode is activated? Why is so?
2. Problem: Rising edge trigger does not holds led on.
a) STRB0 = 0, STRB1 = 0
b) Module reset
FlashRegWrite(0x00, (1 << 7)); Sleep(100);
c) Module is setup to be in Flash Mode
FlashRegWrite(0x01, 0x10 | (2 << 6));
d) Set trigger on rising edge
FlashRegWrite(0x03, 0xC1 | (1 << 2));
e) STRB0 = 1 and immediately STRB0 = 0
f) led turns off immediately after STRB0=0 instead of being on for ~500ms.
How to correctly enable rising edge trigger?
3. Triggering by I2C command
According to spec:
The flash strobe is started either by a rising edge on the synchronization source (STRB0 = 1, STRB1 = 0) or by a
positive transition on the START-FLASH/TIMER (SFT) bit (STRB0 = 1, STRB1 = 0).
What is the difference in triggering flash by STRB0 and by SFT? From the spec I understand that in both cases STRB0=1 which automatically triggers flash, REGARDLESS of SFT signal.