<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=8&amp;t=18749&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2017-07-04T11:55:20+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=18749&amp;mode</id>
<entry>
<author><name><![CDATA[CzarnyPiotr]]></name></author>
<updated>2017-07-04T11:55:20+01:00</updated>
<published>2017-07-04T11:55:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191655#p191655</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191655#p191655"/>
<title type="html"><![CDATA[Re: ATTiny 13, Timer]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191655#p191655"><![CDATA[
Matko, faktycznie. Dzięki wielkie <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> <br /><br />Wysłane z mojego PRA-LX1 przy użyciu Tapatalka<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=15683">CzarnyPiotr</a> — 4 lip 2017, o 11:55</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Situs]]></name></author>
<updated>2017-07-04T10:50:49+01:00</updated>
<published>2017-07-04T10:50:49+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191652#p191652</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191652#p191652"/>
<title type="html"><![CDATA[Re: ATTiny 13, Timer]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191652#p191652"><![CDATA[
ja na przykładzie pokażę[syntax=c]TCCR0A |= (1&lt;&lt;WGM01) ;[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14339">Situs</a> — 4 lip 2017, o 10:50</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xentis]]></name></author>
<updated>2017-07-04T06:58:22+01:00</updated>
<published>2017-07-04T06:58:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191643#p191643</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191643#p191643"/>
<title type="html"><![CDATA[Re: ATTiny 13, Timer]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191643#p191643"><![CDATA[
Tak na ścisłość to 2 babole bo tu też babol.  <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" />  Powinno być przesunięcie w lewo a nie wartość.<br /><br /><div class="quotetitle">CzarnyPiotr napisał(a):</div><div class="quotecontent"><br />TIMSK0 |= OCIE0A;<br /></div><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=6265">xentis</a> — 4 lip 2017, o 06:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2017-07-03T22:34:59+01:00</updated>
<published>2017-07-03T22:34:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191635#p191635</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191635#p191635"/>
<title type="html"><![CDATA[Re: ATTiny 13, Timer]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191635#p191635"><![CDATA[
<div class="quotetitle">CzarnyPiotr napisał(a):</div><div class="quotecontent"><br />TCCR0A |= WGM01; // Ustawienie w tryb CTC<br /></div><br /><br />tu masz babola<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 3 lip 2017, o 22:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[CzarnyPiotr]]></name></author>
<updated>2017-07-03T21:58:59+01:00</updated>
<published>2017-07-03T21:58:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191626#p191626</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191626#p191626"/>
<title type="html"><![CDATA[ATTiny 13, Timer]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18749&amp;p=191626#p191626"><![CDATA[
Witam, czy ktoś może widzi na pierwszy rzut oka czemu przedstawiony kod nie działa poprawnie (nie genereje przerwania)<br />main.c:<br />[syntax=c]#include &lt;avr/io.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &quot;timers.h&quot;<br /><br />volatile uint16_t tick;<br /><br />ISR(TIM0_COMPA_vect)<br />{<br />PORTB |= 1&lt;&lt;PB4;<br />}<br /><br />int main(void)<br />{<br />DDRB |= 1&lt;&lt;PB4;<br />sei(); // zezwolenie na przerwania<br /><br />timer0(TIMER_PRESCALER_1,255);<br /><br />while(1);<br />}[/syntax]<br /><br />timers.h:<br />[syntax=c]#ifndef TIMERS_H_<br />#define TIMERS_H_<br /><br />#include &lt;avr/io.h&gt;<br /><br />#define TIMER_PRESCALER_1 1<br />#define TIMER_PRESCALER_8 2<br />#define TIMER_PRESCALER_64 3<br />#define TIMER_PRESCALER_256 4<br />#define TIMER_PRESCALER_1024 5<br /><br />void timer0(uint8_t pval, uint8_t ocrval);<br /><br />#endif /* TIMERS_H_ */[/syntax]<br /><br />timers.c:<br />[syntax=c]#include &quot;timers.h&quot;<br /><br />void timer0(uint8_t pval, uint8_t ocrval)<br />{<br />TCCR0A |= WGM01; // Ustawienie w tryb CTC<br />TCCR0B |= pval;  //wartośc preskalera<br />OCR0A = ocrval;<br />TIMSK0 |= OCIE0A;<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=15683">CzarnyPiotr</a> — 3 lip 2017, o 21:58</p><hr />
]]></content>
</entry>
</feed>