<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dobry vecer,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>fungovat by to melo (viz priloha - toto skutecne
funguje) :-)... Co delate v prerusenich? Nepremlatite hodnotu TCNT2
necim?</FONT></DIV>
<DIV><FONT face=Arial size=2>Kdyby to nefungovalo, muzete mi poslat cely
zdrojak (i soukrome) - kouknu se.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>S pozdravem</FONT></DIV>
<DIV><FONT face=Arial size=2>--</FONT></DIV>
<DIV><FONT face=Arial size=2>Karel Radkovsky<BR><A
href="http://www.dioda.cz">www.dioda.cz</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Peter.Rosko@siemens.com href="mailto:Peter.Rosko@siemens.com">Rosko
Peter</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=hw-list@list.hw.cz
href="mailto:hw-list@list.hw.cz">hw-list@list.hw.cz</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 20, 2005 10:08
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Atmega8 + Timer2 + PWM</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2>zdravim,</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>mam problem, je
kdesi medzi stolickou a klavesnicou predpokladam :)</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>atmega8, gcc,
timer 2, pwm</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>interrupt na
compare match funguje, ale sam pin sa nehybe</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>na zaciatku
programu je :</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2> OCR2 =
20;</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>potom na tom
spravnom (? ;-) ) mieste je :</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2> DDRB
|= _BV(PB3);<BR> TCCR2 = _BV(WGM21) | _BV(WGM20) | _BV(COM21) |
_BV(CS21); //prescaller = 8; enable fast pwm PWM; output pin
enabled<BR> TIMSK |= _BV(TOIE2) | _BV(OCIE2); </FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>pin je stale
mrtvy</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>vidite tam nieco ?
ja uz par hodin nie :(</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial size=2>vdaka,
</FONT></SPAN></DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2>p.rosko</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>