<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD>
<BODY>
<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>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=182560309-20122005><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>