[RS_FF_FB] RS flip-flop (Function block), reset dominant

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

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

Functioning

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

Inputs

Outputs

R

S

Q

QN (inverted)

1

0

0

1

0

1

1

0

1

1

0

1

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