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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-05-20T23:30:42+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=7145&amp;mode</id>
<entry>
<author><name><![CDATA[lukas_]]></name></author>
<updated>2014-05-20T23:30:42+01:00</updated>
<published>2014-05-20T23:30:42+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81903#p81903</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81903#p81903"/>
<title type="html"><![CDATA[Re: Przesyłanie pojedynczego znaku (atmega 8)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81903#p81903"><![CDATA[
Ewentualnie różnie ustawienia taktowana procesora. Sam dziś tak zrobiłem. W mkAVRcalc miałem ustawione &gt;8MHz a w Eclipsie miałem ustawione na 8MHz i się krzaczyło.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1060">lukas_</a> — 20 maja 2014, o 23:30</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[atmel]]></name></author>
<updated>2014-05-20T20:45:00+01:00</updated>
<published>2014-05-20T20:45:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81873#p81873</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81873#p81873"/>
<title type="html"><![CDATA[Re: Przesyłanie pojedynczego znaku (atmega 8)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81873#p81873"><![CDATA[
Brak spiętych mas lub różne prędkości...<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1183">atmel</a> — 20 maja 2014, o 20:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mati7828]]></name></author>
<updated>2014-05-20T20:05:02+01:00</updated>
<published>2014-05-20T20:05:02+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81862#p81862</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81862#p81862"/>
<title type="html"><![CDATA[Re: Przesyłanie pojedynczego znaku (atmega 8)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81862#p81862"><![CDATA[
Dzięki bardzo!!! Będę bardziej uważny <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />Atmega wysyła jeden znak i jestem w stanie go odebrać. Mam jeszcze pytanie ma ktoś pomysł dlaczego nie wyswietlaja mi sie w oknie same literki A tylko jakies różne znaki?<br />Pozdrawiam<br /><a href="http://forum.atnel.pl/_obrazki/o/3370/9cde18e121412ea42130047ce69a7dd4.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/3370/9cde18e121412ea42130047ce69a7dd4.jpg" alt="Obrazek" /></a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3370">mati7828</a> — 20 maja 2014, o 20:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Krauser]]></name></author>
<updated>2014-05-20T19:57:43+01:00</updated>
<published>2014-05-20T19:57:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81859#p81859</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81859#p81859"/>
<title type="html"><![CDATA[Re: Przesyłanie pojedynczego znaku (atmega 8)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81859#p81859"><![CDATA[
Zamień BUL na 8UL<br />Kod wstawiamy w znacznikach syntax=C<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=465">Krauser</a> — 20 maja 2014, o 19:57</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mati7828]]></name></author>
<updated>2014-05-20T20:03:42+01:00</updated>
<published>2014-05-20T19:53:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81858#p81858</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81858#p81858"/>
<title type="html"><![CDATA[Przesyłanie pojedynczego znaku (atmega 8)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=7145&amp;p=81858#p81858"><![CDATA[
Witam! Pisze tu ponieważ już nie wiem co mam zrobić. Podłączyłem mój zestaw uruchomieniowy ZL2AVR przez kabel rs232 poniewaz chciałem przesłąc jeden znak. W pilku main.c w lini inicjalizujacej przesyłasnie znaków kompilator pokazuje błąd: 'BUL' undeclared (first use in this function) i nie mam pojęcia co to może być. Dołączam kod z plików main.c myuart.h myuart.c. Pozdrawiam<br /><br /><br />[syntax=c]/*<br /> * main.c<br /> *<br /> *  Created on: 20-05-2014<br /> *      Author: Mateusz<br /> */<br /><br />#include &lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;avr/pgmspace.h&gt;<br /><br />#include &quot;MYUART/myuart.h&quot;<br /><br /><br /><br />#define LED (1&lt;&lt;PB0)<br />#define LED_ON PORTB |=LED<br />#define LED_OFF PORTB  &amp;=~LED<br />#define LED_TOG PORTB ^=LED<br /><br />int main(void) {<br /><br />uart_init( __UBRR );<br /><br />DDRB |= LED;<br /><br /><br />while(1)<br />{<br /><br />uart_putc('A');<br /><br />LED_TOG;<br />_delay_ms(250);<br /><br />}<br />}<br /><br /><br /><br /><br />#ifndef MYUART_H_<br />#define MYUART_H_<br /><br />#define UART_BAUD 19200<br />#define __UBRR ((F_CPU+UART_BAUD*BUL)/(16UL*UART_BAUD)-1)<br /><br /><br /><br />void uart_init( uint16_t _UBRR );<br />void uart_putc( char data );<br /><br />#endif /* MYUART_H_ */<br /><br /><br /><br />#include &quot;avr/io.h&quot;<br />#include &quot;myuart.h&quot;<br /><br /><br /><br /><br />void uart_init( uint16_t _UBRR )<br />{<br /><br />UBRRH = (uint8_t)(_UBRR&gt;&gt;8);<br />UBRRL = (uint8_t)_UBRR;<br />UCSRB=(1&lt;&lt;TXEN);<br />}<br /><br /><br /><br />void uart_putc( char data )<br />{<br />while ( !( UCSRA &amp; (1&lt;&lt;UDRE)) ) ;<br />UDR = data;<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3370">mati7828</a> — 20 maja 2014, o 19:53</p><hr />
]]></content>
</entry>
</feed>