
7
The operation begins with the
processor taking in the tri-color
sensor’s digitized readings from
the internal ADC. That data is
compared to the desired color/
brightness setting. The PWM duty
factor is adjusted in response to
any error signal generated by that
comparison operation. The user
can change the color/brightness
setting at any time by writing to
the appropriate device registers
(address
0xE8 to 0xED
during
normal operation).
The feedback and processing
operation is repeated at a rate of
100 Hz (nominal).
The PWM signal is applied to the
LED drivers and controls the on-
time duration of the red, green
and blue LEDs.
The user can input the desired
color/brightness in a variety of
color formats such as CIE XYZ,
Yxy, Yu’v’ and RGB (illuminant E).
There are three indicators in
register ERROR that monitor the
status of the color management
system. Refer to
Application Note
5070.
Factory calibration is needed at a
system level to create a ‘snapshot’
of the initial conditions of the
system. The color management
algorithm references the snapshot
data. In effect, the calibration data
trims out variation in the entire
signal chain from LEDs to sensor
to filter to ADC. The calibration
discussion below is brief. Refer to
Application Note 5070
for
detailed calibration procedures.
First, the device is put into “open
loop” mode by setting the OPMD
bit of register CONFIG1 to high. In
open loop mode, the color
management algorithm is turned
off.
Second, all LEDs are switched on
to maximum PWM. During this,
the ADC output is read out to
check if the sensor output is
within the dynamic range of the
system i.e., 500 < pass < 1000. An
optional internal 2x gain
(1)
can
be selected if the ADC reading is
between 250 and 500. This
procedure is performed for each
sensor channel.
Next, only the RED LEDs are
switched on. An external camera
must be set up to capture the CIE
co-ordinates (preferably XYZ) of
the RED LEDs. The scaled XYZ
readings are then sent to the RED
LED camera calibration registers
(address 0xE8 to 0xED during
calibration mode). Next, the GSSR
bit of register CTRL2 is set to
capture the sensor readings of the
RED LEDs. The readings are stored
in the ADC reading registers
(SENSOR_ADCZ, SENSOR_ADCY,
SENSOR_ADCX registers). The
user must read those registers and
transfer them to the RED LED
sensor calibration registers
(address 0xFA to 0xFF).
This is repeated for GREEN and
BLUE LEDs.
The RCAL bit of register CTRL2 is
then set, after which HDJD-J822
will compute the 31 bytes of
calibration data :
CAL_DATA0 to CAL_DATA30
(2)
The 2 pieces of calibration data is
noted as
(1)
, and
(2)
above. The
user will need to read them from
the device registers via I
2
C and
store them in an external non-
volatile memory. They will have to
be written to the appropriate
registers prior to the start of
normal operation, and should be
part of the system boot-up
sequence.