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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2017-11-30T23:09:00+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=19719&amp;mode</id>
<entry>
<author><name><![CDATA[Sev3n]]></name></author>
<updated>2017-11-30T23:09:00+01:00</updated>
<published>2017-11-30T23:09:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199793#p199793</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199793#p199793"/>
<title type="html"><![CDATA[Re: Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199793#p199793"><![CDATA[
No właśnie chyba sobie sprawię na mikołajki xD<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18456">Sev3n</a> — 30 lis 2017, o 23:09</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2017-11-30T22:16:26+01:00</updated>
<published>2017-11-30T22:16:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199786#p199786</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199786#p199786"/>
<title type="html"><![CDATA[Re: Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199786#p199786"><![CDATA[
a ja polecam jednak zacząć od dobrej książki:<br /><br /><!-- m --><a class="postlink" href="http://atnel.pl/mikrokontrolery-avr-jezyk-c.html" >http://atnel.pl/mikrokontrolery-avr-jezyk-c.html</a><!-- m --> <br /><br />będziesz miał dużo łatwiej ze startem w C<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 30 lis 2017, o 22:16</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Mikroc]]></name></author>
<updated>2017-11-30T21:59:07+01:00</updated>
<published>2017-11-30T21:59:07+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199785#p199785</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199785#p199785"/>
<title type="html"><![CDATA[Re: Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199785#p199785"><![CDATA[
Zamień: a=a++;<br />na: a++; lub a+=1; lub a=a+1;<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=17554">Mikroc</a> — 30 lis 2017, o 21:59</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Sev3n]]></name></author>
<updated>2017-11-30T21:56:24+01:00</updated>
<published>2017-11-30T21:56:24+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199784#p199784</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199784#p199784"/>
<title type="html"><![CDATA[Re: Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199784#p199784"><![CDATA[
Dzięki wielkie, trochę wstyd że takie podstawowe błędy i sam ich nie znalazłem (btw timer wygląda na to że działał od początku) <img src="https://forum.atnel.pl/images/smilies/icon_razz.gif" alt=":P" title="Pokazuje język" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18456">Sev3n</a> — 30 lis 2017, o 21:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Ognisty]]></name></author>
<updated>2017-11-30T21:54:15+01:00</updated>
<published>2017-11-30T21:54:15+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199783#p199783</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199783#p199783"/>
<title type="html"><![CDATA[Re: Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199783#p199783"><![CDATA[
inkrementacja zmiennej w języku C:<br />a++;<br />lub<br />a+=1;<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7053">Ognisty</a> — 30 lis 2017, o 21:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Sev3n]]></name></author>
<updated>2017-11-30T21:51:51+01:00</updated>
<published>2017-11-30T21:51:51+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199782#p199782</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199782#p199782"/>
<title type="html"><![CDATA[Re: Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199782#p199782"><![CDATA[
Poprawione <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> niestety dopiero uczę się języka C :/<br /><br />teraz zostaje tylko jeden warning [syntax=c]&quot;DescriptionResourcePathLocationType<br />operation on 'a' may be undefined &#91;-Wsequence-point&#93;main.c/Timerline 55C/C++ Problem&quot;[/syntax].<br /><br />A timer jakby dalej nie działał<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18456">Sev3n</a> — 30 lis 2017, o 21:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Ognisty]]></name></author>
<updated>2017-11-30T21:45:46+01:00</updated>
<published>2017-11-30T21:45:46+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199781#p199781</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199781#p199781"/>
<title type="html"><![CDATA[Re: Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199781#p199781"><![CDATA[
volatile to tylko specyfikator brakuje typu zmiennej np. volatile uint8_t a<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7053">Ognisty</a> — 30 lis 2017, o 21:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Sev3n]]></name></author>
<updated>2017-11-30T21:42:30+01:00</updated>
<published>2017-11-30T21:42:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199780#p199780</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199780#p199780"/>
<title type="html"><![CDATA[Timer w ATmega 644P]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19719&amp;p=199780#p199780"><![CDATA[
Witam wszystkich <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> od jakiegoś czasu staram się uruchomić Timer CTC na ATmega 600P ale coś mi nie wychodzi :/<br /><br />[syntax=c]/*<br /> * main.c<br /> *<br /> *  Created on: 22 lis 2017<br /> *      Author: Sokół<br /> */<br /><br />#include &lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;<br />#include &quot;MYUART/myuart.h&quot;<br />#include &quot;MK_TERMINAL/mk_term.h&quot;<br />#include &lt;avr/interrupt.h&gt;<br /><br /><br /><br />volatile a;<br /><br /><br />int main(void) {<br /><br />TCCR0A |= (1&lt;&lt;WGM01); //ctc<br />TIMSK0 |= (1&lt;&lt;OCIE0A);<br />TCCR0B |= (1&lt;&lt;CS02)|(1&lt;&lt;CS00); //presc<br />OCR0A=39;<br />DDRB |= (1&lt;&lt;PB0);<br />uart_init(__UBRR);<br />tr_cls(0);<br />uart_puts( &quot;miernik&quot;);<br />_delay_ms(1000);<br />tr_cls(1);<br /><br />tr_locate(0,3);<br />tr_attr(1,YELLOW,BLACK);<br />uart_puts( &quot;atmega644&quot;);<br />sei();<br />while(1){<br /><br /><br /><br /><br />tr_locate(3,3);<br />tr_attr(1,MAGENTA,BLACK);<br />uart_puts( &quot;Wartosc ADC: &quot;);<br />tr_pen_color(RED);<br />uart_putlong (a,10);<br />uart_puts(&quot;       &quot;);<br /><br /><br />}<br />}<br /><br />ISR(TIMER0_COMPA_vect)<br />{<br /><br />a=a++;<br />}[/syntax]<br /><br />kod wygląda tak, a zmienna &quot;a&quot; jak była 0 tak jest. Gdzież popełniłem błąd? xD<br /><br />Pozdrawiam <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18456">Sev3n</a> — 30 lis 2017, o 21:42</p><hr />
]]></content>
</entry>
</feed>