
PRELIMINARY
PSoC®3: CY8C38 Family Data Sheet
Document Number: 001-11729 Rev. *I
Page 53 of 100
8.4 Opamps
The CY8C38 family of devices contain up to four general
purpose opamps in a device.
Figure 8-5. Opamp
The opamp is uncommitted and can be configured as a gain
stage or voltage follower, or output buffer on external or internal
signals.
See Figure 8-6. In any configuration, the input and output signals
can all be connected to the internal global signals and monitored
with an ADC, or comparator. The configurations are imple-
mented with switches between the signals and GPIO pins.
Figure 8-6. Opamp Configurations
The opamp has three speed modes, slow, medium, and fast. The
slow mode consumes the least amount of quiescent power and
the fast mode consumes the most power. The inputs are able to
swing rail-to-rail. The output swing is capable of rail-to-rail
operation at low current output, within 50 mV of the rails. When
driving high current loads (about 25 mA) the output voltage may
only get within 500 mV of the rails.
8.5 Programmable SC/CT Blocks
The CY8C38 family of devices contains up to four switched
capacitor/continuous time (SC/CT) blocks in a device. Each
switched capacitor/continuous time block is built around a single
rail-to-rail high bandwidth opamp.
Switched capacitor is a circuit design technique that uses capac-
itors plus switches instead of resistors to create analog functions.
These circuits work by moving charge between capacitors by
opening and closing different switches. Nonoverlapping in phase
clock signals control the switches, so that not all switches are ON
simultaneously.
The PSoC Creator tool offers a user friendly interface, which
allows you to easily program the SC/CT blocks. Switch control
and clock phase control configuration is done by PSoC Creator
so users only need to determine the application use parameters
such as gain, amplifier polarity, vref connection, and so on.
Table 8-2. LUT Function vs. Program Word and Inputs
Control Word
Output (A and B are LUT inputs)
0000b
FALSE
(‘0’)
0001b
A
AND B
0010b
A
AND (NOT B)
0011b
A
0100b
(NOT A) AND B
0101b
B
0110b
A
XOR B
0111b
A
OR B
1000b
A
NOR B
1001b
A
XNOR B
1010b
NOT B
1011b
A
OR (NOT B)
1100b
NOT A
1101b
(NOT A) OR B
1110b
A
NAND B
1111b
TRUE
(‘1’)
Opamp
VREF
GPIO
GPIO
=
Analog Switch
GPIO
Analog
Global Bus
Analog
Internal Bus
Analog
Global Bus
Opamp
Vout to Pin
Vin
Vout to GPIO
Vp to GPIO
b) External Uncommitted
Opamp
a) Voltage Follower
Vout to Pin
Vp
Vn
To Internal Signals
c) Internal Uncommitted
Opamp
Vn to GPIO
GPIO Pin
Opamp
Opamp
[+] Feedback