English
Language : 

M16C26A-LM Datasheet, PDF (3/16 Pages) Renesas Technology Corp – Sample Program (Lux Meter)
ç
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.
(1)After reset switch depressed
L I GHT
AD J US T
ç
(4)5 seconds elapsed
(2)Initial illuminance displayed
L I GHT
ççççç
LEVEL
(5) Current illuminance
0
input level changes
ç
(3) Changed level displayed
L I GHT
çççç
LEVEL
-3
ç
Table 1. Initial Illuminance and Current Illuminance Levels
Initial illuminance level
- 0.70V - 1.10V
-4
- 0.10V - 0.40V
-3
- 0.30V - 0.60V
-2
- 0.50V - 0.80V
Displayed level
-1
- 0.60V - 1.00V
0
- 0.80V - 1.20V
1
- 1.00V - 1.40V
2
- 1.20V - 1.60V
3
- 1.40V - 1.80V
4
1.40 V - 1.80V -
- 1.60V
- 0.90V
- 1.10V
- 1.30V
- 1.50V
- 1.70V
- 1.90V
- 2.10V
- 2.30V
2.30V -
Figure 2. Example of Program Operation
1.60V -
- 1.10V
- 1.40V
- 1.70V
- 2.00V
- 2.10V
- 2.30V
- 2.50V
- 2.60V
2.60V -
REJ05B0811_0110 Rev.1.10
2007.11
Page 3 of 16