PSoC® Creator™ Component Data Sheet Operational Amplifier (Opamp) 1.50 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 constructing 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. Non-Inverting – 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 non-inverting input. 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. PRELIMINARY Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600 Document Number: 001-60897 Rev. ** Revised July 26, 2010 Operational Amplifier (Opamp) PSoC® Creator™ Component Data Sheet Vout – Analog The output is directly connected to a pin. It is capable of driving 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 Pins component named Vout_1. Parameters and Setup Drag an Opamp component onto your design and double-click it to open the Configure dialog. Figure 1 Configure Opamp Dialog The Opamp has the following parameters: PRELIMINARY Page 2 of 13 Document Number: 001-60897 Rev. ** PSoC® Creator™ Component Data Sheet Operational Amplifier (Opamp) Mode This parameter allows you to select between two configurations: "Opamp" and "Follower". In Opamp 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. Opamp is the default configuration. Figure 2 Configuration Options 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 and Medium power modes, the output is a class AB stage, enabling direct drive of substantial 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 ES3 silicon. The LPOC mode is used for low-power transimpedance amplifiers (TIAs). This mode has the same drive capability as low power, but includes additional compensation for circuit topologies with higher than normal input capacitance as is often 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. Note The above description of LPOC mode is true for PSoC 3 ES3 silicon only. For PSoC 3 ES2 silicon, LPOC mode is not supported; High Power mode should be used instead. For PSoC 3 ES2 silicon, the High Power setting enables the 1.024 V Vref on the positive input. Any design with an Opamp that requires this Vref must include at least one Opamp that has this High Power mode setting. Placement Each Opamp is directly connected to specific GPIOs. PRELIMINARY Document Number: 001-60897 Rev. ** Page 3 of 13 Operational Amplifier (Opamp) PSoC® Creator™ Component Data Sheet Non-inverting 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 data sheet 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 utilizes 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. The following shows one example of how the Opamp may be connected using the Design-Wide Resources Pin Editor. Figure 3 Example placement PRELIMINARY Page 4 of 13 Document Number: 001-60897 Rev. ** PSoC® Creator™ Component Data Sheet Operational Amplifier (Opamp) Resources The Opamp component uses one Opamp resource 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. 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 void Opamp_Init(void) Initializes or restores default Opamp configuration. void Opamp_Enable(void) Enables the Opamp. void Opamp_Start(void) Turns on the Opamp and sets the power level to the value chosen during the parameter selection. void Opamp_Stop(void) Disable Opamp (power down) void Opamp_SetPower(uint8 power) Set the power level. void Opamp_Sleep(void) Stops and saves the user configuration. void Opamp_Wakeup(void) Restores and enables the user configuration. void Opamp_SaveConfig(void) Empty function. Provided for future usage. void Opamp_RestoreConfig(void) Empty function. Provided for future usage. 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. PRELIMINARY Document Number: 001-60897 Rev. ** Page 5 of 13 Operational Amplifier (Opamp) PSoC® Creator™ Component Data Sheet void Opamp_Init(void) Description: Initializes or restores default Opamp configuration. Parameters: None Return Value: None Side Effects: All registers will be reset to their initial values. This will reinitialize the component. void Opamp_Enable(void) Description: Enables the Opamp. Parameters: None Return Value: None Side Effects: None 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: Turn off the Opamp and enable its lowest power state. Parameters: None Return Value: None Side Effects: None PRELIMINARY Page 6 of 13 Document Number: 001-60897 Rev. ** PSoC® Creator™ Component Data Sheet Operational Amplifier (Opamp) void Opamp_SetPower(uint8 power) Description: Sets the power level. 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: Stops the component operation. Saves the configuration registers and the component enable state. Should be called just prior to entering sleep. Parameters: None Return Value: None Side Effects: None void Opamp_Wakeup(void) Description: Restores the component enable state and configuration registers. Should be called just after awaking from sleep. Parameters: None Return Value: None Side Effects: None void Opamp_SaveConfig(void) Description: Empty function. Provided for future usage. Parameters: None Return Value: None Side Effects: None PRELIMINARY Document Number: 001-60897 Rev. ** Page 7 of 13 Operational Amplifier (Opamp) PSoC® Creator™ Component Data Sheet void Opamp_RestoreConfig(void) Description: Empty function. Provided for future usage. Parameters: None Return Value: None Side Effects: None Sample Firmware Source Code The following is a C language example demonstrating the basic functionality of the Opamp component. This example assumes the component has been placed in a design with the default name "Opamp_1." Note If you rename your component you must also edit the example code as appropriate to match the component name you specify. #include <device.h> void main() { Opamp_1_Start(); } DC and AC Electrical Characteristics The following values are based on characterization data. Specifications are valid for -40° C ≤ TA ≤ 85° C and TJ ≤ 100° C except where noted. Unless otherwise specified in the tables below, all Typical values are for TA = 25° C, Vdda = 5.0 V, Power = High, output referenced to analog ground, Vssa. 5.0 V/3.3 V DC Electrical Characteristics Parameter Vos TCVos Description Input Offset Voltage Temp. coeff. input offset voltage, absolute value Conditions Min Typ Max Units Vdda=3.3 V, 25 C, P=LPOC na 0.5 2 mV Vdda=3.3 V, 25 C, P=Low na 0.5 2 mV Vdda=3.3 V, 25 C, P=Med na 0.5 2 mV Vdda=3.3 V, 25 C, P=High na 0.5 2 mV P=LPOC na tbc tbc uV/°C P=Low na tbc tbc uV/°C PRELIMINARY Page 8 of 13 Document Number: 001-60897 Rev. ** PSoC® Creator™ Component Data Sheet Parameter AVOL Description Open Loop Gain Operational Amplifier (Opamp) Conditions Min Typ Max Units P=Med na tbc tbc uV/°C P=High na tbc tbc uV/°C P=LPOC, Cload=15pF tbc tbc na dB P=Low, Cload=15pF tbc tbc na dB P=Med, Cload=15pF tbc tbc na dB P=High, Cload=15pF tbc tbc na dB tbc tbc Megohms na tbc tbc pF Vssa - Vdda mV Vssa + 50 - Vdda - 50 mV na tbd na ohms Rin Input resistance Positive gain, non-inverting input Cin Input capacitance Not including routing capacitance Vi Input voltage range Vo Output voltage range Rout Open loop output impedance Iout Output current Output voltage between Vssa +500 mV and Vdda -500 mV, and Vdda > 2.7 V 25 na na mA Iout Output current Output voltage between Vssa +500 mV and Vdda -500 mV, and Vdda > 1.7 V and Vdda < 2.7 V 16 na na mA IoutSCsrc Short circuit current, source IoutSCsink Short circuit current, sink Vout_range Output swing Gain = 1, Rload = 100k to Vdda/2 tbc tbc tbc Ge1 Gain accuracy, in unity gain buffer mode G=1, Vdda=5.0 V, P=High, Rload = 1 kohm tbc tbc tbc % CMRR Common mode rejection ratio Vincm=0.5 V to Vdda-0.5 V 70 - - dB PSRR Power supply rejection ratio Gain=1, measured as shift in offset voltage at DC tbc tbc Idda Operating current Vdda=1.71 V, P=Low na tbc tbc uA Vdda=5.0 V, P=High na tbc tbc uA Output load = 1 mA dB PRELIMINARY Document Number: 001-60897 Rev. ** Page 9 of 13 Operational Amplifier (Opamp) PSoC® Creator™ Component Data Sheet Figures Histogram offset voltage 100 parts, 4 per part Power=High X axis mV Y axis % in bins Voffset vs temperature, Vdda=5.0V Power=High X axis: temp -40 to 85 C Y axis Voffset 1 max 2 typ 3 min Voffset vs VCM at Temperature, Power=High X axis: temp -40 to 85 C Y axis V common morde 1 -40C 2 25C 3 85C Operating current vs voltage, P=LPOC X axis Vdda, 1.7, 2.7, 3.3, 5.0 Y axis Op current uA 1 max at worst temp 2 typ at 25C Operating current vs voltage, P=Low X axis Vdda, 1.7, 2.7, 3.3, 5.0 Y axis Op current uA 1 max at worst temp 2 typ at 25C Operating current vs voltage, P=Med X axis Vdda, 1.7, 2.7, 3.3, 5.0 Y axis Op current uA 1 max at worst temp 2 typ at 25C Operating current vs voltage, P=High X axis Vdda, 1.7, 2.7, 3.3, 5.0 Y axis Op current uA 1 max at worst temp 2 typ at 25C Operating current vs temp, P=LPOC X axis Temp, -40 to +85C Y axis op current uA 1 Typ at 2.7V 2 Max at 2.7V 3 Typ at 5.5V 4 Max at 5.5V Operating current vs temp, P=Low X axis Temp, -40 to +85C Y axis op current uA 1 Typ at 2.7V 2 Max at 2.7V 3 Typ at 5.5V 4 Max at 5.5V Operating current vs temp, P=Med X axis Temp, -40 to +85C Y axis op current uA 1 Typ at 2.7V 2 Max at 2.7V 3 Typ at 5.5V 4 Max at 5.5V Operating current vs temp, P=High X axis Temp, -40 to +85C Y axis op current uA 1 Typ at 2.7V 2 Max at 2.7V 3 Typ at 5.5V 4 Max at 5.5V Output voltage vs load current, Vdda=2.7V, P=LPOC X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 Output voltage vs load current, Vdda=2.7V, P=Low X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 PRELIMINARY Page 10 of 13 Document Number: 001-60897 Rev. ** PSoC® Creator™ Component Data Sheet Operational Amplifier (Opamp) Output voltage vs load current, Vdda=2.7V, P=Med X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 Output voltage vs load current, Vdda=2.7V, P=High X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 Output voltage vs load current, Vdda=5.0V, P=LPOC X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 Output voltage vs load current, Vdda=5.0V, P=Low X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 Output voltage vs load current, Vdda=5.0V, P=Med X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 Output voltage vs load current, Vdda=5.0V, P=High X axis output current uA Y axis output voltage 1 Vdda-Voh at -40 2 Vdda-Voh at 25 3 Vdda-Voh at 85 4 Vol at -40 5 Vol at 25 6 Vol at 85 5.0 V/3.3 V AC Electrical Characteristics Parameter Description Conditions Min Typ Max Units GBW_L Gain Bandwidth Product, P=Low Gain=1, Vdda=2.7 V, 25 C tbc tbc na MHz GBW_M Gain Bandwidth Product, P=Med Gain=1, Vdda=5.0 V, 25 C tbc tbc na MHz GBW_H Gain Bandwidth Product, P=High Gain=1, Vdda=5.0 V, 25 C tbc tbc na MHz SR_PLPOC Slew rate, 2 V step P=LPOC, Cload=15pF, Rload=100k tbc tbc na V/us SR_PLow P=Low, Cload=15pF, Rload=100k tbc tbc na V/us SR_PMed P=Med, Cload=15pF, Rload=100k tbc tbc na V/us SR_PHigh P=High, Cload=15pF, Rload=100k tbc tbc na V/us SR_PHigh200 P=High, Cload=200pF, Rload=2k tbc tbc na V/us PRELIMINARY Document Number: 001-60897 Rev. ** Page 11 of 13 Operational Amplifier (Opamp) PSoC® Creator™ Component Data Sheet Tsettle_PLPOC Settling time to 0.1% 1.0V step, CLoad= 15pF Vdda= 5.0 V, G=1, P=LPOC na tbc tbc nsec Tsettle_PLow 1.0V step, CLoad= 15pF Vdda= 5.0 V, G=1, P=Low na tbc tbc nsec Tsettle_PMed 1.0V step, CLoad= 15pF Vdda= 5.0 V, G=1, P=Med na tbc tbc nsec Tsettle_PHigh 1.0V step, CLoad= 200pF Vdda= 5.0 V, G=1, P=High na tbc tbc nsec f=10 kHz, P=TIA na tbc na nV/rtHz Vn_Plow f=10 kHz, P=Low na tbc na nV/rtHz Vn_Pmed f=10 kHz, P=Med na tbc na nV/rtHz Vn_Phigh f=10 kHz, P=High na tbc na nV/rtHz At unity gain, CLoad= 15pF, P=Low tbc tbc na deg At unity gain, CLoad= 200pF, P=High tbc tbc na deg Vn_PLPOC ΦM ΦM Input referred voltage noise Phase Margin Figures Open Loop Frequency Response, 3.3V, CL=15pF, P=LPOC X axis 10 kHz to 10 MHz Y1(left) axis Gain, dB Y2(right)axis Phase, degrees 1 Gain, T=-40 2 Gain, T=25 3 Gain, T=85 4 Phase, T=-40 5 Phase, T=25 6 Phase, T=85 Open Loop Frequency Response, 3.3V, CL=15pF, P=Low X axis 10 kHz to 10 MHz Y1(left) axis Gain, dB Y2(right)axis Phase, degrees 1 Gain, T=-40 2 Gain, T=25 3 Gain, T=85 4 Phase, T=-40 5 Phase, T=25 6 Phase, T=85 Open Loop Frequency Response, 3.3V, CL=15pF, P=Med X axis 10 kHz to 10 MHz Y1(left) axis Gain, dB Y2(right)axis Phase, degrees 1 Gain, T=-40 2 Gain, T=25 3 Gain, T=85 4 Phase, T=-40 5 Phase, T=25 6 Phase, T=85 Open Loop Frequency Response, 3.3V, CL=15pF, P=High X axis 10 kHz to 10 MHz Y1(left) axis Gain, dB Y2(right)axis Phase, degrees 1 Gain, T=-40 2 Gain, T=25 3 Gain, T=85 4 Phase, T=-40 5 Phase, T=25 6 Phase, T=85 PRELIMINARY Page 12 of 13 Document Number: 001-60897 Rev. ** PSoC® Creator™ Component Data Sheet Operational Amplifier (Opamp) Closed Loop Gain vs freq, Gain=1, 3.3V, T=25C X axis 10 kHz to 10 MHz Y axis Gain, dB 1 P=Low, CL=15pF 2 P=Med, CL=15pF 3 P=High, CL=200pF 4 P=High CL=15pF Closed Loop Gain vs freq, Gain=10, 3.3V, T-25C X axis 10 kHz to 10 MHz Y axis Gain, dB 1 P=Low, CL=15pF 2 P=Med, CL=15pF 3 P=High, CL=200pF 4 P=High CL=15pF Large Signal Step Response, 2V step, G=1, CL=15pF, RL=100k, Vdda=5V, P=low X axis 1 usec/div10 kHz to 10 MHz Y axis 500 mV/div Large Signal Step Response, 2V step, G=1, CL=15pF, RL=100k, Vdda=5V, P=med X axis 1 usec/div10 kHz to 10 MHz Y axis 500 mV/div Large Signal Step Response, 2V step, G=1, CL=15pF, RL=100k, Vdda=5V, P=high X axis 1 usec/div10 kHz to 10 MHz Y axis 500 mV/div CMRR vs freq, Vdda = 5.0V, P=high X axis freq 100 Hz to 1.0 MHz Y axis dB PSRR vs freq, Vdda = 5.0V, P=high X axis freq 100 Hz to 1.0 MHz Y axis dB Voltage noise, Vdda = 5.0V, P=high Xaxis freq kHz .01 to 1000 kHz Yaxis voltage noise nV/rtHz Note More specifications at other voltages and graphs may be added after characterization. Component Changes This section lists the major changes in the component from the previous version. Version 1.50 Description of Changes Added Sleep/Wakeup and Init/Enable APIs. Reason for Changes / Impact To support low power modes, as well as to provide common interfaces to separate control of initialization and enabling of most components. © Cypress Semiconductor Corporation, 2009-2010. 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. PRELIMINARY Document Number: 001-60897 Rev. ** Page 13 of 13