<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>NexGen: Hacking; Gray 2 BCD Encoder (using TTL)</title><link>/members-area/personalblogs/b/nexgen-flight-simuator/posts/nexgen-hacking-gray-2-bcd-encoder-using-ttl</link><description>OK, I Have had it up to you know where with the GRAY CODE!! When I have written this decoder in software, it takes a loop or two, It just eats CPU time. This is ok if you can use interrupts. But the Ardunio does not return the interrupt value to you </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: NexGen: Hacking; Gray 2 BCD Encoder (using TTL)</title><link>https://community.element14.com/members-area/personalblogs/b/nexgen-flight-simuator/posts/nexgen-hacking-gray-2-bcd-encoder-using-ttl</link><pubDate>Wed, 02 Nov 2022 21:34:16 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:83593031-788c-42d3-afea-e1e6e1aaf57c</guid><dc:creator>dougw</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;If you do the lookup in your MCU instead of an external memory there is no problem with jitter.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24714&amp;AppID=300&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: NexGen: Hacking; Gray 2 BCD Encoder (using TTL)</title><link>https://community.element14.com/members-area/personalblogs/b/nexgen-flight-simuator/posts/nexgen-hacking-gray-2-bcd-encoder-using-ttl</link><pubDate>Wed, 02 Nov 2022 21:29:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:83593031-788c-42d3-afea-e1e6e1aaf57c</guid><dc:creator>dougw</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;In the past, I used an EPROM to do the conversion - just a simple lookup table in one chip. To do 8 bits to 8 bits you just need a 256 byte memory chip.&lt;/p&gt;
&lt;p&gt;However Gray code is used to eliminate large errors due to single bit uncertainty, so you need to be careful to only read when the data is stable.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24714&amp;AppID=300&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: NexGen: Hacking; Gray 2 BCD Encoder (using TTL)</title><link>https://community.element14.com/members-area/personalblogs/b/nexgen-flight-simuator/posts/nexgen-hacking-gray-2-bcd-encoder-using-ttl</link><pubDate>Wed, 02 Nov 2022 20:31:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:83593031-788c-42d3-afea-e1e6e1aaf57c</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Cris,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not super-familiar with ways to do the conversion, however there&amp;#39;s an ancient circuit in an ancient book (with&amp;nbsp;an anachronistic name nowadays: Modern Electronic Circuits Reference Manual), that might help, it is asynchronous, but seems to work. This circuit is also on the Internet Archive so probably OK to reproduce here.&lt;/p&gt;
&lt;p&gt;This uses three XOR gates (the SN7483 chip on the right is not used):&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-83593031-788c-42d3-afea-e1e6e1aaf57c/gray_2D00_to_2D00_binary.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24714&amp;AppID=300&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>