ADuC812 Evaluation Board Reference Guide
(5) LDR D
EMONSTRATION
C
IRCUIT
U
SING THE
LDR C
IRCUIT
:
As can be seen from examining the schematic an example LDR circuit is connected shown in Figure 2
below:
ADC
DAC
VDD
VDD
Application
Code
LK1
LK2
Circuit diagram of the LDR Circuit
Using the sample code in \code\adc\adcldr.asm the variation in the resistance of the ldr can be seen by the
reducing brightness of the output led as the amount of light is decreased.