We do this with the Mega32, using the OCR, to generate a 4-20mA signal. Using 10-bits we get about 0.01mA per step. Pretty simple actually.<br><br><br><br><div><span class="gmail_quote">On 7/2/07, <b class="gmail_sendername">
John Smith</b> <<a href="mailto:john111smith@gmail.com">john111smith@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi all</div>
<div> </div>
<div>According to ATMEGA64 datasheet we can use it for developing "6 PWM Channels with Programmable Resolution from 1 to 16 Bits".</div>
<div> </div>
<div>What is quality of possible developed 16 bits DAC for DC level generation with single pole RC low pass filter? </div>
<div>What is code for its initialize and implementation?</div>
<div> </div>
<div>I have lot of experience with Atmega8/16/32 ones. Are there any new issue regarding its PCB pinout design/programming ?</div>
<div> </div>
<div>I will be appreciated with your comments in these regards.</div>
<div> </div>
<div> </div>
<div>Best Regards</div><span class="sg">
<div>JS</div>
</span><br>_______________________________________________<br>Icc-avr mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Icc-avr@imagecraft.com">Icc-avr@imagecraft.com</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://dragonsgate.net/mailman/listinfo/icc-avr" target="_blank">
http://dragonsgate.net/mailman/listinfo/icc-avr</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Paul Mateer, AA9GG<br>Elan Engineering Corp.<br><a href="http://www.elanengr.com">www.elanengr.com</a>