operation is signaled by the RDY pin of the AD5321 IC, routed to the INT pin
of the mikroBUS™ - labeled as the RDY. When the read to, or write from
EEMEM cycle is done, this pin pulses to a LOW logic level. It is otherwise
pulled to a HIGH logic level by an on-board pull-up resistor.
For the complete list of commands and addresses, please refer to the
AD5321 datasheet. However, MikroElektronika provides a library that
contains functions compatible with the MikroElektronika compilers, which
can be used for simplified programming of the DIGI POT 3 Click. The library
also contains an example application, which demonstrates their use. This
example application can be used as a reference for custom designs.
The Click board™ is equipped with an edge screw terminals, which are used
to connect the Click board™ to the external electrical circuit. They offer a
secure connection to the external electrical circuit. A small print of a
potentiometer electrical symbol illustrates how to connect these terminals
properly: Inputs labeled as A and B are the endpoints of the digital
potentiometer, while W is the wiper. Lastly, GND symbol is for connecting
the ground of the circuit where the potentiometer will be used.
DIGI POT 3 click allows using of both unipolar and bipolar signals. The
potential across the positive and the negative power supply pins define the
boundary conditions for a proper digital potentiometer operation. Supply
signals present on the A, B, and W terminals that exceed this range are
clamped by the internal forward-biased diodes. Since this Click board™ is
intended to be used on the mikroBUS™, the power supply voltage of the
AD5321 is +3.3V or +5V, selectable by an onboard SMD jumper labeled as
VCC SEL. This makes it possible to work with the voltage range between 0
and VCC. By utilizing an additional circuitry, it is also possible to work with
the bipolar signals, which can be useful for interfacing the digipot to an
audio source.
Since there are no negative power supplies available on the mikroBUS™, the
Click board™ uses the MCP6022, a rail-to-rail, 10 MHz onboard operational
amplifier from Microchip, in order to support operation with bipolar signals.
It is used as a non-inverting amplifier with a unity gain - a buffer. There are
several onboard SMD jumpers, used to route the signal so it passes through
the buffer, instead of being fed directly to the AD5321 IC. A group of SMD
jumpers labeled as SIGNAL POLARITY is used to patch the signal to a proper
route: setting all these jumpers to the LEFT position will connect the
terminal inputs directly to the AD5231 IC, allowing unipolar signals ranging
from 0 to VCC to be connected. Moving all these jumpers to the RIGHT
position will route the input signal through the decoupling capacitor and the
buffer, allowing bipolar signals to be used, introducing an offset of VCC/2.
This allows signal to swing between VCC/2 and GND for the negative half-
cycle, and between VCC/2 and VCC for the positive half-cycle. The offset is
then removed by a decoupling capacitor at the W terminal. The SMD
jumpers should be all moved either to the LEFT or to the RIGHT position, as
leaving some of them in the opposite position than the others may render
the device unresponsive.
The AN pin can be used as an auxiliary wiper output if routing of the wiper
back to the mikroBUS™ is required. This pin can be completely
disconnected from the mikroBUS™ by moving the appropriate SMD jumper,
labeled as AN to the RIGHT position. This will not affect the presence of the
wiper output on the output terminal.