
{"id":15177,"date":"2017-05-04T13:46:21","date_gmt":"2017-05-04T11:46:21","guid":{"rendered":"https:\/\/www.brickrknowledge.de\/?p=15177\/"},"modified":"2017-05-04T15:50:18","modified_gmt":"2017-05-04T13:50:18","slug":"flipflops-dummies-part-3","status":"publish","type":"post","link":"https:\/\/brickrknowledge.eu\/en\/flipflops-dummies-part-3\/","title":{"rendered":"Flipflops for dummies \u2013 part 3"},"content":{"rendered":"<p>For those of you who enjoyed our <a href=\"https:\/\/brickrknowledge.eu\/en\/flip-flops-for-dummies-part-1\/\">blog post series &#8220;For dummies&#8221;,<\/a> this new post is the right choice. Being a complete beginner myself, I will deal with RS flip-flops, D flip-flops and JK flip-flops today. As the topic of &#8220;Logic&#8221; is quite complex I advise you to read the <a href=\"https:\/\/brickrknowledge.eu\/en\/flip-flops-for-dummies-part-1\/\">former blog posts about Logic<\/a> first that involve main logic gates and that give an overall explanation about flip-flops.<\/p>\n<p><u>\u201eDefined\u201c &#8211; The D Flip-flop<\/u><\/p>\n<p>The D flip-flop consists of an RS flip-flop that has a reset input connected to the set input via an inverter. If you already read the <a href=\"https:\/\/brickrknowledge.eu\/en\/flip-flops-for-dummies-part-2\/\">blog post &#8220;Flip-flop for dummies &#8211; part 2&#8221;<\/a>, you probably know what this means: There won&#8217;t occur an undefined state. We&#8217;ve already learned that an undefined state is unconvenient as the visual &#8220;rocker&#8221; does not know which side to tip. This is why coincidence decides whether the right end is up or down. A D flip-flop can be either state-controlled or edge-controlled. The brick in our<a href=\"https:\/\/brickrknowledge.eu\/sets\/engineering\/logic-set\/\"> Logic set<\/a> is an edge-controlled flip-flop. In the following picture, you can see the circuit symbol (note that our D flip-flop brick does not have a \/Q output):<\/p>\n<p><a href=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3_a.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15158\" src=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3_a-300x270.jpg\" alt=\"Schaltzeichen\" width=\"300\" height=\"270\" srcset=\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_a-300x270.jpg 300w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_a-356x320.jpg 356w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_a-367x330.jpg 367w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_a.jpg 377w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><u>II&#8217;s logical &#8211; the truth table<\/u><\/p>\n<p><a href=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3_b.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15164\" src=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3_b-300x60.jpg\" alt=\"Wahrheitstabelle\" width=\"300\" height=\"60\" srcset=\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_b-300x60.jpg 300w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_b-768x154.jpg 768w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_b-1024x205.jpg 1024w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_b-600x120.jpg 600w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_b-670x134.jpg 670w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_b-470x94.jpg 470w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3_b.jpg 1367w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>As with the RS flip-flop, we can illustrate the D flip-flop&#8217;s performance according to a so called truth table. With regard to the brick circuit, this means that there is a 1 at the data input D for pushing the button, meaning the connection will be ended. At the output Q there is a 1 for the illuminated LED. The 0 at the data output represents not pushing the button and the LED does not lighten up in the truth table at the output Q when there is a 0 indicated.<\/p>\n<p>Let&#8217;s talk about clock input C now: if the state at input C changes from 0 to 1, there can be a change at the output Q. If the state at input C changes from 1 to 0, though (meaning we don&#8217;t push the button) there won&#8217;t be any changes at the output Q, no matter whether there is a 1 or 0 at the input D.<\/p>\n<p>Reversely, this means, it does not matter what is at input D, whether I push the button 30 times or whether I don&#8217;t. As long as there isn&#8217;t a change from 0 to 1 at input C, there won&#8217;t happen anything. Exept a button at the input C you can also do a clock generator which is nothing else than a virtual finger that pushes the button in specific intervals. It displays 1 or 0 in the same intervals. The frequency is measured in hertz. The truth table also indicates additional optional inputs S and R and the output \/Q. As our brick does not possess these, we don&#8217;t need to bother about them. In order to rebuild the truth table you should build the following brick circuit:<\/p>\n<p><a href=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-15170\" src=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3-300x152.jpg\" alt=\"Schaltung\" width=\"300\" height=\"152\" srcset=\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3-300x152.jpg 300w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3-768x390.jpg 768w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3-600x305.jpg 600w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3-630x320.jpg 630w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3-470x239.jpg 470w, https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg 780w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>We will be dealing with the truth table in more detail and will look into D flip-flops with asynchronous set and reset input in our next blog post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those of you who enjoyed our blog post series &#8220;For dummies&#8221;, this new post is the right choice. Being a complete beginner myself, I will deal with RS flip-flops, D flip-flops and JK flip-flops today. As the topic of &#8220;Logic&#8221; is quite complex I advise you to read the former blog posts about Logic [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":15172,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169],"tags":[401,406,849],"class_list":["post-15177","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised-en-2","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>Flipflops for dummies \u2013 part 3 - 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:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flipflops for dummies \u2013 part 3 - Brick&#039;R&#039;knowledge\" \/>\n<meta property=\"og:description\" content=\"For those of you who enjoyed our blog post series &#8220;For dummies&#8221;, this new post is the right choice. Being a complete beginner myself, I will deal with RS flip-flops, D flip-flops and JK flip-flops today. As the topic of &#8220;Logic&#8221; is quite complex I advise you to read the former blog posts about Logic [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/\" \/>\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-05-04T11:46:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-04T13:50:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"780\" \/>\n\t<meta property=\"og:image:height\" content=\"396\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/\",\"url\":\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/\",\"name\":\"Flipflops for dummies \u2013 part 3 - Brick&#039;R&#039;knowledge\",\"isPartOf\":{\"@id\":\"https:\/\/brickrknowledge.de\/zh-hans\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg\",\"datePublished\":\"2017-05-04T11:46:21+00:00\",\"dateModified\":\"2017-05-04T13:50:18+00:00\",\"author\":{\"@id\":\"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/8f69a5236cc8657e68d506287d0ae975\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#primaryimage\",\"url\":\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg\",\"contentUrl\":\"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg\",\"width\":780,\"height\":396},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/brickrknowledge.de\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Flipflops for dummies \u2013 part 3\"}]},{\"@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":"Flipflops for dummies \u2013 part 3 - 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:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/","og_locale":"en_US","og_type":"article","og_title":"Flipflops for dummies \u2013 part 3 - Brick&#039;R&#039;knowledge","og_description":"For those of you who enjoyed our blog post series &#8220;For dummies&#8221;, this new post is the right choice. Being a complete beginner myself, I will deal with RS flip-flops, D flip-flops and JK flip-flops today. As the topic of &#8220;Logic&#8221; is quite complex I advise you to read the former blog posts about Logic [&hellip;]","og_url":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/","og_site_name":"Brick&#039;R&#039;knowledge","article_publisher":"https:\/\/www.facebook.com\/BrickRknowledge","article_published_time":"2017-05-04T11:46:21+00:00","article_modified_time":"2017-05-04T13:50:18+00:00","og_image":[{"width":780,"height":396,"url":"https:\/\/www.brickrknowledge.de\/content\/uploads\/2017\/05\/Dummies_Flip_3.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/","url":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/","name":"Flipflops for dummies \u2013 part 3 - Brick&#039;R&#039;knowledge","isPartOf":{"@id":"https:\/\/brickrknowledge.de\/zh-hans\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#primaryimage"},"image":{"@id":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#primaryimage"},"thumbnailUrl":"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg","datePublished":"2017-05-04T11:46:21+00:00","dateModified":"2017-05-04T13:50:18+00:00","author":{"@id":"https:\/\/brickrknowledge.de\/zh-hans\/#\/schema\/person\/8f69a5236cc8657e68d506287d0ae975"},"breadcrumb":{"@id":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#primaryimage","url":"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg","contentUrl":"https:\/\/brickrknowledge.eu\/content\/uploads\/2017\/05\/Dummies_Flip_3.jpg","width":780,"height":396},{"@type":"BreadcrumbList","@id":"https:\/\/www.brickrknowledge.de\/en\/flipflops-dummies-part-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/brickrknowledge.de\/en\/"},{"@type":"ListItem","position":2,"name":"Flipflops for dummies \u2013 part 3"}]},{"@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\/15177"}],"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=15177"}],"version-history":[{"count":0,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/posts\/15177\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/media\/15172"}],"wp:attachment":[{"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/media?parent=15177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/categories?post=15177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brickrknowledge.eu\/en\/wp-json\/wp\/v2\/tags?post=15177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}