Datasheet
PSoC Designer IDE Guide, Document # 001-42655 Rev *B 67
System-Level Editor
StateMachine – The new output state is based upon the current state and the result of evaluating
all transition expressions associated with the current state.
StatusEncoder – The output value depends upon all input conditions that evaluate true. The
conditions are evaluated from top to bottom in order.
TableLookup – The output value is defined by the combinations of inputs states. Not all combi-
nations need to set the output.
LiteralCode – The output value is defined by the result of your function, written in a subset of the
C language.
Refer to Transfer Functions below for more information about these functions.
3.6 Transfer Functions
The term Transfer Function refers to the behavioral definition of output drivers and valuators.
3.6.1 Transfer Function Types
PSoC Designer contains these types of transfer functions:
LoopDelay
SetPointRegion
StateMachine
PriorityEncoder
StatusEncoder
TableLookup
LiteralCode
3.6.1.1 LoopDelay
A LoopDelay provides a way to compare current data to previous data. For example, a loop delay is
used during temperature measurement to measure temperature variation and adjust PWM fan
speed accordingly.
3.6.1.2 SetPointRegion
Set points convert a range of input values into a set number of regions. When a new setpoint thresh-
old is added, it divides the region in which it lies into two regions. Set points are useful in converting
a continuous range of values into a set number of discrete regions.
Hysteresis, also known as deadband, is used to provide a region where a change in the input does
not produce a change in the output. Hysteresis is useful for reducing rapid short-term reversals in a
control state due to sensor characteristics or noise. The default Hysteresis value is 0.
3.6.1.3 StateMachine
A StateMachine is a behavior model composed of states and transitions. A state stores information
about the past (i.e., it reflects the input changes from the system start to the present moment). A
transition is a state change governed by a user-defined rule that must be satisfied to execute the
change.
StateMachine valuator outputs two values: its state and the occurrence of a transition between
states. Output drivers and other valuators use the StateMachine output to govern their activities. The
StateMachine is useful for setting different operation modes for the application or for managing com-
plex processes.