[SR_FF_FB] SR flip-flop (Function block), set dominant

Function block SR_FF_FB is used to reset or set a bit of a specific operand based on inputs [S] and [R].

SR_FF_FB is used to reset or set a bit of a specific operand based on inputs [S] and [R]. The current signal state of the operand is transferred to output [Q] where it can be queried.

Functioning

Input [S] has higher priority than input [R]. Thus, at [S] = 1, the signal state of [Q] is always set to 1 regardless of [R]. If [S] = 0 and [R] = 1, then [Q] is set to 0. If [S] and [R] = 0, the command is not run and the operand not changed.

Inputs

Outputs

S

R

Q

QN (inverted)

1

0

1

0

0

1

0

1

1

1

1

0

0

0

Last state (no change)

Last state (no change)

Pins

Input

Description

Data type

Default value
Value range

S

Set

Boolean

0

0 - No
1 - Yes

R

Reset

Boolean

0

0 - No
1 - Yes

 

Output

Description

Data type

Default value
Value range

Q

Output

Boolean

0

0 - No
1 - Yes

QN

Inverse output

Boolean

1

0 - No
1 - Yes