a
ADuC814 Evaluation Board Reference Guide
Version 1.0 (5/1/02)
Page 6 of 10
3.0 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:
Figure 2: Circuit diagram of the LDR Circuit
Using the sample code in C:\ADuC\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.
ADC
DAC
VDD
VDD
Application
Code
LK8
LK5