English
Language : 

ISPPAC20 Datasheet, PDF (23/32 Pages) Lattice Semiconductor – In-System Programmable Analog Circuit
Specifications ispPAC20
Theory of Operation (Continued)
Table 4. Comparator Logic Control Modes/Options
Mode
PC Pin Function
Description
Fixed, Non-Inverting None (internal).
Always generates a +1 times whatever the gain setting of IA4 is. IA4
can be set to gains of -1 to -10 in this mode. Display of the gain setting
for IA4 in PAC-Designer is of the correct polarity.
PC Direct
Direct control of IA4
polarity via the PC pin,
logic 0 = inverted,
logic 1 = no inversion
(external).
IA4 gain setting is correct as shown in PAC-Designer (-1 to -10) if PC
pin input equals a logic 1 (no inversion). If the PC pin input equals a
logic 0, the setting of IA4 will be inverted with respect to what is
displayed in PAC-Designer. Terminating the PC pin low (externally)
in this mode is the most direct way of achieving a constant setting of
positive gain (+1 to +10) for IA4.
RS Flip-Flop
Clamps OA2 to VREFout
when PC is a logic 1, and
has no effect when it’s a
logic 0 (external).
Both comparators combine to generate a set/reset function on the
WINDOW logic output pin instead of the usual XOR function. This
signal is also routed internally to IA4 for polarity control. When PC is
a logic 0, CP1 positive transitions generate a set command and
positive transitions of CP2 a reset command. For example, if PACblock
2 is configured as an integrator and its output is fed to CP1 and CP2
(configured for window comparison), a voltage controlled oscillator
will result from the RS Flip-Flop set/reset reversing the polarity every
time the integration exceeds the upper and then lower window
boundaries in sequence. When PC is a logic 1, the output of OA2
goes immediately to 2.5V and stays in “hold” mode until PC returns
to a logic 0. This effectively implements a gated oscillator function.
CP1 Direct
None.
In this mode, the output of comparator 1 (CP1) controls the polarity
IA4 polarity control based
of IA4, a logic 1 = no inversion, a logic 0 = inverted. When the output
directly on CP1 output, a
of CP1 is in the direct mode, the polarity control is all internal. If the
logic 0 = inverted,
CP1 Buffer E2 bit is set, CP1 changes can only occur if clocked by
logic 1 = no inversion (internal). the PC pin externally (rising edge).
PC Clock
Clocks CP1 data register
(external).
Always enabled anytime the CP1Buffer E2 configuration bit is set.
Each rising edge of PC clocks whatever data is read from CP1’s
output into its output register regardless of what other function is
being performed by the PC pin. In certain modes listed above, the
operation of CP1 in buffered mode combined with the need to clock
its output using the PC pin, would interfere with or prevent the proper
operation of some circuit function implementations.
IA4 Slew-Rate Enhancement
Multiplexer Input control of IA1
Because of the special applications addressed by the
inclusion of a polarity control function in IA4, its circuitry
has been modified to include a slew-rate enhancement
feature. This circuitry is not part of the output amplifier
(OA) PACell and therefore does not change the specified
slew rate as given in the data sheet. Rather, it enhances
the operation of IA4 and improves its performance in
applications such as a voltage controlled oscillators
(VCO), thereby improving its performance in reproducing
non-linear transfer functions. The ispPAC is shipped with
this bit normally enabled. If identical operation between
all IA PACells is desired, the SRE bit associated with IA4
can be disabled by selecting the appropriated edit sym-
bol command in PAC-Designer and making the change.
An external multiplexer select (MSEL) pin is provided that
controls which of two possible input connections are
routed to the input of IA1. When MSEL is a logic 0, input
line “A” is selected to go to IA1, when it is a logic 1, input
line “B” is used. This arrangement allows a number of
applications to be implemented, from something as
straight forward as two input signal channels, to more
complex functions such as those provided for by the
polarity control pin (with the option of different signals
being used as well).
23