
{"id":14913,"date":"2017-03-28T18:35:03","date_gmt":"2017-03-28T16:35:03","guid":{"rendered":"https:\/\/www.brickrknowledge.de\/en\/?p=14913"},"modified":"2017-03-28T18:35:03","modified_gmt":"2017-03-28T16:35:03","slug":"flip-flops-for-dummies-part-2","status":"publish","type":"post","link":"https:\/\/brickrknowledge.eu\/en\/flip-flops-for-dummies-part-2\/","title":{"rendered":"Flip-flops for dummies &#8211; part 2"},"content":{"rendered":"<p><u>For dummies <\/u><\/p>\n<p>For those of you who liked the Brick\u2019R\u2019knowledge blog post series <a href=\"https:\/\/brickrknowledge.eu\/en\/resistor-for-dummies\/\">\u201cfor dummies\u201d<\/a> are going to like this new blog post as well. As always, I write this post being a complete beginner myself. This time, I will be dealing with RS flip-flops, D flip-flops and JK flip-flops. I advise you to read the <a href=\"https:\/\/brickrknowledge.eu\/en\/flip-flops-for-dummies-part-1\/\">former posts about the topic of \u201cLogic\u201d<\/a> that describe the basic gates and provide a general explanation of flip-flops.<\/p>\n<p><u>\u00a0\u201eEasy\u201c \u2013 the RS flip-flop<\/u><\/p>\n<p>According to its definition, the RS flip-flop is a simple, not synchronous flip-flop (you find more information on that topic in our blog post \u201cFlip-flops for dummies part 1) that can be built out of two NOR gates \u2013 which is why we call it <a href=\"https:\/\/brickrknowledge.eu\/sets\/engineering\/logic-set\/\">NOR flip-flop<\/a>. You could also build it out of two NANDs. In this case, you would need negated inputs, though. The following picture shows you the RS flip-flop with two gates: the NOR gates\u2019 outputs are connected to one of the inputs of the respective other. You can print out this circuit diagram and consider what will happen if you push a button. I advise you to use two pens of different color and a NOR truth table.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Schaltbild.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14886\" src=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Schaltbild-300x163.jpg\" alt=\"RS Flipflop Schaltbild\" width=\"300\" height=\"163\" srcset=\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltbild-300x163.jpg 300w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltbild-600x326.jpg 600w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltbild-590x320.jpg 590w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltbild-470x255.jpg 470w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltbild.jpg 726w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The circuit symbol of an RS flip-flop looks like this:<\/p>\n<p><a href=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Schaltzeichen.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14892\" src=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Schaltzeichen.jpg\" alt=\"RS Flipflop Schaltzeichen\" width=\"229\" height=\"216\" \/><\/a><\/p>\n<p>The inputs are called S and R. S meaning \u201cset\u201d and R meaning \u201creset\u201d. Q is the output and \/Q is the negated output. In the field of \u201cLogic\u201d, this is generally indicated with the little circuit that is placed next to \/Q. You will find this little circle also on our bricks\u2019 labels and on the circuit diagram.<\/p>\n<p><u>It\u2019s logical \u2013 the truth table<\/u><\/p>\n<p>So-called truth tables clearly represent how <a href=\"https:\/\/brickrknowledge.eu\/sets\/engineering\/logic-set\/\">flip-flops<\/a> function. When conveyed to a Brick\u2019R\u2019knowledge circuit, this means that there is a 1 at the inputs of S and R when pushing a button. The connection is closed now. Regarding the outputs Q and \/Q, 1 represents the LEDs flashing. Regarding the 0 at the outputs S and R , it represents not pushing the button and when there is a 0 indicated in the truth table it means that the LED does not flash at the outputs Q and \/Q. Let\u2019s have a closer look at the truth table:<\/p>\n<p><a href=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14900\" src=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle-300x43.jpg\" alt=\"RS Flipflop Wahrheitstabelle\" width=\"300\" height=\"43\" srcset=\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle-300x43.jpg 300w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle-768x110.jpg 768w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle-600x86.jpg 600w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle-825x122.jpg 825w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle-670x96.jpg 670w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle-470x67.jpg 470w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Wahrheitstabelle.jpg 850w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><u>What happens in practice? <\/u><\/p>\n<p>Let\u2019s start with a RS flip-flop brick circuit consisting of two NOR bricks that you can build yourself in order to directly implement my description:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Schaltung.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-14906\" src=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/03\/RS_Schaltung-300x153.jpg\" alt=\"RS Flipflop Schaltung\" width=\"300\" height=\"153\" srcset=\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung-300x153.jpg 300w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung-768x392.jpg 768w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung-600x307.jpg 600w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung-626x320.jpg 626w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung-470x240.jpg 470w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung.jpg 916w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Careful: For practical reasons Q is below and \/Q above which is reverse from the circuit symbol and diagram of the RS flip-flop.<\/p>\n<p>When I push the S button, the LED starts flashing at Q (or, in case S has been pushed directly before, the LED does not change condition 1) but even more important: the LED keeps flashing. As I mentioned in my last blog post, flip-flops have a \u201cpast\u201d and not only a \u201cpresent\u201d. If I had a simple logic gate consisting of one gate only, the LED would not keep flashing meaning that the information \u201cLED flashes\u201d would not be saved. When I push the R button, the condition Q will be reset to 0, meaning that the LED turns off (or, in case R has been pushed directly before, the condition 0 does not change). When S had been pushed and the LED flashes at Q, I can keep on pushing S as long as I want \u2013 the condition stays the same. Logical but also important: If I don\u2019t push a button, meaning R and S are 0, the condition stays the same. This simply means that there won\u2019t happen any automatic change if I don\u2019t push the button. Visually speaking, a rocker does not pull to one side without outside influence. Here is another interesting fact: when S and R are being pushed simultaneously the flip-flop does not \u201eknow\u201c for which one to decide. This is why this condition is prohibited. Speaking didactically more correct, the successor state is undefined as it is not clear which output will be \u201c1\u201d at first. In our next blog post we will get to know the D flip-flop that provides a solution for the problem concerning the \u201cprohibited condition\u201d. When you look at the output \/Q, the conditions 1 and 0 simply turn.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For dummies For those of you who liked the Brick\u2019R\u2019knowledge blog post series \u201cfor dummies\u201d are going to like this new blog post as well. As always, I write this post being a complete beginner myself. This time, I will be dealing with RS flip-flops, D flip-flops and JK flip-flops. I advise you to read [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":14908,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169],"tags":[847,401,406,849],"class_list":["post-14913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised-en-2","tag-dummies","tag-flip-flop","tag-logic","tag-truth-table"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Flip-flops for dummies - part 2 - Brick&#039;R&#039;knowledge<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flip-flops for dummies - part 2 - Brick&#039;R&#039;knowledge\" \/>\n<meta property=\"og:description\" content=\"For dummies For those of you who liked the Brick\u2019R\u2019knowledge blog post series \u201cfor dummies\u201d are going to like this new blog post as well. As always, I write this post being a complete beginner myself. This time, I will be dealing with RS flip-flops, D flip-flops and JK flip-flops. I advise you to read [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Brick&#039;R&#039;knowledge\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BrickRknowledge\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-28T16:35:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/forum.brickrknowledge.com\/content\/uploads\/2017\/03\/RS_Schaltung.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"916\" \/>\n\t<meta property=\"og:image:height\" content=\"468\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Lena Wahlsdorf\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brickrknowledge\" \/>\n<meta name=\"twitter:site\" content=\"@brickrknowledge\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lena Wahlsdorf\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/\",\"url\":\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/\",\"name\":\"Flip-flops for dummies - part 2 - Brick&#039;R&#039;knowledge\",\"isPartOf\":{\"@id\":\"https:\/\/brickrknowledge.de\/zh-hans\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung.jpg\",\"datePublished\":\"2017-03-28T16:35:03+00:00\",\"dateModified\":\"2017-03-28T16:35:03+00:00\",\"author\":{\"@id\":\"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/8f69a5236cc8657e68d506287d0ae975\"},\"breadcrumb\":{\"@id\":\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#primaryimage\",\"url\":\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung.jpg\",\"contentUrl\":\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung.jpg\",\"width\":916,\"height\":468},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/brickrknowledge.de\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Flip-flops for dummies &#8211; part 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/brickrknowledge.de\/zh-hans\/#website\",\"url\":\"https:\/\/brickrknowledge.de\/zh-hans\/\",\"name\":\"Brick&#039;R&#039;knowledge\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/brickrknowledge.de\/zh-hans\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/8f69a5236cc8657e68d506287d0ae975\",\"name\":\"Lena Wahlsdorf\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0a15594e9d4b0fc995ab2548da24d794?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0a15594e9d4b0fc995ab2548da24d794?s=96&d=mm&r=g\",\"caption\":\"Lena Wahlsdorf\"},\"url\":\"https:\/\/brickrknowledge.eu\/en\/author\/lena\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Flip-flops for dummies - part 2 - Brick&#039;R&#039;knowledge","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/","og_locale":"en_US","og_type":"article","og_title":"Flip-flops for dummies - part 2 - Brick&#039;R&#039;knowledge","og_description":"For dummies For those of you who liked the Brick\u2019R\u2019knowledge blog post series \u201cfor dummies\u201d are going to like this new blog post as well. As always, I write this post being a complete beginner myself. This time, I will be dealing with RS flip-flops, D flip-flops and JK flip-flops. I advise you to read [&hellip;]","og_url":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/","og_site_name":"Brick&#039;R&#039;knowledge","article_publisher":"https:\/\/www.facebook.com\/BrickRknowledge","article_published_time":"2017-03-28T16:35:03+00:00","og_image":[{"width":916,"height":468,"url":"https:\/\/forum.brickrknowledge.com\/content\/uploads\/2017\/03\/RS_Schaltung.jpg","type":"image\/jpeg"}],"author":"Lena Wahlsdorf","twitter_card":"summary_large_image","twitter_creator":"@brickrknowledge","twitter_site":"@brickrknowledge","twitter_misc":{"Written by":"Lena Wahlsdorf","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/","url":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/","name":"Flip-flops for dummies - part 2 - Brick&#039;R&#039;knowledge","isPartOf":{"@id":"https:\/\/brickrknowledge.de\/zh-hans\/#website"},"primaryImageOfPage":{"@id":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#primaryimage"},"image":{"@id":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung.jpg","datePublished":"2017-03-28T16:35:03+00:00","dateModified":"2017-03-28T16:35:03+00:00","author":{"@id":"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/8f69a5236cc8657e68d506287d0ae975"},"breadcrumb":{"@id":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#primaryimage","url":"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung.jpg","contentUrl":"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/03\/RS_Schaltung.jpg","width":916,"height":468},{"@type":"BreadcrumbList","@id":"https:\/\/forum.brickrknowledge.com\/en\/flip-flops-for-dummies-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/brickrknowledge.de\/en\/"},{"@type":"ListItem","position":2,"name":"Flip-flops for dummies &#8211; part 2"}]},{"@type":"WebSite","@id":"https:\/\/brickrknowledge.de\/zh-hans\/#website","url":"https:\/\/brickrknowledge.de\/zh-hans\/","name":"Brick&#039;R&#039;knowledge","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/brickrknowledge.de\/zh-hans\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/8f69a5236cc8657e68d506287d0ae975","name":"Lena Wahlsdorf","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0a15594e9d4b0fc995ab2548da24d794?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a15594e9d4b0fc995ab2548da24d794?s=96&d=mm&r=g","caption":"Lena Wahlsdorf"},"url":"https:\/\/brickrknowledge.eu\/en\/author\/lena\/"}]}},"_links":{"self":[{"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/posts\/14913"}],"collection":[{"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/comments?post=14913"}],"version-history":[{"count":0,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/posts\/14913\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/media\/14908"}],"wp:attachment":[{"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/media?parent=14913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/categories?post=14913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/tags?post=14913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}