
AD5227
APPLICATIONS
MANUAL CONTROL WITH TOGGLE AND
PUSHBUTTON SWITCHES
The AD5227’s simple interface allows it to be used with
mechanical switches for simple manual operation. The states of
the CS and U/D can be selected by toggle switches and the CLK
input can be controlled by a pushbutton switch. Because of the
numerous bounces due to contact closure, the pushbutton
switch should be debounced by flip-flops or by the ADM812 as
shown in Figure 31.
Rev. 0 | Page 12 of 16
0
UP/DOWN
MR
ADM812
RESET
V
CC
GND
CLK
AD5227
CS
U/D
5V
INCREMENT
Figure 31. Manual Push Button Up/Down Control
MANUAL CONTROL WITH ROTARY ENCODER
Figure 32 shows another way of using AD5227 to emulate
mechanical potentiometer in a rotary knob operation. The
rotary encoder U1 has a C ground terminal and two out-of-
phase signals, A and B. When U1 is turned clockwise, a pulse
generated from the B terminal leads a pulse generated from the
A terminal and vice versa. Signals A and B of U1 pass through a
quadrature decoder U2 that translates the phase difference
between A and B of U1 into compatible inputs for U3 AD5227.
Therefore, when B leads A (clockwise), U2 provides the AD5227
with a logic high U/D signal, and vice versa. U2 also filters
noise, jitter, and other transients as well as debouncing the
contact bounces generated by U1.
0
U3
AD5227
POTDIGITAL
CLK
1
V
DD
8
U/D
A1
2
CS
B1 6
7
3
GND
4
W1 5
B1
A1
W1
LS7084
QDECODER
RBIAS
1
CLK
8
V
DD
2
U/D
7
VSS
3
X4/X1
6
A
4
B
5
B
C
A
ROU1
RE11CT-V1Y12-EF2CS
R3
10k
R1
10k
R2
10k
5V
Figure 32. Manual Rotary Control
ADJUSTABLE LED DRIVER
The AD5227 can be used in many electronics-level adjustments
such as LED drivers for LCD panel backlight control. Figure 33
shows an adjustable LED driver. The AD5227 sets the voltage
across the white LED D1 for the brightness control. Since U2
handles up to 250 mA, a typical white LED with V
F
of 3.5 V
requires a resistor, R1, to limit the U2 current. This circuit is
simple but not power-efficient, therefore the U2 shutdown pin
can be toggled with a PWM signal to conserve power.
0
A
W
B
GND
10k
V
DD
CS
CLK
U/D
U1
AD5227
C1
1
μ
F
C2
0.1
μ
F
5V
U2
AD8591
+
–
V+
V–
SD
5V
C3
0.1
μ
F
R1
6
WHITE
LED
D1
PWM
Figure 33. Low Cost Adjustable LED Driver
ADJUSTABLE CURRENT SOURCE FOR LED DRIVER
Since LED brightness is a function of current rather than
forward voltage, an adjustable current source is preferred over a
voltage source as shown in Figure 34.
0
A
W
B
10k
R1
418k
GND
U2
AD5227
V
DD
CS
5V
CLK
U/D
5V
U3
AD8591
+
–
V+
V–
5V
PWM
V
IN
V
OUT
GND
ADP3333
SD
R
SET
0.1
VL
ID
D1
Figure 34. Adjustable Current Source for LED Driver
The load current can be found as the V
WB
of the AD5227
divided by R
SET
.
SET
WB
D
R
V
I
=
(5)