Component - Operational Amplifier (Opamp) V1.80 Datasheet.pdf

PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
1.80
Features
 Follower or Opamp configuration
 Unity gain bandwidth > 3.0 MHz
 Input offset voltage 2.0 mV max
 Rail-to-rail inputs and output
 Output direct low resistance connection to pin
 25-mA output current
 Programmable power and bandwidth
 Internal connection for follower (saves pin)
General Description
The Opamp component provides a low-voltage, low-power operational amplifier and may be
internally connected as a voltage follower. The inputs and output may be connected to internal
routing nodes, directly to pins, or a combination of internal and external signals. The Opamp is
suitable for interfacing with high-impedance sensors, buffering the output of voltage DACs,
driving up to 25 mA; and building active filters in any standard topology.
Input/Output Connections
This section describes the various input and output connections for the Opamp. An asterisk (*) in
the list of I/Os indicates that the I/O may be hidden on the symbol under the conditions listed in
the description of that I/O.
Noninverting – Analog
When the Opamp is configured as a follower, this I/O is the voltage input. If the Opamp is
configured as an Opamp, this I/O acts as the standard Opamp noninverting input.
Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600
Document Number: 001-79127 Rev. *A
Revised July 28, 2015
Operational Amplifier (Opamp)
PSoC® Creator™ Component Datasheet
Inverting – Analog *
When the Opamp component is configured for Opamp mode, this I/O is the normal inverting
input. When the Opamp is configured for Follower mode, this I/O is hard-connected to the output
and the I/O is unavailable.
Vout – Analog
The output is directly connected to a pin. It can drive 25 mA and can be connected to internal
loads using the analog routing fabric. When used for internal routing, the output remains
connected to the pin.
Schematic Macro Information
The default Opamp in the Component Catalog is a schematic macro using an Opamp
component with default settings. The Opamp component is connected to an analog Pin
component named Vout_1.
Page 2 of 17
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Component Parameters
Drag an Opamp component onto your design and double-click it to open the Configure dialog.
The Opamp has the following parameters:
Mode
This parameter allows you to select between two configurations: OpAmp and Follower. Opamp
is the default configuration. In this mode, all three terminals are available for connection. In
follower mode, the inverting input is internally connected to the output to create a voltage
follower.
Figure 1. Configuration Options
Document Number: 001-79127 Rev. *A
Page 3 of 17
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Power
The Opamp works over a wide range of operating currents. Higher operating current increases
Opamp bandwidth. The Power parameter allows you to select the power level:



In High Power and Med Power modes, the output is a class AB stage, enabling direct drive
of high output currents.
In Low Power mode, the output is a class A stage with limited current drive.
In Low Power Over Compensated (LPOC) mode, the output is a class A stage.
For PSoC 3 Production silicon, the LPOC mode is used for low-power transimpedance
amplifiers (TIAs). This mode has the same drive capability as low power, but includes added
compensation for circuit topologies with higher than normal input capacitance, as seen in
photo sensors and other current-output sensors of various types.
Wider-bandwidth TIAs can be implemented using the medium or high-power settings. In this
case, exercise the usual care in dealing with compensation for capacitively loaded sources.
Notes
1. The above description of LPOC mode is correct for PSoC 3 Production silicon only.
2. Only High Power mode is supported on PSoC 5 silicon.
Placement
Each Opamp is directly connected to specific GPIOs.
Noninverting Input
Inverting Input
Output
opamp_0
P0[2]
P0[3]
P0[1]
opamp_1
P3[5]
P3[4]
P3[6]
opamp_2
P0[4]
P0[5]
P0[0]
opamp_3
P3[3]
P3[2]
P3[7]
Refer to the device datasheet for the part being used for the specific physical pin connections.
Input signals may use the analog global routing buses in addition to the dedicated input pins.
Using the direct connections uses fewer internal routing resources and results in lower route
resistance and capacitance. The output pin associated with each specific location will always be
driven by the Opamp, when enabled.
Ports P0[3] and P3[2] are also used for connection to a capacitor for bypassing the bandgap
reference supplied to the ADC, for a reference output, or for an input from an external reference.
When these reference connections are used, routing to the Opamp inverting inputs must be
done through the analog global routing buses.
Page 4 of 17
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Figure 2 shows one example of how the Opamp may be connected using the Design-Wide
Resources Pin Editor.
Figure 2. Example Placement
Application Programming Interface
Application Programming Interface (API) routines allow you to configure the component using
software. The following table lists and describes the interface to each function. The subsequent
sections cover each function in more detail.
By default, PSoC Creator assigns the instance name “Opamp_1” to the first instance of a
component in a given design. You can rename it to any unique value that follows the syntactic
rules for identifiers. The instance name becomes the prefix of every global function name,
variable, and constant symbol. For readability, the instance name used in the following table is
“Opamp.”
Function
Description
Opamp_Start()
Turns on the Opamp and sets the power level to the value chosen
during the parameter selection.
Opamp_Stop()
Disables Opamp (power down).
Opamp_SetPower()
Sets the power level.
Opamp_Sleep()
Stops and saves the user configuration.
Opamp_Wakeup()
Restores and enables the user configuration.
Opamp_Init()
Initializes or restores default Opamp configuration.
Opamp_Enable()
Enables the Opamp.
Document Number: 001-79127 Rev. *A
Page 5 of 17
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Function
Description
Opamp_SaveConfig()
Empty function. Provided for future use.
Opamp_RestoreConfig()
Empty function. Provided for future use.
Global Variables
Variable
Opamp_initVar
Description
Indicates whether the Opamp has been initialized. The variable is initialized to 0 and set to 1
the first time Opamp_Start() is called. This allows the component to restart without
reinitialization after the first call to the Opamp_Start() routine.
If reinitialization of the component is required, then the Opamp_Init() function can be called
before the Opamp_Start() or Opamp_Enable() function.
void Opamp_Start(void)
Description:
Turns on the Opamp and sets the power level to the value chosen during the parameter
selection.
Parameters:
None
Return Value:
None
Side Effects:
None
void Opamp_Stop(void)
Description:
Turns off the Opamp and enable its lowest power state.
Parameters:
None
Return Value:
None
Side Effects:
None
Page 6 of 17
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
void Opamp_SetPower(uint8 power)
Description:
Sets the power level.
Note Only High Power mode is supported on PSoC 5 silicon.
Parameters:
uint8 power: Sets the power level to one of four settings: LPOC, Low, Medium, or High.
Power Setting
Notes
Opamp_LPOCPOWER
Least power, compensated for TIA
Opamp_LOWPOWER
Least power, reduced bandwidth
Opamp_MEDPOWER
Opamp_HIGHPOWER
Return Value:
None
Side Effects:
None
Highest bandwidth
void Opamp_Sleep(void)
Description:
This is the preferred routine to prepare the component for sleep. The Opamp_Sleep() routine
saves the current component state. Then it calls the Opamp_Stop() function and calls
Opamp_SaveConfig() to save the hardware configuration.
Call the Opamp_Sleep() function before calling the CyPmSleep() or the CyPmHibernate()
function. Refer to the PSoC Creator System Reference Guide for more information about
power management functions.
Parameters:
None
Return Value:
None
Side Effects:
None
void Opamp_Wakeup(void)
Description:
This is the preferred routine to restore the component to the state when Opamp_Sleep() was
called. The Opamp_Wakeup() function calls the Opamp_RestoreConfig() function to restore
the configuration. If the component was enabled before the Opamp_Sleep() function was
called, the Opamp_Wakeup() function will also re-enable the component.
Parameters:
None
Return Value:
None
Side Effects:
Calling the Opamp_Wakeup() function without first calling the Opamp_Sleep() or
Opamp_SaveConfig() function may produce unexpected behavior.
Document Number: 001-79127 Rev. *A
Page 7 of 17
Operational Amplifier (Opamp)
PSoC® Creator™ Component Datasheet
void Opamp_Init(void)
Description:
Initializes or restores the component according to the customizer Configure dialog settings. It
is not necessary to call Opamp_Init() because the Opamp_Start() routine calls this function
and is the preferred method to begin component operation.
Parameters:
None
Return Value:
None
Side Effects:
All registers will be set to values according to the customizer Configure dialog.
void Opamp_Enable(void)
Description:
Activates the hardware and begins component operation. It is not necessary to call
Opamp_Enable() because the Opamp_Start() routine calls this function, which is the
preferred method to begin component operation.
Parameters:
None
Return Value:
None
Side Effects:
If the initVar variable is already set, this function only calls the Opamp_Enable() function.
void Opamp_SaveConfig(void)
Description:
Empty function. Provided for future use.
Parameters:
None
Return Value:
None
Side Effects:
None
void Opamp_RestoreConfig(void)
Description:
Empty function. Provided for future use.
Parameters:
None
Return Value:
None
Side Effects:
None
Page 8 of 17
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Sample Firmware Source Code
PSoC Creator provides many example projects that include schematics and example code in the
Find Example Project dialog. For component-specific examples, open the dialog from the
Component Catalog or an instance of the component in a schematic. For general examples,
open the dialog from the Start Page or File menu. As needed, use the Filter Options in the
dialog to narrow the list of projects available to select.
Refer to the “Find Example Project” topic in the PSoC Creator Help for more information.
Resources
The Opamp component uses one Opamp Fixed block per instance. When used in the Opamp
mode with external components (that is, not routing the output through the analog globals), no
routing resources are used.
API Memory Usage
The component memory usage varies significantly, depending on the compiler, device, number
of APIs used and component configuration. The following table provides the memory usage for
all APIs available in the given component configuration.
The measurements have been done with the associated compiler configured in Release mode
with optimization set for Size. For a specific design the map file generated by the compiler can
be analyzed to determine the memory usage.
PSoC 3 (Keil_PK51)
Configuration
Default
PSoC 5 (GCC)
PSoC 5LP (GCC)
Flash
SRAM
Flash
SRAM
Flash
SRAM
Bytes
Bytes
Bytes
Bytes
Bytes
Bytes
130
2
198
5
198
5
Document Number: 001-79127 Rev. *A
Page 9 of 17
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
DC and AC Electrical Characteristics for PSoC 3
Specifications are valid for –40 °C ≤ TA ≤ 85 °C and TJ ≤ 100 °C, except where noted.
Specifications are valid for 1.71 V to 5.5 V, except where noted.
DC Characteristics
Parameter
Description
Conditions
Min
Typ[1]
Max
Units
VSSA
–
VDDA
V
VI
Input voltage range
VIOFF
Input offset voltage
Temp = –40 °C to +70 °C
–
0.5
2
mV
TCVos
Input offset voltage drift
with temperature
Power mode = high
–
±12
±30
µV/°C
Avol
Open-loop gain
Power mode = high
90
–
–
dB
Ge1
Gain error, unity gain
buffer mode
RLOAD = 1 k
–
–
±0.1
%
RIN
Input resistance
Positive gain, noninverting input
–
–
–
M
CIN
Input capacitance
Routing from pin
–
–
18
pF
VO
Output voltage range
1 mA, source or sink, power
mode = high
VSSA +
0.05
–
VDDA –
0.05
V
100 K to VDDA/2, G = 1
–
–
–
V
VSSA + 500 mV VOUT  VDDA –
500 mV, VDDA > 2.7 V
25
–
–
mA
VSSA + 500 mV  Vout  VDDA –
500 mV, 1.7 V = VDDA  2.7 V
16
–
–
mA
Power mode = min
–
200
270
µA
Power mode = low
–
250
400
µA
Power mode = med
–
330
950
µA
Power mode = high
–
1160
2500
µA
80
–
–
dB
VDDA ≥ 2.7 V
85
–
–
dB
VDDA ≤ 2.7 V
70
-
-
IOUT
IDD
Output current, source
or sink
Quiescent current
CMRR
Common mode rejection
ratio
PSRR
Power supply rejection
ratio
1. The values are for TA = 25 °C, VDDA = 5.0 V, Power = High, output referenced to analog ground, VSSA except
where noted.
Page 10 of 17
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Figures
Histogram Input Offset Voltage
T = 25 ° C, VDDA = 5.0 V
Opamp Operating Current versus VDDA, and Power
Mode
600
No. of Opamps
1.2
500
1
Current, mA
400
300
200
100
0.8
High Power Mode
0.6
Medium
Low, Minimum
0.4
0.2
0
0.5
0.4
0.3
0.2
0.1
0.0
-0.1
-0.2
-0.3
-0.4
-0.5
0
1
mV
Operating Current versus Temperature, VDD = 5.0 V
2
3
VDDA, V
5
Operating Current versus Voltage T = 25 °C
1200
1200
1000
uA
800
1000
High
High
uA
800
600
600
Medium
400
Medium
400
200
0
-60
4
Low , LPOC
-40
-20
0
20
40
Temp degC
Document Number: 001-79127 Rev. *A
60
80
200
100
120
Low , LPOC
0
0
1
2 Vdda 3 V
4
5
6
Page 11 of 17
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Output Voltage versus Load Current,
VDDA = 1.71 V, Power = High
Output Voltage versus Load Current,
VDDA = 5.0 V, Power = High
0.6
V
0.4
SINK
Diff from Vdda,Vss
0.2
-40
30
100
-40
30
100
0
-0.2
SOURCE
Diff from Vdda
-0.4
Diff from Vdda, Vss
V
0.6
5
10
15
I Load mA
20
25
0
30
V
0.1
0
-0.1
15
I Load mA
20
25
30
-0.2
SINK
0
-0.1
SOURCE
Diff from Vdda
Diff from Vdda, Vss
V
Diff from Vdda, Vss
10
0.2
SINK
0.1
-40
30
100
-40
30
100
-0.3
-0.4
-0.5
-0.6
-0.7
SOURCE
Diff from Vdda
-0.2
-0.3
-40C
30C
100C
-40C
30C
100C
-0.4
-0.5
-0.6
-0.7
-0.8
-0.8
0
0.5
1
I Load mA
1.5
2
Output Voltage versus Load Current,
VDDA = 2.7 V, Power = Low
0
0.5
1
I Load mA
1.5
2
Output Voltage versus Load Current,
VDDA = 5.0 V, Power = Low
0.4
0.4
-40
30
100
-40
30
100
0.2
SINK
0.2
0
SOURCE
Diff from Vdda
0.05
0.10
I Load
Page 12 of 17
0.1
SINK
0.0
-0.1
-0.2
SOURCE
Diff from Vdda
-0.3
-0.3
-0.4
0.00
-40
30
100
-40
30
100
0.3
V
0.3
Diff from Vdda, Vss
V
5
Output Voltage versus Load Current
VDDA = 5.0 V, Power = Medium
0.2
Diff from Vdda, Vss
SOURCE
Diff from Vdda
-0.4
Output Voltage versus Load Current,
VDDA = 2.7 V, Power = Med
-0.2
-40
30
100
-40
30
100
0
-0.6
0
-0.1
SINK
0.2
-0.2
-0.6
0.1
0.4
mA
0.15
-0.4
0.00
0.05
0.10
I Load
0.15
mA
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Input Offset Voltage versus Temperature
Power = High, VDDA = 5.0 V
2.5
2
1.5
Spec Limit
VDDA, V
1
Typical
0.5
0
Mean
-0.5
-1
-1.5
Spec Limit
-2
-2.5
-40
-20
0
20
40
60
80
100
Temperature , deg C
AC Characteristics
Parameter
GBW
SR
en
Description
Gain-bandwidth
product
Slew Rate
Input noise density
Document Number: 001-79127 Rev. *A
Conditions
Min
Typ
Max
Units
Power mode = minimum, 100 mV
pk-pk, 15-pF load
1
5.4
–
MHz
Power mode = low, 100 mV pk-pk,
15-pF load
2
5.1
–
MHz
Power mode = medium, 100 mV
pk-pk, 15-pF load
1
3.5
–
MHz
Power mode = high, 100 mV pk-pk,
200-pF load
3
8
–
MHz
Power mode = low, 15-pF load
1.1
2.4
–
V/µs
Power mode = medium, 15-pF load
0.9
1.4
–
V/µs
Power mode = high, 200-pF load
3
4.3
–
V/µs
Power mode = high, VDDA = 5 V, at
100 kHz
–
45
–
nV/sqrtHz
Page 13 of 17
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Figures
Input Voltage Noise Density
T = 25 °C, VDDA = 5.0 V, Power = high
1000
nV/rtHz
100
10
0.01
0.1
1
kHz
10
100
1000
DC and AC Electrical Characteristics for PSoC 5
Specifications are valid for –40 °C ≤ TA ≤ 85 °C and TJ ≤ 100 °C, except where noted.
Specifications are valid for 1.71 V to 5.5 V, except where noted.
DC Characteristics
Parameter
Description
VI
Input voltage range
VOS
Input offset voltage
Conditions
Min
Typ
Max
Units
VSSA
–
VDDA
V
Operating temperature > 70 °C
–
–
3
mV
Operating temperature –40 °C to
70 °C
–
–
2
mV
–
±12
±30
µV/°C
TCVos
Input offset voltage drift
with temperature
Ge1
Gain error, unity gain
buffer mode
RLOAD = 1 k
–
–
±0.1
%
CIN
Input capacitance
Routing from pin
–
–
18
pF
VO
Output voltage range
1 mA, source or sink
VSSA +
0.05
–
VDDA –
0.05
V
IOUT
Output current, source
or sink
VSSA + 500 mV Vout  VDDA –
500 mV
10
–
–
mA
IDD
Quiescent current
VSSA + 50 mV VOUT  VDDA –
500 mV
–
1
2.5
mA
Page 14 of 17
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Parameter
Description
Operational Amplifier (Opamp)
Conditions
Min
Typ
Max
Units
CMRR
Common mode rejection
ratio
80
–
–
dB
PSRR
Power supply rejection
ratio
75
–
–
dB
AC Characteristics
Parameter
Description
Conditions
Min
Typ
Max
Units
GBW
Gain-bandwidth product
200 pF load
3
–
–
MHz
SR
Slew Rate
200 pF load
3
–
–
V/µs
en
Input noise density
VDDA = 5 V, at 100 kHz
–
45
–
nV/sqrtHz
Document Number: 001-79127 Rev. *A
Page 15 of 17
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
Component Changes
This section lists the major changes in the component from the previous version.
Version
Description of Changes
1.80.a
Minor datasheet edit.
1.80
Added PSoC 5LP support.
Reason for Changes / Impact
Added all APIs with the
CYREENTRANT keyword when
they are included in the .cyre file.
Not all APIs are truly reentrant. Comments in the component API
source files indicate which functions are candidates.
Input offset voltage vs
Temperature graph updated in the
datasheet to include x and y axis
labels.
Labels needs to be added to the axes.
Minor datasheet edits.
Improve readability.
1.70.a
Added PSoC 5 DC and AC
characteristics
1.70
Removed Low Power mode DRC
error for PSoC 3 Production
This change is required to eliminate compiler warnings for
functions that are not reentrant used in a safe way: protected from
concurrent calls by flags or Critical Sections.
Low power mode is supported in PSoC 3 Production
Implemented DRC error to allow
Only High Power mode is supported in PSoC 5
only High Power mode for PSoC 5
Edited Opamp_SetPower() API to
allow only High Power mode for
PSoC 5
1.60
Debug window support added
New feature added
Added a GUI Configuration Editor
For easier use a GUI has been added to set the two parameters
from a drop down
Added characterization data to
datasheet
Minor datasheet edits and updates
1.50
Added Sleep/Wakeup and
Init/Enable APIs.
Page 16 of 17
To support low power modes, as well as to provide common
interfaces to separate control of initialization and enabling of most
components.
Document Number: 001-79127 Rev. *A
PSoC® Creator™ Component Datasheet
Operational Amplifier (Opamp)
© Cypress Semiconductor Corporation, 2012-2015. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the
use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to
be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its
products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress
products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
PSoC® is a registered trademark, and PSoC Creator™ and Programmable System-on-Chip™ are trademarks of Cypress Semiconductor Corp. All other trademarks or registered trademarks
referenced herein are property of the respective corporations.
Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and
foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create
derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in
conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as
specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein.
Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in lifesupport systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support systems application
implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
Document Number: 001-79127 Rev. *A
Page 17 of 17