Product Document Published by ams OSRAM Group
Application Note AN001050 TMD3719 Flicker Detection Built-in Flicker Function v1-00 • 2022-Aug-04
Document Feedback TMD3719 Flicker Detection Content Guide Content Guide 1 Introduction ................................... 3 4 Revision Information ................... 18 1.1 Flicker Detection Registers .......................... 3 5 Legal Information ......................... 19 2 Flicker Detection Modes ............. 13 2.1 2.2 On-Chip Mode ............................................ 13 Data Sampling Mode .................................. 15 3 Summary / Results ......................
Document Feedback 1 TMD3719 Flicker Detection Introduction Introduction The TMD3719 features ambient light and color (RGB) sensing, proximity and flicker detection. The device integrates direct detection of ambient light flicker for 4 selectable frequency bins. There are two flicker detection modes; On-chip mode and data sampling mode. During the data sampling mode, the flicker detection engine can buffer data in a FIFO for calculating other flicker frequencies externally.
Document Feedback Addr: 0x40 FD_CFG0 Bit Reset (1) 1.1.2 Field Type TMD3719 Flicker Detection Introduction Bit Description 2 200 ms 3 User Defined by FD_SAMPLE_TIME and FD_SAMPLES If FD_MODE = 1 (register 0x82 [6]) then the number of samples changes from 1024 to unlimited. FD_CFG5 Register (Address 0x45) Figure 2: FD_CFG5 Register Addr: 0x45 FD_CFG5 Bit Default 7:0 (1) 1.1.3 Bit Name FD_CHANNEL_DISABLE (1) 0xFE Access Bit Description R/W Flicker Detection Channel Disable.
Document Feedback 1.1.4 TMD3719 Flicker Detection Introduction FD_CFG7 Register (Address 0x48) Figure 4: FD_CFG8 Register Addr: 0x48 FD_CFG8 Bit Bit Name Default 7:2 Reserved 000000 1:0 1.1.5 FD_SAMPLE_TIME_L 01 Access Bit Description R/W Flicker Detection Sample Time Low. This register is the low byte of the 10 bits used for setting the flicker detection integration time.
Document Feedback 1.1.6 TMD3719 Flicker Detection Introduction MEAS_MODE1 Register (Address 0x82) Figure 6: MEAS_MODE1 Register Addr: 0x82 MEAS_MODE1 Bit Bit Name Default 7 Reserved 0 Access Bit Description Flicker Detection Mode. Writing a 0 will set the FD to onchip mode and writing a 1 will set the FD to data sampling mode.
Document Feedback 1.1.
Document Feedback 1.1.
Document Feedback 1.1.
Document Feedback 1.1.
Document Feedback 1.1.11 TMD3719 Flicker Detection Introduction CONTROL Register (Address 0xF6) Figure 11: CONTROL Register 1.1.12 Addr: 0xF6 CONTROL Bit Bit Name Default 7:3 Reserved 00000 Access Bit Description 2 ALS_MANUAL_AZ 0 R/W ALS Manual Autozero. Starts a manual autozero of the ALS engines. Set AEN = 0 before starting a manual autozero for it to work. 1 FIFO_CLR 0 R/W FIFO Buffer Clear. Clears all FIFO data, FINT, FIFO_OV, and FIFO_LVL.
Document Feedback 1.1.13 TMD3719 Flicker Detection Introduction FIFO_STATUS Register (Address 0xFB) Figure 13: FIFO_STATUS Register Addr: 0xFB FIFO_STATUS Bit Default 7 6:0 1.1.14 Bit Name FIFO_OV 0 FIFO_LVL 0000000 Access Bit Description R FIFO Buffer Overflow. Indicates that the FIFO buffer overflowed and information has been lost. Bit is automatically cleared when the FIFO is read. R FIFO Buffer Level.
Document Feedback 2 Flicker Detection Modes 2.1 On-Chip Mode TMD3719 Flicker Detection Flicker Detection Modes Flicker function can be activated by the flicker enable bit in register 0x80 bit 6 (MEAS_MODE1.FDEN). Writing a 1 activates flicker detection. Writing a 0 disables flicker detection. The time to measure for flicker is set by using register FD_CFG0.FD_TIME (0x40 bits [1:0]). The sampling time can be set to 50/100/200 milliseconds for a frequency bin resolution of 20/10/5 Hz, respectively.
Document Feedback TMD3719 Flicker Detection Flicker Detection Modes Figure 16: TMD3719 GUI Figure 17: Explanation of Fields in the Above GUI Image Index 1 Description Time to measure flicker Register(s) [bits] Comments 0x40 [1:0] 200 ms, 100 ms (Default), 50 ms, user defined(1) 2 Number of samples to be measured for flicker 0x40 [4:3] 128 (Default), 256, 512, 1024 (Unlimited(2)) 3 Integration time for flicker 0x47 [1:0], 0x48 [7:0] Must not be changed with FDEN = 1 and PON = 1 0x41[4:0],
Document Feedback 2.2 TMD3719 Flicker Detection Flicker Detection Modes Data Sampling Mode This section gives guidance on configuring flicker for 16-bit sampling mode and accessing flicker detection data from the FIFO. This section shows an example of a specific flicker configuration. Adjustment to the configuration could be made for a different application. FIFO access can be read out with single reads starting at FDATA0 (0xFC). 4 consecutive I2C addresses have to be read to get a full data set.
Document Feedback 2.2.2 2.2.3 TMD3719 Flicker Detection Flicker Detection Modes Clearing the FIFO: 1. Read ENABLE register (0x80) contents and save it to a variable ‘A’. 2. Set ENABLE register (0x80) to 0x1, only PON is enabled. 3. Read CONTROL register (0xF6) and save it to a variable ‘B’. 4. Set variable ‘B’ bit 1 (FIFO_CLR) to 1, leave other bits same. 5. Write ‘B’ back to CONTROL register (0xF6). 6. Write variable ‘A’ to ENABLE register (0x80) to recover the original state. 7.
Document Feedback 3 TMD3719 Flicker Detection Summary / Results Summary / Results There are two modes for configuring the flicker function in this device, on-chip and data sampling. Onchip flicker detection uses an embedded algorithm and data sampling uses FIFO to access data. ams OSRAM provides a robust flicker detection functionality in many devices, the primary application for the flicker detection function would be flicker-immune camera operation.
Document Feedback 4 TMD3719 Flicker Detection Revision Information Revision Information Changes from previous version to current revision v1-00 Page Initial production version ● ● Page and figure numbers for the previous version may differ from page and figure numbers in the current revision. Correction of typographical errors is not explicitly mentioned.
Document Feedback 5 TMD3719 Flicker Detection Legal Information Legal Information Copyrights & Disclaimer Copyright ams-OSRAM AG, Tobelbader Strasse 30, 8141 Premstaetten, Austria-Europe. Trademarks Registered. All rights reserved. The material herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner. Information in this document is believed to be accurate and reliable.