AD5227
Rev. B | Page 12 of 16
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
04419-0-033
UP/DOWN
MR RESET
V
CC
GND
ADM812
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.
04419-0-034
U3
AD5227
DIGITAL
POTENTIOMETER
CLK
1
V
DD
8
U/D
2
CS
7
A13 B1 6
GND
4
W1
5
B1
A1
W1
U2
LS7084
QUADRATURE
DECODER
RBIAS
1
CLK
8
V
DD
2
U/D
7
VSS
3
X4/X1
6
A
4
B
5
B
C
A
U1
ROTARY
ENCODER
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.
04419-0-035
A
W
B
10kΩ
V
DD
GND
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.
04419-0-036
A
W
B
10kΩ
R1
418kΩ
GND
U2
AD5227
V
DD
5V
CS
CLK
U/D
5V
U3
AD8591
+
V+
V–
5V
PWM
V
IN
V
OUT
GND
U1
ADP3333
ARM-1.5
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)
AD5227
Rev. B | Page 13 of 16
The U1 ADP3333ARM-1.5 is a 1.5 V LDO that is lifted above
or lowered below 0 V. When V
WB
of the AD5227 is at minimum,
there is no current through D1, so the GND pin of U1 would be
at −1.5 V if U3 were biased with the dual supplies. As a result,
some of the U2 low resistance steps have no effect on the output
until the U1 GND pin is lifted above 0 V. When V
WB
of the
AD5227 is at its maximum, V
OUT
becomes V
L
+ V
AB
, so the U1
supply voltage must be biased with adequate headroom.
Similarly, a PWM signal can be applied at the U1 shutdown pin
for power efficiency. This circuit works well for a single LED.
ADJUSTABLE HIGH POWER LED DRIVER
Figure 35 shows a circuit that can drive three to four high power
LEDs. ADP1610 is an adjustable boost regulator that provides
the voltage headroom and current for the LEDs. The AD5227
and the op amp form an average gain of 12 feedback network
that servos the R
SET
voltage and ADP1610’s FB pin 1.2 V band
gap reference voltage. As the loop is set, the voltage across R
SET
is regulated around 0.1 V and adjusted by the digital
potentiometer.
SET
R
LED
R
V
I
SET
=
(6)
R
SET
should be small enough to conserve power but large
enough to limit maximum LED current. R3 should also be used
in parallel with AD5227 to limit the LED current within an
achievable range. A wider current adjustment range is possible
by lowering the R2 to R1 ratio, as well as changing R3
accordingly.
04419-0-037
SS RT GND
IN
U2
ADP1610
SW
FB
PWM
1.2V
SD
COMP
C
SS
10nF
C
C
390pF
R
C
100kΩ
L1
10μF
D1
C3
10μF
R4
13.5kΩ
D2
D3
D4
V
OUT
C2
10μF
5V
+
AD8541
U1
L1–SLF6025-100M1R0
D1–MBR0520LT1
U3
V+
V–
5V
C8
0.1μF
U1
AD5227
BA
10kΩ
R3
200Ω
W
R1
100Ω
R2
1.1kΩ
R
SET
0.25Ω
Figure 35. Adjustable Current Source for LEDs in Series
AUTOMATIC LCD PANEL BACKLIGHT CONTROL
With the addition of a photocell sensor, an automatic brightness
control can be achieved. As shown in Figure 36, the resistance
of the photocell changes linearly but inversely with the light
output. The brighter the light output, the lower the photocell
resistance and vice versa. The AD5227 sets the voltage level that
is gained up by U2 to drive N1 to a desirable brightness. With the
photocell acting as the variable feedback resistor, the change in
the light output changes the R2 resistance, therefore causing U2
to drive N1 accordingly to regulate the output. This simple low
cost implementation of the LED controller can compensate for
the temperature and aging effects typically found in high power
LEDs. Similarly, for power efficiency, a PWM signal can be
applied at the gate of N2 to switch the LED on and off without
any noticeable effect.
04419-0-038
CS
CLK
U/D
A
W
B
10kΩ
V
DD
GND
U1
AD5227
C1
1μF
C2
0.1μF
5V
U2
AD8591
+
V+
V–
5V
C3
0.1μF
R1
1kΩ
R2
5V
PWM
N1
2N7002
WHITE
LED
D1
5V
PHOTOCELL
SD
Figure 36. Automatic LCD Panel Backlight Control
6-BIT CONTROLLER
The AD5227 can form a simple 6-bit controller with a clock
generator, a comparator, and some output components. Figure 37
shows a generic 6-bit controller with a comparator that first
compares the sampling output with the reference level and
outputs either a high or low level to the AD5227 U/
D
pin. The
AD5227 then changes step at every clock cycle in the direction
indicated by the U/
D
state. Although this circuit is not as elegant
as the one shown in , it is self-contained, very easy to
design, and can adapt to various applications.
Figure 36
04419-0-039
CLK
U/D
B
5V
V
DD
GNDCS
U1
AD5227
+
U2
COMPARATOR
SAMPLING_OUTPUT
REF
U3
AD8531
+
OUTPUT
OP AMP
Figure 37. 6-Bit Controller
AD5227
Rev. B | Page 14 of 16
3.50
3.40
3.41
3.42
3.43
3.44
3.45
3.46
3.47
3.48
3.49
02468101
04419-0-041
DAYS
BATTERY VOLTAGE (V)
CONSTANT BIAS WITH SUPPLY TO
RETAIN RESISTANCE SETTING
2
T
A
= 25°C
Users who consider EEMEM potentiometers but cannot justify
the additional cost and programming for their designs can con-
sider constantly biasing the AD5227 with the supply to retain
the resistance setting as shown in Figure 38. The AD5227 is
designed specifically with low power to allow power conservation
even in battery-operated systems. As shown in Figure 39, a
similar low power digital potentiometer is biased with a 3.4 V
450 mA/hour Li-Ion cell phone battery. The measurement shows
that the device drains negligible power. Constantly biasing the
potentiometer is a practical approach because most portable
devices do not require detachable batteries for charging.
Although the resistance setting of the AD5227 is lost when the
battery needs to be replaced, this event occurs so infrequently
that the inconvenience is minimal for most applications.
Figure 39. Battery Consumption Measurement
04419-0-040
V
DD
AD5227
U1
GND
V
DD
U2
GND
COMPONENT X
V
DD
U3
GND
COMPONENT Y
GND
V
DD
BATTERY OR
SYSTEM POWER
SW1
+
Figure 38. Constant Bias AD5227 for Resistance Retention

AD5227BUJZ100-RL7

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Digital Potentiometer ICs IC 6-Bit Up/Down
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union