3 / 16 page
REJ05B0811_0110 Rev.1.10
2007.11
Page 3 of 16
M16C/26A Group
Sample Program (Lux Meter)
5.
Operational Specification
(1) The AD value is read-in for 5 seconds after the reset switch is
depressed, and the values read during that time are averaged to
yield an initial illuminance.
(2) The initial illuminance “0” is displayed.
The initial illuminance and the current illuminance levels are
compared in Table 1.
* The AD values are set by calling the common function “AD
average” (RL_AdVeraging). Within the function, a value is
sampled 6 times, and the sampled values except the maximum and
minimum values are averaged, the result of which is returned. This
average value is acquired 8 times, the average of which is made a
fixed value.
Table 1. Initial Illuminance and Current Illuminance Levels
Initial illuminance level
- 0.70V
- 1.10V
- 1.60V
1.60V -
-4
- 0.10V
- 0.40V
- 0.90V
- 1.10V
-3
- 0.30V
- 0.60V
- 1.10V
- 1.40V
-2
- 0.50V
- 0.80V
- 1.30V
- 1.70V
-1
- 0.60V
- 1.00V
- 1.50V
- 2.00V
0
- 0.80V
- 1.20V
- 1.70V
- 2.10V
1
- 1.00V
- 1.40V
- 1.90V
- 2.30V
2
- 1.20V
- 1.60V
- 2.10V
- 2.50V
3
- 1.40V
- 1.80V
- 2.30V
- 2.60V
Displayed level
4
1.40 V -
1.80V -
2.30V -
2.60V -
(1)After reset switch depressed
A D
U S
J
T
(2)Initial illuminance displayed
(5) Current illuminance
input level changes
(3) Changed level displayed
LE
E L
V
0
LE
E L
V
-
3
LI GH T
L I G H T
L I G H T
Figure 2. Example of Program Operation
(4)5 seconds elapsed