
VMX51C1020
_________________________________________________________________________________________________
www.ramtron.com
page 64 of 80
Digital Potentiometers
The
potentiometers that are controlled by DIGPOTx
registers (DIGPOT1, DIGPOT2) that can be
used in applications such as:
o
Gain control
o
Offset adjustment
o
A/D input attenuation
o
Digitally controlled filter
VMX51C1020
has
two
digital
F
IGURE
41:
D
IGITAL
P
OTENTIOMETER
F
UNCTIONAL DIAGRAM
POTx
B
POTx
A
DIGPOTx register
T
ABLE
109:
(DIGPOT1)
D
IG
.
P
OTENTIOMETER
1
C
ONTROL
R
EGISTER
-
SFR
BA
H
7
6
5
4
DIGPOT1 [7:0]
Bit
Mnemonic
Function
7-0
DIGPOT1
Potentiometer 1 Value
T
ABLE
110:
(DIGPOT2)
D
IG
.
P
OTENTIOMETER
2
C
ONTROL
R
EGISTER
-
SFR
BB
H
7
6
5
4
DIGPOT2 [7:0]
Bit
Mnemonic
Function
7-0
DIGPOT2
Potentiometer 2 Value
The digital potentiometers are floating devices,
meaning that there are no restrictions on the
voltage present on their terminals as long as
they are kept within the nominal operating range
of the VMX51C1020.
The current flow through the potentiometers
should be limited to 5mA max.
The digital potentiometer maximum nominal
resistance is 30k +/- 2Kohms from device to
device. On a given device the two digital
potentiometer values usually match within 1%.
Before using the digital potentiometers, they
must first be enabled by setting bit 6 of the
ANALOGPWREN register (92h) to 1. The
potentiometer value is governed by the following
equation.
3
2
1
0
3
2
1
0
R
potentiometer *
= [ 256 - DIGPOTx[7:0] ] x 30k
256
*
Potentiometer value
Digital Potentiometer Setup Example
Only two instructions are required to enable and
configure the digital Potentiometers of the
VMX51C1020:
MOV
ANALOGPWREN,#01000000B
MOV
DIGPOT1,#0C0h
;SET POT1 to 25% of Max Pot value
MOV
DIGPOT2,#040h
;SET POT2 to 75% of Max Pot value
Operational Amplifier
The VMX51C1020 is equipped with an
operational amplifier. This op-amp can be used
for a wide array of analog applications such as:
o
Gain control
o
Offset Control
o
Reference buffering
o
Integrator
o
Other standard op amp applications
The op-amp on the VMX51C1020 has an open-
loop gain of 100dB; a unity gain bandwidth of
5MHz and it is able to drive a 1kO and 40pf load.
The slew rate of the Op-Amp is 7V/μs and the
output voltage can swing between 25mV and
4.975 Volts (10kO load).
To activate the Operational Amplifier, the
OPAMPEN bit (bit 7) of the ANALOGPWREN
register (SFR 92h) must be set to 1.
Warning:
If the VMX51C1020 Op-Amp inputs are
left floating, it should be kept in power
down to prevent risk of oscillation.