Thread Content
I just started working in this field, and after looking at it for a while I was a bit confused. Simply put, if R is active then it resets to 0, if S is active then it sets to 1; if neither R nor S is active then the value remains unchanged. What happens when both are active? The status isn’t clear Is my understanding correct?
Flip-flops are divided into: RS set-priority type and SR reset-priority type. RS (set-priority RS bistable flip-flop): If the signal state at the R input is “1” and the signal state at the S input is “0”, then RS is reset; if the signal state at the R input is “0” and the signal state at the S input is “1”, then RS is set. If both input triggers are “1”, the execution order of the instructions is of the utmost importance. RS first executes the reset command at the specified < address>, and then executes the set command so that that address remains in a set state during the remainder of the program scanning process. The S (set) and R (reset) commands are executed only when RLO is “1”. These instructions are not affected by RLO “0”; the addresses specified in the instructions remain unchanged. SR (Reset-Priority SR Flip-Flop): If the signal state at the S input is “1” and the signal state at the R input is “0”, then the SR is set; if the signal state at the S input is “0” and the signal state at the R input is “1”, then the SR is reset. If both input triggers are “1”, the execution order of the instructions is of the utmost importance. SR first executes the set command at the specified < address>, and then executes the reset command, so that that address remains in a reset state during the remainder of the program scanning process. The S (set) and R (reset) commands are executed only when RLO is “1”. These instructions are not affected by RLO “0”; the addresses specified in the instructions remain unchanged.
If both R and S are valid, it depends on whether reset has priority or setting has priority; the one that has priority is used. RS means R has priority, while SR means S has priority