<?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=4&amp;t=21734&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-12-20T19:46:31+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=21734&amp;mode</id>
<entry>
<author><name><![CDATA[bar0sh]]></name></author>
<updated>2018-12-20T19:46:31+01:00</updated>
<published>2018-12-20T19:46:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214858#p214858</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214858#p214858"/>
<title type="html"><![CDATA[Re: Atmega 328 problem z przerwaniami]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214858#p214858"><![CDATA[
Zgodnie ze wskazówkami zmieniłem procka w projekcie, wyczyściłem i skompilowałem i z powrotem zmieniłem na procka a328 i teraz się skompilowało bez problemu. <br />Teraz wszystko działa jak należy <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1287">bar0sh</a> — 20 gru 2018, o 19:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JarekB]]></name></author>
<updated>2018-12-20T19:03:29+01:00</updated>
<published>2018-12-20T19:03:29+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214854#p214854</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214854#p214854"/>
<title type="html"><![CDATA[Re: Atmega 328 problem z przerwaniami]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214854#p214854"><![CDATA[
Wkleiłem Twój kod do MKCLIPSA jako nowy projekt <br />Zakomentowałem wszystkie &quot;inkludy&quot; i wywołania funkcji<br />Skompilowało się jak należy. <br /><br />Załóż nowy projekt i wklejaj po kolei może coś siedzi w innych plikach <br />Możesz jeszcze zacząć od &quot;zakomentowania&quot; wszystkiego oprócz tego co wywala błąd i dołączać po kolei bloki<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18188">JarekB</a> — 20 gru 2018, o 19:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2018-12-20T18:56:33+01:00</updated>
<published>2018-12-20T18:56:33+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214852#p214852</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214852#p214852"/>
<title type="html"><![CDATA[Re: Atmega 328 problem z przerwaniami]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214852#p214852"><![CDATA[
Poczytaj DOKŁADNIE to: <!-- l --><a class="postlink-local" href="https://forum.atnel.pl/post213934.html#p213934" >post213934.html#p213934</a><!-- l --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 20 gru 2018, o 18:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bar0sh]]></name></author>
<updated>2018-12-20T16:58:44+01:00</updated>
<published>2018-12-20T16:58:44+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214845#p214845</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214845#p214845"/>
<title type="html"><![CDATA[Re: Atmega 328 problem z przerwaniami]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214845#p214845"><![CDATA[
O nie nie nie Panie Mirku tam jest ZERO już też na to uwagę zwracałem.<br /><br />Dodałbym screena ale aktualnie jest jakiś problem z wgrywaniem obrazków.<br /><br /><br />Ehhh w innym projektach wszystko działało a w tym akurat nie chce się to skompilować.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1287">bar0sh</a> — 20 gru 2018, o 16:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2018-12-20T16:32:08+01:00</updated>
<published>2018-12-20T16:32:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214840#p214840</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214840#p214840"/>
<title type="html"><![CDATA[Re: Atmega 328 problem z przerwaniami]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214840#p214840"><![CDATA[
Panie no przecież dałeś duże O zamiast ZERO w OCIE0A<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 20 gru 2018, o 16:32</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bar0sh]]></name></author>
<updated>2018-12-20T16:12:53+01:00</updated>
<published>2018-12-20T16:12:53+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214837#p214837</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214837#p214837"/>
<title type="html"><![CDATA[Atmega 328 problem z przerwaniami]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21734&amp;p=214837#p214837"><![CDATA[
Witam,<br /><br />Mam problem ze skompilowaniem programu, wywala błąd na włączaniu przerwań dla ATMEGA 328. Błąd w postaci &quot;could not be resolved&quot;. Procek w projekcie wybrany odpowiedni, czyściłem projekt nie raz i też nic nie pomogło. Odpowiednie biblioteki też podciągnięte.<br /><br />Oto kod programu:<br /><br /><br />[syntax=c]#include &lt;avr/io.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;util/delay.h&gt;<br />#include &lt;avr/pgmspace.h&gt;<br />#include &lt;avr/wdt.h&gt;<br />#include &lt;string.h&gt;<br />#include &lt;stdlib.h&gt;<br /><br />#include &quot;MK_USART/mkuart.h&quot;<br />#include &quot;WS2812/ws281x.h&quot;<br />#include &quot;MK_MAGIC_FX/mk_magic_fx.h&quot;<br /><br />#include &quot;common.h&quot;<br /><br /><br />int main( void ) {<br /><br /><br />/* ------------------- PRZERWANIE TIMER DLA ATMEGA 328 ------------------- */<br /><br />TCCR0A |= (1&lt;&lt;WGM01);// Timer Mode to CTC<br />TIMSK0 |= (1&lt;&lt;OCIE0A);//Set the ISR COMPA vect<br />TCCR0B |= (1&lt;&lt;CS00) | (1&lt;&lt;CS02);//preskaler = 1024<br />OCR0A  = 107;//przerwanie co 10ms 100HZ<br /><br /><br /><br />wdt_enable( WDTO_1S );<br /><br /><br />USART_Init( __UBRR );<br />register_uart_str_rx_event_callback( parse_rs232 );<br /><br /><br /> sei();<br /><br />while(1) {<br /><br />UART_RX_STR_EVENT( uart_buf );<br />wdt_reset();<br /><br />}<br />/* koniec petli glownej */<br />}<br />/* koniec funkcji glownej */[/syntax]<br /><br /><br /><span style="color: #FF0000">TCCR0A</span> |= (1&lt;&lt;WGM01);<br /><span style="color: #FF0000">TIMSK0</span> |= (1&lt;&lt;<span style="color: #FF0000">OCIE0A</span>);<br /><span style="color: #FF0000">TCCR0B </span>|= (1&lt;&lt;CS00) | (1&lt;&lt;CS02);<br /><span style="color: #FF0000">OCR0A</span>  = 107;<br /><br /><br />To co wyróżniłem nie przechodzi, jednak jeśli wezme zmienie rejestry np na TCCR1B to niby jest ok.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1287">bar0sh</a> — 20 gru 2018, o 16:12</p><hr />
]]></content>
</entry>
</feed>