Sunday 24 April 2016

digital logic - SR Flip-Flop: NOR or NAND?


I started studying flip-flops recently and I am stuck at this point:


At some video tutorials, people explain the SR flip-flop like this:


SR1


So they use NAND gates, producing a transition table like this:


|     t     | t+1
| S | R | Q

| 0 | 0 | INVALID
| 0 | 1 | 1
| 1 | 0 | 0
| 1 | 1 | ?

However, some other people explain the SR flip-flop using NOR gates:


SR2 http://startingelectronics.com/software/VHDL-CPLD-course/tut9-SR-latch/S-R-latch-gates.png


which has a different transition table.


Are both correct? Why do both exist?



Answer




Both are SR latches.


The SR NOR latch will have the following truth table:


----------
S R Q
----------
0 0 no change
0 1 0
1 0 1
1 1 not allowed
----------


SR NAND latch is an inverted version of SR NOR latch. The truth table of which is:


----------
S R Q
----------
0 0 not allowed
0 1 1
1 0 0
1 1 no change
----------

No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...