<?xml version="1.0" encoding="UTF-8" ?>
<?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/"><channel><title>Atari Dragster World Record - Part 1:  Building the Hardware -- Episode 317</title><link>https://community.element14.com/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/3054/atari-dragster-world-record---part-1-building-the-hardware----episode-317</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Atari Dragster World Record - Part 1:  Building the Hardware -- Episode 317</title><link>https://community.element14.com/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/3054/atari-dragster-world-record---part-1-building-the-hardware----episode-317</link><pubDate>Fri, 17 Nov 2017 08:24:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:90e8b21e-d33a-4025-9d82-d77b83a053c7</guid><dc:creator>Matt</dc:creator><comments>https://community.element14.com/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/3054/atari-dragster-world-record---part-1-building-the-hardware----episode-317#comments</comments><description>Current Revision posted to Documents by Matt on 11/17/2017 8:24:00 AM&lt;br /&gt;
&lt;table cellpadding="0" cellspacing="0" style="padding:0px;margin:0px;background-color:#c4e3ed;width:100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="3" style="padding:6px 0px 10px 11px;vertical-align:top;"&gt;&lt;a href="/e14/assets/legacy/TBHSlogo2.png" data-e14adj="t"&gt;&lt;img alt="image" class="nolightbox" src="/e14/assets/legacy/TBHSlogo2.png"  /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td rowspan="3" style="vertical-align:top;padding:8px 13px 13px;"&gt;&lt;p style="margin:0;font-size:18px;font-weight:bold;padding-bottom:6px;"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/" data-e14adj="t"&gt;element14&amp;#39;s The Ben Heck Show&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:6px;line-height:18px;"&gt;&lt;strong&gt;Join the Ben Heck team every week for amazing hacks!&lt;/strong&gt; Watch them build and mod community-inspired projects using electronics!&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="/challengesprojects/element14-presents/benheck/" data-e14adj="t"&gt;Back to The Ben Heck Show homepage &lt;img loading="lazy" alt="image" src="/e14/assets/legacy/gen/LinkArrow.gif"  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding:13px 10px 13px 13px;background-color:#004156;vertical-align:middle;" width="30%"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/super-glue-gun/" data-e14adj="t"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;The Learning Circuit&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:13px 10px 13px 13px;background-color:#005973;vertical-align:middle;"&gt;&lt;a class="" href="https://www.element14.com/community/community/experts/benheck/sudosergeant?ICID=BH-episodedoc-topban" target="_blank" data-e14adj="t"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;sudo Sergeant&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:13px 10px 13px 13px;background-color:#006f91;vertical-align:middle;"&gt;&lt;a class="jive-link-wiki-small" href="/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/9678/the-ben-heck-show-episode-archive" data-e14adj="t"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;See All Episodes&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table style="width:80%;display:block;margin:0 auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="padding-bottom:12px;"&gt;&lt;span&gt;&lt;a href="https://www.youtube.com/watch?v=xEyaB6fAGNM"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="margin:0;border:1px solid #b8d7e5;background-color:#e9f6fc;padding:8px;max-width:634px;"&gt;&lt;span style="color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;text-align:justify;"&gt;The oldest video game record left standing is for the Atari 2600 game Dragster, the first third party game ever and first title released by Activision. A modern speedster, whose done tests with emulation and spreadsheets, claims the recorded score of 5.51 seconds is not possible, the best possible score is 5.57 seconds. Ben does not care about records, he’s using it an excuse to build a RAM analyzer to make decisions on how best to play the game.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;While Ben does not care about records, he’s interested in using this as an excuse to build a RAM analyzer for the Atari 2600, analyzing the BUS with newer hardware.&amp;nbsp; This external device will see when the CPU writes to the RAM and make a copy of the data to put in a memory array that can be read by a microcontroller. If they can get the RAM copier working, they can later have a microcontroller take a look at the RAM and make decisions on how best to play the game.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;Ben rigs up some test equipment using some microchip PIC tail cards and some TI B0108 voltage receivers. This has an 8-bit BUS on either side to allow you to put two different voltages on it, in this case 5 volts and 3.3 volts, and does automatic conversions for you.&amp;nbsp; He tests to make sure that the BUS transceiver properly converts 5 volts into 3.3 volts. He plugs the card into a PIC Development board. This allows him to do 8-bit read/write operations on the PIC32. To scan the Atari’s memory he’ll send bytes to it. The 8-bit data bus will come in as soon as he adds the address BUS and act as a clone of the RAM so that it can monitor what the Atari is thinking.&amp;nbsp; By having a copy of the RAM, the MCU can make decisions on how best to play the game.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;Ben does a voltage test with an IC tester clip. Ben has a wired up a PIC tail connector for the PIC32 MZ. He’s got some logic that does an address decode. Basically, it only sends a pulse when they are addressing the RAM.&amp;nbsp; He runs the data and the address line through these 3.3 volt to 5 volt transceivers so they can knock down the voltage to 3.3 volts for the PIC32 so the PIC32 can read it without damaging itself.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;Because they are using a 6502 CPU they’ll have to make adjustments to compensate for INCrement and DECrement.&amp;nbsp; The data is not due to the possibility of having a double write immediately in the RAM by doing an INCrement or DECrement command.&amp;nbsp; Ben takes a look at a 6502 CPU timing sheet and analyzes the INCrement and DECrement instructions that caused a double write to the RAM.&amp;nbsp; He then adds circuitry to accommodate for that and counts a certain number of periods before setting a flag to tell him that the address or data is valid. This creates a rising edge triggering an interrupt on the PIC32 allowing it to load the valid data. Using external circuitry allows them to analyze the waveforms coming off to the CPU and figure out the best time to send the data to the PIC.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-wiki-small" href="/challengesprojects/element14-presents/benheck/w/documents/2888/element14-s-the-ben-heck-show-disclaimer" data-e14adj="t"&gt;Disclaimer&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: atari 2600, speed run, hack, microchip, pic microcontroller, atari dragster speed run, microchip development expansion board, microcontroller, soldering, atari, heck, ben, memory analysis, tbhs_ep, atari dragster&lt;/div&gt;
</description></item><item><title>Episode 317: Atari Dragster World Record - Part 1: Building the Hardware</title><link>https://community.element14.com/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/3054/atari-dragster-world-record---part-1-building-the-hardware----episode-317/revision/1</link><pubDate>Fri, 22 Dec 2017 14:48:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:90e8b21e-d33a-4025-9d82-d77b83a053c7</guid><dc:creator>tariq.ahmad</dc:creator><comments>https://community.element14.com/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/3054/atari-dragster-world-record---part-1-building-the-hardware----episode-317#comments</comments><description>Revision 1 posted to Documents by tariq.ahmad on 12/22/2017 2:48:27 PM&lt;br /&gt;
&lt;table cellpadding="0" cellspacing="0" style="padding:0px;margin:0px;background-color:#c4e3ed;width:100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td rowspan="3" style="padding:6px 0px 10px 11px;vertical-align:top;"&gt;&lt;a href="/e14/assets/legacy/TBHSlogo2.png"&gt;&lt;img alt="image" class="nolightbox" src="/e14/assets/legacy/TBHSlogo2.png"  /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td rowspan="3" style="vertical-align:top;padding:8px 13px 13px;"&gt;&lt;p style="margin:0;font-size:18px;font-weight:bold;padding-bottom:6px;"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/"&gt;element14&amp;#39;s The Ben Heck Show&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding-bottom:6px;line-height:18px;"&gt;&lt;strong&gt;Join the Ben Heck team every week for amazing hacks!&lt;/strong&gt; Watch them build and mod community-inspired projects using electronics!&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="/challengesprojects/element14-presents/benheck/"&gt;Back to The Ben Heck Show homepage &lt;img loading="lazy" alt="image" src="/e14/assets/legacy/gen/LinkArrow.gif"  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="padding:13px 10px 13px 13px;background-color:#004156;vertical-align:middle;" width="30%"&gt;&lt;a class="jivecontainerTT-hover-container jive-link-community-small" href="/challengesprojects/element14-presents/benheck/super-glue-gun/"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;The Learning Circuit&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:13px 10px 13px 13px;background-color:#005973;vertical-align:middle;"&gt;&lt;a class="" href="https://www.element14.com/community/community/experts/benheck/sudosergeant?ICID=BH-episodedoc-topban"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;sudo Sergeant&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="padding:13px 10px 13px 13px;background-color:#006f91;vertical-align:middle;"&gt;&lt;a class="jive-link-wiki-small" href="/challenges-projects/element14-presents/benheck/ben-heck-exclusive/w/documents/9678/the-ben-heck-show-episode-archive"&gt;&lt;span style="color:#ffffff;text-decoration:none;"&gt;See All Episodes&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table style="width:80%;display:block;margin:0 auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="padding-bottom:12px;"&gt;&lt;span&gt;&lt;a href="https://www.youtube.com/watch?v=xEyaB6fAGNM"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="margin:0;border:1px solid #b8d7e5;background-color:#e9f6fc;padding:8px;max-width:634px;"&gt;&lt;span style="color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;text-align:justify;"&gt;The oldest video game record left standing is for the Atari 2600 game Dragster, the first third party game ever and first title released by Activision. A modern speedster, whose done tests with emulation and spreadsheets, claims the recorded score of 5.51 seconds is not possible, the best possible score is 5.57 seconds. Ben does not care about records, he’s using it an excuse to build a RAM analyzer to make decisions on how best to play the game.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;While Ben does not care about records, he’s interested in using this as an excuse to build a RAM analyzer for the Atari 2600, analyzing the BUS with newer hardware.&amp;nbsp; This external device will see when the CPU writes to the RAM and make a copy of the data to put in a memory array that can be read by a microcontroller. If they can get the RAM copier working, they can later have a microcontroller take a look at the RAM and make decisions on how best to play the game.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;Ben rigs up some test equipment using some microchip PIC tail cards and some TI B0108 voltage receivers. This has an 8-bit BUS on either side to allow you to put two different voltages on it, in this case 5 volts and 3.3 volts, and does automatic conversions for you.&amp;nbsp; He tests to make sure that the BUS transceiver properly converts 5 volts into 3.3 volts. He plugs the card into a PIC Development board. This allows him to do 8-bit read/write operations on the PIC32. To scan the Atari’s memory he’ll send bytes to it. The 8-bit data bus will come in as soon as he adds the address BUS and act as a clone of the RAM so that it can monitor what the Atari is thinking.&amp;nbsp; By having a copy of the RAM, the MCU can make decisions on how best to play the game.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;Ben does a voltage test with an IC tester clip. Ben has a wired up a PIC tail connector for the PIC32 MZ. He’s got some logic that does an address decode. Basically, it only sends a pulse when they are addressing the RAM.&amp;nbsp; He runs the data and the address line through these 3.3 volt to 5 volt transceivers so they can knock down the voltage to 3.3 volts for the PIC32 so the PIC32 can read it without damaging itself.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:15px;text-align:justify;color:#000000;font-family:&amp;#39;Open Sans&amp;#39;, Arial, sans-serif;"&gt;Because they are using a 6502 CPU they’ll have to make adjustments to compensate for INCrement and DECrement.&amp;nbsp; The data is not due to the possibility of having a double write immediately in the RAM by doing an INCrement or DECrement command.&amp;nbsp; Ben takes a look at a 6502 CPU timing sheet and analyzes the INCrement and DECrement instructions that caused a double write to the RAM.&amp;nbsp; He then adds circuitry to accommodate for that and counts a certain number of periods before setting a flag to tell him that the address or data is valid. This creates a rising edge triggering an interrupt on the PIC32 allowing it to load the valid data. Using external circuitry allows them to analyze the waveforms coming off to the CPU and figure out the best time to send the data to the PIC.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-wiki-small" href="/challengesprojects/element14-presents/benheck/w/documents/2888/element14-s-the-ben-heck-show-disclaimer"&gt;Disclaimer&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: atari 2600, speed run, hack, microchip, pic microcontroller, atari dragster speed run, microchip development expansion board, microcontroller, soldering, atari, heck, ben, memory analysis, tbhs_ep, atari dragster&lt;/div&gt;
</description></item></channel></rss>