<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DIY DMCole &#187; AVRFuses</title>
	<atom:link href="http://www.dmcole.net/tag/avrfuses/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dmcole.net</link>
	<description>Circuits, microcontrollers, LEDs, do-it-yourself style</description>
	<lastBuildDate>Sun, 04 Sep 2011 17:25:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Henne&#8217;s DMX transceiver</title>
		<link>http://www.dmcole.net/hennes-dmx-transceiver/</link>
		<comments>http://www.dmcole.net/hennes-dmx-transceiver/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 01:56:11 +0000</pubDate>
		<dc:creator>dmcole</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[ATMega8515]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[AVRDude]]></category>
		<category><![CDATA[AVRFuses]]></category>
		<category><![CDATA[DMX-512]]></category>

		<guid isPermaLink="false">http://www.dmcole.net/?p=151</guid>
		<description><![CDATA[If youâ€™ve visited my automated Christmas lights page, the letters DMX wonâ€™t be unfamiliar to you. For those too lazy to click, itâ€™s an electronic lighting protocol. Two wire. Used extensively in stage shows. And, in recent months, adopted by the DIY Christmas lighting community. So, I&#8217;m working on an idea (Iâ€™ll post more when [...]]]></description>
			<content:encoded><![CDATA[<p><strong>If</strong> youâ€™ve visited my automated Christmas lights <a href="http://www.pacificalights.info/" target="_new">page</a>, the letters <a href="http://en.wikipedia.org/wiki/DMX512-A" target="_new">DMX</a> wonâ€™t be unfamiliar to you. For those too lazy to click, itâ€™s an electronic lighting protocol. Two wire. Used extensively in stage shows. And, in recent months, adopted by the DIY Christmas lighting community.</p>
<div id="attachment_166" class="wp-caption alignright" style="width: 310px"><a href="http://www.dmcole.net/wp-content/uploads/2009/06/Hendrik-DMX-transceiver-schematic.pdf" target="_new"><img class="size-medium wp-image-166" title="Hendrik-DMX-xceiver-schem" src="http://www.dmcole.net/wp-content/uploads/2009/06/Hendrik-DMX-xceiver-schem-300x184.jpg" alt="Henneâ€™s DMX transceiver schematic (click to download PDF)." width="300" height="184" /></a><p class="wp-caption-text">Henneâ€™s DMX transceiver schematic (click to download PDF).</p></div>
<p>So, I&#8217;m working on an idea (Iâ€™ll post more when I get closer to the finish) that I want to add to my Christmas lights show, and it therefore needs to talk DMX. Numerous previous postings here will tell you that would mean I&#8217;d need to do this on an Atmel chip. Though there are a lot of DMX projects done on Microchips (PICs), fewer have been done on Atmels. And pretty much everyone who has done DMX on the Atmel has based some or all of their work on that of <a href="http://www.hoelscher-hi.de/hendrik/english/ressources.htm" target="_new">Hendrik HÃ¶lscher</a>.</p>
<p>Fortunately for those monolinguists among us, Hendrik â€“ who goes by â€œHenneâ€ â€“ writes in both German and English. He&#8217;s also moderately active on one of the Christmas lights forums.</p>
<p>My initial plans were to write my own code to get my idea off the ground; a few months(!) of fiddling around and I was never even able to pull off my main effect, no less receiving DMX.</p>
<p>During that fiddling, I ran across a web site in Germany that sold a bare printed circuit board for Henne&#8217;s basic DMX transceiver. It took PayPal, so I bought a couple of boards. And the next time I dropped by <a href="http://www.jameco.com/" target="_new">Jameco</a>, I took along the bill of materials for the transceiver and bought the parts.</p>
<p>Then life intervened. It wasn&#8217;t until earlier this month that I got back on track on this project, which started out with a redrawing of Henneâ€™s schematic. I then wanted to build the circuit on a breadboard. The design requires an external crystal and while I knew of the potential to â€œbrickâ€ the 8515, I didnâ€™t think said bricking would be quite so easy.</p>
<p>So easy, in fact, that I bricked two.</p>
<p>The problem (for me, anyway), was a lack of understanding of terminology. While I&#8217;d started out using <a href="http://www.bsdhome.com/avrdude/" target="_new">AVRDude</a> on the command line, I somewhere along the line stumbled across <a href="http://www.vonnieda.org/software/avrfuses/" target="_new">AVRFuses</a>, a Mac application that puts a graphical user interface on top of AVRDude.</p>
<p>Anway, AVRFuses uses the same terminology as <a href="http://www.engbedded.com/fusecalc/" target="_new">FuseCalc</a> and I find (found) both of them to be opaque. Suffice it to say, the 8MHz crystal used in Henneâ€™s design is designated as &#8220;Ext. Crystal/Resonator Medium Freq.; Start-up time: 16K CK + 4 ms; [CSEL=1101 SUT=10].&#8221;</p>
<p>So, another trip to Jameco and this new-found knowledge (thanks <a href="http://www.ladyada.net/forums/viewtopic.php?f=24&amp;t=11596" target="_new">Limor</a>) and I had a functioning 8515.</p>
<p>But not a functioning circuit. The version displayed here clearly shows a ground on Pin 5 of U2, the 75176B, as well as five-volt power to Pin 8. Well, apparently some schematic-drawing programs don&#8217;t indicate such niceties and the drawing I was basing my work off of didnâ€™t. So I sat here for almost two days, banging my head against the wall trying to figure out why the breadboarded circuit didnâ€™t work. I wonder if I would have ever figured it out without help.</p>
<p>As Henne says, this is a simple circuit, with virtually all the heavy lifting happening in the software of the 8515. Suffice to say, U2 (the 75176B), an <a href="http://en.wikipedia.org/wiki/EIA-485" target="_new">RS485</a> transceiver, receives the DMX signal and turns it into something the UART on the 8515 can read. The 8515, in turn, processes the signal and outputs it onto pins 32-39 (unless one of the many options is chosen, in which case signals can come out of the J4 Spare port as well).</p>
<p>Henne doesn&rsquo;t explain why he chose the 8515 &ndash; it&rsquo;s a big chip, taking up quite a bit of board real estate, and it&rsquo;s not inexpensive (I&rsquo;m too lazy to look it up, but I&rsquo;m pretty sure that last winter when I bought the first set of these chips at Jameco, they were $4.50+/-; last week&rsquo;s purchase they had gone down to $3.50. I just looked them up and at Mouser and Digi-Key, they&rsquo;re $5.27). But for an eight-channel project (potentially 16-channel) that has DIP-switch control of the DMX start channel (another 10 pins), this really can&rsquo;t be done in less than a 40-pin chip.</p>
<p>(Oh, and a note on the licensing: I had included my standard Creative Commons, Noncommercial Share-Alike license on the schematic and Henne asked that I remove it. In deference to the original author, I did. None of his schematics have licenses on them and he wrote, &#8220;You cannot license the schematic under cc since its based on my schematic / hw where unauthorized commercial production is prohibited. [This is necessary if some companies produce the boards in larger quantities...] I don&#8217;t want anyone to get into trouble&#8230;&#8221; Now you know what I know.)</p>
<p>Using Henne&rsquo;s &#8220;board.hex&#8221; testing software, the red LED flashes a steady beat once power is applied; turning on DIP 2 (or, as in my case, shorting Pin 22 to ground), the green LED should light if the crystal fuses are set correctly.</p>
<p>Anyway, I finally got the circuit working on Saturday. Now, to add a couple of sub-circuits and get this idea â€“ which Iâ€™ve been working since December 2007 â€“ afloat.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dmcole.net/hennes-dmx-transceiver/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

