{"id":1617,"date":"2011-10-13T16:00:08","date_gmt":"2011-10-13T23:00:08","guid":{"rendered":"https:\/\/www.reenigne.org\/blog\/?p=1617"},"modified":"2011-10-13T14:06:51","modified_gmt":"2011-10-13T21:06:51","slug":"masking-out-the-sync-signals","status":"publish","type":"post","link":"https:\/\/www.reenigne.org\/blog\/masking-out-the-sync-signals\/","title":{"rendered":"Masking out the sync signals"},"content":{"rendered":"<p>In the course of the <a href=\"https:\/\/www.reenigne.org\/blog\/hardware-debugging-with-no-oscilloscope\">CGA debugging<\/a> I talked about yesterday, I found it useful to be able to accurately visualize signals with a period much smaller than a frame. The setup I showed in yesterday&#8217;s video was rather less than ideal for that since the TV adjusts the DC offset of the incoming signal so that the blanking period is at the normal (black) level.<\/p>\n<p>I realized I could get around this by taking the &#8220;display enable&#8221; signal from the CGA card and ANDing it with the signal I wanted to visualize. Then a logic &#8220;1&#8221; signal would give me a white screen, signals with frequencies that were integer multiples of the horizontal sync frequency would give me vertical lines and so on.<\/p>\n<p>When I tried it out I got a bit of a surprise &#8211; strange interference patterns were appearing on the TV that I hadn&#8217;t seen without the AND gate. A moment&#8217;s thought told me why this was &#8211; the AND gate was acting as an amplifier &#8211; picking up whatever electromagnetic radiation was flying around and turning it into 1s and 0s.<\/p>\n<p>Here&#8217;s some video of the effect.<\/p>\n<p><object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/GQN_yk--s78&#038;hl=en&#038;fs=1\"><\/param><param name=\"allowFullScreen\" value=\"true\"><\/param><param name=\"allowscriptaccess\" value=\"always\"><\/param><embed src=\"http:\/\/www.youtube.com\/v\/GQN_yk--s78&#038;hl=en&#038;fs=1\" type=\"application\/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"425\" height=\"344\"><\/embed><\/object><\/p>\n<p>This was much more interesting than actually debugging the CGA card, so I started poking around at all kinds of signals and visualizing them. Unfortunately I forgot where the -12V (or possibly +12V) signal on the bus was and touched it, frying my one remaining 74HC08. I finished the debugging with a 74LS08 which doesn&#8217;t show such nice interference patterns, then wired up two NAND gates from a 74HC00 as an AND gate so that you could get to see the effect.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the course of the CGA debugging I talked about yesterday, I found it useful to be able to accurately visualize signals with a period much smaller than a frame. The setup I showed in yesterday&#8217;s video was rather less than ideal for that since the TV adjusts the DC offset of the incoming signal [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1617","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/comments?post=1617"}],"version-history":[{"count":1,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1617\/revisions"}],"predecessor-version":[{"id":1618,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1617\/revisions\/1618"}],"wp:attachment":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/media?parent=1617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/categories?post=1617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/tags?post=1617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}