Component - Voltage Comparator PSoC 4 V1.10 Datasheet.pdf

PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
1.10
Features
 Low input offset
 User controlled offset calibration
 Multiple speed modes
 Operates in Deep Sleep power mode
 Output routable to digital logic blocks or pins
 Selectable output polarity
 Multiple interrupt modes
General Description
The PSoC 4 Voltage Comparator (aka Comparator) Component gives a hardware solution to
compare two analog input voltages. The output is sampled in the software or routed to a digital
component. There are three speed levels to allow optimizing for speed or power consumption. A
reference or external voltage can also be connected to either input.
The input offset is designed to be less than 1 mV over the temperature and voltage. The
hysteresis is selectable between 10 mV and no hysteresis.
For all devices, except PSoC 4100/PSoC 4200, the Comparator can operate in Deep Sleep
power mode.
When to Use Comparator
The Comparator gives you a fast comparison between two voltages, compared to using an ADC.
Although you can use an ADC with software to compare multiple voltage levels, applications
requiring a fast response or little software intervention are good candidates for this comparator.
Some example applications include CapSense®, power supplies or simple translation from an
analog level to a digital signal.
A common configuration is to create an adjustable comparator by connecting a voltage DAC to
the negative input terminal.
Cypress Semiconductor Corporation
Document Number: 001-93887 Rev. *D
•
198 Champion Court
•
San Jose, CA 95134-1709 • 408-943-2600
Revised December 17, 2015
PSoC 4 Voltage Comparator (Comp)
PSoC® Creator™ Component Datasheet
Input/Output Connections
This section describes various input and output connections for the Comparator.
Positive Input–Analog Input
This input is usually connected to the voltage that is being compared. This input can be routed
from a GPIO or from an internal source.
Negative Input– Analog Input
This input is usually connected to the reference voltage. This input can be routed from a GPIO or
from an internal source.
Comparator Out–output
This is the digital comparison output. For a non-inverting configuration, this output goes high
when the positive input voltage is greater than the negative input voltage. If the polarity is set to
inverting, the output goes high when the negative input voltage is greater than the positive input
voltage. The inverting configuration is implemented using an inverter in the UDB blocks and
therefore requires a device that has UDB resources. The output can be routed to other
component digital inputs such as interrupts, timers, etc.
The symbol for this component is annotated to denote the selection of hysteresis or inversion of
the output.
Page 2 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
Component Parameters
Drag the Comparator onto your design and double-click it to open the Configure dialog.
The component has the following parameters.
Document Number: 001-93887 Rev. *D
Page 3 of 20
PSoC 4 Voltage Comparator (Comp)
PSoC® Creator™ Component Datasheet
Hysteresis
This parameter gives you the ability to add approximately 10 mV of hysteresis to the
Comparator. This helps to ensure that slowly moving voltages or slightly noisy voltages do not
cause the output to oscillate when the two input voltages are nearly equal.
Hysteresis Enabled
Hysteresis Disabled
Polarity
This parameter allows inverting the output. This is useful for peripherals that require an inverted
signal from the Comparator. The sampled signal state returned by the software API and the
output seen by the power manager (see the System Reference Guide section on Alt Active and
Sleep) is not affected by this parameter.
Note Inversion logic for the comparator is implemented using UDB resources. This option is not
available when Deep Sleep mode is enabled.
Deep sleep operation
This parameter is not available for PSoC 4100/PSoC 4200 devices. It enables component
operation in Deep Sleep mode. If this option is enabled, a "DSOp" label displays under the
symbol.
Note When Deep Sleep mode is enabled and the component supply voltage is lower than 2.7
volts, only the "Slow/Low" Speed/Power setting is valid. The High and Medium settings may
result in output oscillation.
Page 4 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
Speed/Power
This parameter provides a way to optimize speed versus power consumption. The Speed/Power
parameter allows selecting the next level: Fast Speed/High Power, Medium Speed/Medium
Power, and Slow Speed/Low Power.
Interrupt output mode
This parameter defines the event that will cause a pulse to be generated on the comparator
interrupt output. You can select the interrupt mode: Disable edge detect, Rising edge, Falling
edge, or Both edges.
Interrupt output enable
This parameter allows you to configure the Interrupt Mask for PSoC 4 devices, except PSoC
4100/PSoC 4200 devices.
Note The pulse on the comparator interrupt output will be generated only if the Interrupt output
enable option is enabled. Also the Comp_SetInterruptMask() API or
Comp_EnableInterruptOutput() API can be used for this purpose.
Application Programming Interface
The Application Programming Interface (API) routines allow configuring the component using
software. This table lists and describes the interface to each function. The following sections
cover each function in more detail.
By default, PSoC Creator assigns the instance name "Comp_1" to the first instance of a
component in a given design. It can be renamed 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
"Comp"
General Functions
Function
Description
Comp_Start()
Performs all of the required initialization for the component and enables power to the
block.
Comp_Stop()
Turns off the Comparator block.
Comp_Init()
Initializes or restores the component according to the customizer Configure dialog
settings.
Comp_Enable()
Activates the hardware and begins component operation.
Comp_GetCompare()
Returns compare result.
Comp_SetSpeed()
Sets the power and speed to one of three settings: SLOW_SPEED, MED_SPEED,
HIGH_SPEED.
Document Number: 001-93887 Rev. *D
Page 5 of 20
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
Function
Description
Comp_ZeroCal()
Performs custom calibration of the input offset to minimize error for a specific set of
conditions.
Comp_LoadTrim()
This function writes a value into the comparator trim register.
Interrupt Output Functions
Function
Description
Comp_SetInterruptMode()
Sets the interrupt edge detect mode.
Comp_EnableInterruptOutput()
Enables the output of the current comparator instance.
Comp_DisableInterruptOutput()
Disables the interrupt output for current comparator instance.
Comp_GetInterruptOutputStatus()
Get Interrupt status of current instance
Comp_ClearInterruptOutput()
Clears interrupt pending
Comp_SetInterruptOutput()
Sets the interrupt output.
Comp_GetInterruptSource()
Returns the status of all pending comparator interrupts
Comp_ClearInterrupt()
Clears the interrupt of all comparator interrupts with a mask
Comp_SetInterrupt()
Sets a software interrupt request for all comparators with mask.
Comp_SetInterruptMask()
Set interrupt mask for all comparators
Comp_GetInterruptMask()
Returns interrupt mask.
Comp_GetInterruptSourceMasked()
Returns interrupt request register masked by interrupt mask.
Low Power Functions
Function
Description
Comp_Sleep()
This is the preferred API to prepare the component for sleep.
Comp_Wakeup()
This is the preferred API to restore the component to the state when Comp_Sleep() was
called.
Page 6 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
void Comp_Start(void)
Description:
Performs all of the required initialization for the component and enables power to the
block. The first time the routine is executed, the speed/power level, and hysteresis are set.
When called to restart the comparator following a Stop() call, the current component
parameter settings are retained.
Parameters:
None
Return Value:
None
Side Effects:
None
void Comp_Stop(void)
Description:
Turn off the Comparator block.
Parameters:
None
Return Value:
None
Side Effects:
Does not affect Comparator modes or power settings
void Comp_Init(void)
Description:
Initializes or restores the component according to the customizer Configure dialog settings.
It is not necessary to call Init() because the Start() API calls this function and is the
preferred method to begin the component operation.
Parameters:
None
Return Value:
None
Side Effects:
All registers will be set to values according to the customizer Configure dialog.
void Comp_Enable(void)
Description:
Activates the hardware and begins the component operation. It is not necessary to call
Enable() because the Start() API calls this function, which is the preferred method to begin
the component operation.
Parameters:
None
Return Value:
None
Side Effects:
None
Document Number: 001-93887 Rev. *D
Page 7 of 20
PSoC 4 Voltage Comparator (Comp)
PSoC® Creator™ Component Datasheet
uint32 Comp_GetCompare(void)
Description:
This function returns a nonzero value when the voltage connected to the positive input is
greater than the negative input voltage. This value is not affected by the Polarity
parameter. This value always reflects non-inverted state configuration.
This function reads the direct (unflopped) comparator output which can also be metastable
(since it may result in incorrect data).
Parameters:
None
Return Value:
The comparator output state. Nonzero value when the positive input voltage is greater than
the negative input voltage; otherwise, the return value is zero.
Side Effects:
None
void Comp_SetSpeed(uint32 speed)
Description:
Sets the speed to one of three settings; slow, medium, or fast.
Parameters:
(uint32) speed: Comp_SLOW_SPEED, Comp_MED_SPEED, Comp_HIGH_SPEED
Return Value:
None
Side Effects:
None
uint32 Comp_ZeroCal(void)
Description:
Performs custom calibration of the input offset to minimize error for a specific set of
conditions: the comparator reference voltage, supply voltage, and operating temperature. A
reference voltage in the range at which the comparator will be used must be applied to the
Negative and Positive inputs of the comparator while the offset calibration is performed.
This can be done external to the device or by using an internal analog mux on the positive
input that selects between the positive input signal for normal operation and the negative
input signal for calibration.
Parameters:
None
Return Value:
(uint32) the value from the comparator trim register after the offset calibration is complete.
This value has the same format as the input parameter for the LoadTrim() API routine.
Side Effects:
During the calibration procedure, the comparator output may behave erratically. The
comparator output should be ignored during calibration.
void Comp_LoadTrim(uint32 trimVal)
Description:
This function writes a value into the comparator offset trim register.
Parameters:
uint32 trimVal: the value to be stored in the comparator offset trim register. This value
has the same format as the parameter returned by the ZeroCal() routine.
Return Value:
None
Side Effects:
None
Page 8 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
void Comp_SetInterruptMode(uint32 mode)
Description:
Sets the interrupt edge detect mode.
Parameters:
mode: Enumerated edge detect mode value. See table below.
Name
Description
Comp_INTR_DISABLE
Disable edge detect
Comp_INTR_RISING
Rising edge detect
Comp_INTR_FALLING
Falling edge detect
Comp_INTR_BOTH
Detect both edges
Return Value:
None
Side Effects:
None
void Comp_EnableInterruptOutput (void)
Description:
Enables the interrupt output so that it will be ORed to the global Signal CTBmInt with the
other comparator interrupt outputs. CTBmInt is available from the Global Signal
component.
Parameters:
None
Return Value:
None
Side Effects:
None
void Comp_DisableInterruptOutput (void)
Description:
Disables the interrupt output so that it will not be ORed to the global Signal CTBmInt with
the other comparator interrupt outputs.
Parameters:
None
Return Value:
None
Side Effects:
None
uint32 Comp_GetInterruptOutputStatus (void)
Description:
Returns the status of the comparators interrupt output.
Parameters:
None
Return Value:
0 = Interrupt not active, 1 = Interrupt active
Side Effects:
None
Document Number: 001-93887 Rev. *D
Page 9 of 20
PSoC 4 Voltage Comparator (Comp)
PSoC® Creator™ Component Datasheet
void Comp_ClearInterruptOutput (void)
Description:
Clears the interrupt request. This function is used with the combined interrupt signal from
the global signal reference.
Parameters:
None
Return Value:
None
Side Effects:
None
void Comp_SetInterruptOutput (void)
Description:
Sets a software interrupt request. This function is used with the combined interrupt signal
from the global signal reference.
Parameters:
None
Return Value:
None
Side Effects:
None
uint32 Comp_GetInterruptSource(void)
Description:
Gets the interrupt requests. This function is used with the combined interrupt signal from
the global signal reference. This function from either component instance can be used to
determine the interrupt source for all the comparator interrupts combined in CTBm block.
Parameters:
None
Return Value:
Interrupt source. Each component instance has a mask value: Comp_INTR.
Side Effects:
None
void Comp_ClearInterrupt(uint32 interruptMask)
Description:
Clears the interrupt request. This function is used with the combined interrupt signal from
the global signal reference. This function can be used to clear either or both interrupts in
CTBm block.
Parameters:
interruptMask: Mask of interrupts to clear. Each component instance has a mask value:
Comp_INTR.
Return Value:
None
Side Effects:
None
Page 10 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
void Comp_SetInterrupt(uint32 interruptMask)
Description:
Sets a software interrupt request. This function is used with the combined interrupt signal
from the global signal reference. This function can be used to trigger either or both
software interrupts in CTBm block.
Parameters:
interruptMask: Mask of interrupts to set. Each component instance has a mask value:
Comp_INTR.
Return Value:
None
Side Effects:
None
void Comp_SetInterruptMask (uint32 interruptMask)
Description:
Configures the interrupt mask for all comparators in CTBm block.
Parameters:
interruptMask: bit-mask of interrupt sources to be enabled. Each component instance has
a mask value: Comp_INTR_MASK.
Return Value:
None
Side Effects:
None
uint32 Comp_GetInterruptMask (void)
Description:
Returns interrupt mask for all comparators in CTBm block.
Parameters:
None
Return Value:
Mask of enabled interrupt source. Each component instance has a mask value:
Comp_INTR_MASK.
Side Effects:
None
uint32 Comp_GetInterruptSourceMasked (void)
Description:
Returns interrupt request register masked by interrupt mask for all comparators in CTBm
block.
Returns the result of bitwise AND operation between corresponding interrupt request and
mask bits.
Parameters:
None
Return Value:
Mask of enabled interrupt source. Each component instance has a mask value:
Comp_INTR_MASKED.
Side Effects:
None
Document Number: 001-93887 Rev. *D
Page 11 of 20
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
void Comp_Sleep(void)
Description:
This is the preferred API to prepare the component for sleep. The Sleep() API saves the
current component state. Call the Comp_Sleep() function before calling the
CySysPmDeepSleep() or the CySysPmHibernate() functions. The "Deep sleep operation"
option has an influence on this function implementation.
Parameters:
None
Return Value:
None
Side Effects:
None
void Comp_Wakeup(void)
Description:
This is the preferred API to restore the component to the state when Sleep() was called.
The Wakeup() function will also re-enable the component. The "Deep sleep operation"
option has an influence on this function implementation.
Parameters:
None
Return Value:
None
Side Effects:
None
Global Variables
Function
Description
Comp_initVar()
Indicates whether or not the Comparator has been initialized. The variable is initialized to 0 and
set to 1 the first time Comp_Start() is called. This allows the component to restart without
reinitialization after the first call to the Comp_Start() routine.
If reinitialization of the component is required, call Comp_Init() before calling Comp_Start().
Alternatively, the Comparator can be reinitialized by calling the Comp_Init() and
Comp_Enable() functions
Sample Firmware Source Code
PSoC Creator provides numerous 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.
Page 12 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
MISRA Compliance
This section describes the MISRA-C:2004 compliance and deviations for the component. There
are two types of deviations defined:


project deviations – deviations that are applicable for all PSoC Creator components
specific deviations – deviations that are applicable only for this component
This section provides information on component-specific deviations. Project deviations are
described in the MISRA Compliance section of the System Reference Guide along with
information on the MISRA compliance verification environment.
The Comparator component has the following specific deviations:
Rule
19.7
Rule Class
Advisory
Rule Description
Description of Deviation(s)
A function should be used in preference
to a function-like macro.
Deviated since function-like macros are
used to allow more efficient code.
API Memory Usage
The component memory usage varies significantly, depending on the compiler, device, number
of APIs used and component configuration. This table shows the memory usage for all APIs
available in a given component configuration.
The measurements were 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 4 (GCC)
Configuration
PSoC 4100/PSoC 4200
Other PSoC 4 Devices (GCC)
Flash Bytes
SRAM Bytes
Flash Bytes
SRAM Bytes
Default (Deep sleep operation is disabled)
476
9
484
9
Deep sleep operation is enabled
N/A
N/A
432
8
Document Number: 001-93887 Rev. *D
Page 13 of 20
PSoC 4 Voltage Comparator (Comp)
PSoC® Creator™ Component Datasheet
Functional Description
The PSoC 4 Comparator component uses the opamp in the CTBm configured as a comparator.
The CTBm supports 3 power choices that can be used to balance the response rate of the
comparator with the power usage.
Block Diagram and Configuration
The following figure shows a high-level block diagram.
Individual comparator interrupt outputs are ORed together as a single asynchronous interrupt
source before sent out and used to wake up the system in low power mode. The individual
comparator interrupt is masked by INTR_MASK. The masked result is captured in
INTR_MASKED register. Writing 1 to INTR register bit will clear the interrupt. Refer to the
appropriate device Technical Reference Manual (TRM) for a detailed description of the registers.
Interrupt Service Routine
The Comparator component supports interrupts on the various events, depending on Interrupt
output mode settings: Rising edge, Falling edge or Both edges. The interrupt signal goes high
when any of the enabled interrupt configurations are true.
Note Interrupt is not cleared automatically. It is the user's responsibility to do that. The interrupt
is cleared by writing a '1' in the corresponding interrupt register bit position. The preferred way to
clear interrupt sources is using the Comp_ClearInterrupt(Comp_INTR) or
Comp_ClearInterruptOutput() API.
Page 14 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
Example Schematic
The following code is suggested:
CY_ISR(Comp_Interrupt)
{
if (Comp_1_GetInterruptSourceMasked() & Comp_1_INTR_MASKED)
{
/* Interrupt is not cleared automatically.
It is user responsibility to do that.
*/
Comp_1_ClearInterrupt(Comp_1_INTR); /* or Comp_1_ClearInterruptOutput() */
/* Add user interrupt code to manage interrupt. */
}
/* This is alternative to (Comp_2_GetInterruptSourceMasked() &
Comp_2_INTR_MASKED) */
if (Comp_2_GetInterruptOutputStatus())
{
/* Interrupt is not cleared automatically.
It is user responsibility to do that.
*/
Comp_2_ClearInterrupt(Comp_2_INTR); /* or Comp_2_ClearInterruptOutput() */
/* Add user interrupt code to manage interrupt.
*/
}
}
void main()
{
Comp_1_Start();
Comp_2_Start();
isr_StartEx(Comp_Interrupt);
CyGlobalIntEnable; /* Enable global interrupts. */
for(;;)
{
/* Place your application code here. */
}
}
Document Number: 001-93887 Rev. *D
Page 15 of 20
PSoC 4 Voltage Comparator (Comp)
PSoC® Creator™ Component Datasheet
Operation in Low Power Mode
In PSoC 4 (except PSoC 4100/PSoC 4200) the component can be used along with the Global
Signal component as a wakeup source from Deep Sleep mode as described below.
Create schematic as described in previous section. The option “Combined CTBm interrupt
(CTBmInt)” should be selected as a source for an interrupt in the Global Signal Reference
component. This component triggers the output each time any of the enabled comparators
generates an interrupt.
For Deep sleep mode, the Comparator component input pins must be assigned to dedicated
device pins only. Refer to the device datasheet for the part being used for the specific physical
pin connections.
The wakeup event is when the voltage connected to the positive input (Pin_1) is greater than the
negative input voltage (Pin_2).
Example Schematic
The following code is suggested:
CY_ISR(Comp_Interrupt)
{
/* Interrupt is not cleared automatically.
It is user responsibility to do that.
*/
Comp_ClearInterrupt(Comp_INTR); /* or Comp_ClearInterruptOutput() */
/* Add user interrupt code to manage interrupt.
*/
}
void main()
{
Comp_Start();
isr_StartEx(Comp_Interrupt);
CyGlobalIntEnable;
/* Enable global interrupts. */
Comp_SetInterruptMode(Comp_INTR_RISING);
Comp_SetInterruptMask(Comp_INTR_MASK); /* or Comp_EnableInterruptOutput() */
Page 16 of 20
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
for(;;)
{
/* Place your application code here. */
CySysPmDeepSleep(); /* Enter Deep Sleep mode*/
/* Place your application code here. */
}
}
Placement
Each Comparator is directly connected to specific GPIOs for its inputs along with being
connected to the internal fabric. The output connection is routed to the digital fabric. Refer to the
device datasheet for the part being used for specific physical pin connections.
Registers
See the chip Technical Reference Manual (TRM) for more information about registers.
Component Debug Window
PSoC Creator allows viewing debug information about the components in the design. Each
component window lists the memory and registers for the instance. For detailed hardware
registers descriptions, refer to the appropriate device technical reference manual. For detailed
UDB registers descriptions used in the component, refer to the Registers section of this
datasheet.
To open the Component Debug window:
1. Make sure the debugger is running or in break mode.
2. Choose Windows > Components… from the Debug menu.
3. In the Component Window Selector dialog, select the component instances to view and
click OK.
The selected Component Debug window(s) will open within the debugger framework. Refer to
the "Component Debug Window" topic in the PSoC Creator Help for more information.
Resources
The Comparator uses one of the two opamps in PSoC 4 CTBm block (Continuous Time Block
mini). The number of available CTBm blocks depends on used device. Refer to the device
datasheet for details. If the inverting output option is chosen a single macrocell in the UDB array
is also used.
Document Number: 001-93887 Rev. *D
Page 17 of 20
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
DC and AC Electrical Characteristics
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.
Note The data for the PSoC 4200L device is preliminary. Final data will be delivered in an
upcoming Component Pack.
DC Specifications
Parameter
Description
Conditions
Min
Typ
Max
Units
IDD
Opamp Block current. No load.
–
–
–
–
IDD_HI
Power = high
–
1000
1300
µA
IDD_HI
Power = high
–
1100
1850
µA
IDD_MED
Power = medium
–
320
500
µA
IDD_MED
Power = medium
–
550
950
µA
IDD_LOW
Power = low
–
250
350
µA
IDD_LOW
Power = low
–
150
350
µA
VIN
Charge pump on, VDDA  2.7 V
–0.05
–
VDDA – 0.2
V
VCM
Charge pump on, VDDA  2.7 V
–0.05
–
VDDA – 0.2
V
VOS_TR
Offset voltage, trimmed
High mode
1
±0.5
1
mV
VOS_TR
Offset voltage, trimmed
Medium mode
–
±1
–
mV
VOS_TR
Offset voltage, trimmed
Low mode
–
±2
–
mV
VOS_DR_TR
Offset voltage drift, trimmed
High mode
–10
±3
10
µV/C
VOS_DR_TR
Offset voltage drift, trimmed
Medium mode
–
±10
–
µV/C
VOS_DR_TR
Offset voltage drift, trimmed
Low mode
–
±10
–
µV/C
CMRR
DC
VDDD = 3.6 V
70
80
–
dB
CMRR
DC for PSoC 4200 BLE family
VDDD = 3.6 V,
High-Power
Mode
65
70
–
dB
CMRR
DC Common mode rejection ratio.
High Power mode. Common Model
Voltage Range from 0.5V to VDDA
- 0.5V.
PSoC 4100M /
PSoC 4200M /
PSoC 4200L,
VDDD = 3.6 V
60
70
–
dB
Vhyst_op
Hysteresis
–
10
–
mV
Page 18 of 20
PSoC 4100M /
PSoC 4200M /
PSoC 4200L
PSoC 4100M /
PSoC 4200M /
PSoC 4200L
PSoC 4100M /
PSoC 4200M /
PSoC 4200L
Document Number: 001-93887 Rev. *D
PSoC® Creator™ Component Datasheet
PSoC 4 Voltage Comparator (Comp)
AC Specifications
Parameter
Description
Conditions
Min
Typ
Max
Units
Comp_mode
Comparator mode; 50 mV drive,
Trise = Tfall (approx.)
–
–
–
–
TPD1
Response time; power = high
–
150
–
nsec
TPD2
Response time; power = medium
–
400
–
nsec
TPD3
Response time; power = low
–
1000
–
nsec
TPD3
Response time; power = low
–
2000
–
nsec
T_op_wake
From disable to enable, no external
RC dominating
–
300
–
µSec
T_op_wake
From disable to enable, no external
RC dominating
–
25
–
µSec
PSoC 4100M /
PSoC 4200M /
PSoC 4200L
PSoC 4100M /
PSoC 4200M /
PSoC 4200L
Component Changes
This section lists the major changes in the component from the previous version.
Version
Description of Changes
Reason for Changes / Impact
1.10.d
Edit to datasheet.
Updated information to include PSoC 4200L devices.
1.10.c
Edit to datasheet.
Updated information to include PSoC 4100M/
PSoC 4200M devices.
Updated DC and AC Electrical Characteristics section
with PSoC 4100M/PSoC 4200M data.
1.10.b
Edit to datasheet.
Added CMRR char data for PSoC 4200 BLE devices.
1.10.a
Edits to datasheet.
Updates to clarify text and conform to template.
1.10
Added functions to enable and control
interrupts.
Provide similar functionality as PSoC 4 Low Power
Comparator.
Added “Deep sleep operation” parameter on
General Tab for control component availability
in Deep Sleep mode.
Updates to support PSoC 4200 BLE devices.
Updated API Memory usage and MISRA
compliance sections.
Removed mention about SaveConfig() and
RestoreConfig() APIs because they are empty.
1.0
New Component
Document Number: 001-93887 Rev. *D
Page 19 of 20
PSoC 4 Voltage Comparator (Comp)
PSoC® Creator™ Component Datasheet
© Cypress Semiconductor Corporation, 2014-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.
Page 20 of 20
Document Number: 001-93887 Rev. *D
Similar pages