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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-04-29T12:00:23+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=6508&amp;mode</id>
<entry>
<author><name><![CDATA[Jaglarz]]></name></author>
<updated>2015-04-29T12:00:23+01:00</updated>
<published>2015-04-29T12:00:23+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=127748#p127748</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=127748#p127748"/>
<title type="html"><![CDATA[Re: Atmega8 problem z programowaniem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=127748#p127748"><![CDATA[
<strong>walus4</strong> - listing i obrazek źle umieszczone.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=471">Jaglarz</a> — 29 kwi 2015, o 12:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2015-04-29T11:39:22+01:00</updated>
<published>2015-04-29T11:39:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=127747#p127747</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=127747#p127747"/>
<title type="html"><![CDATA[Re: Atmega8 problem z programowaniem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=127747#p127747"><![CDATA[
Schemat podłączenia programatora jest zły.<br />Powinien wyglądać jak poniżej.<br /><br /><a href="http://forum.atnel.pl/_obrazki/o/3028/9b6b43aff38f4a65c13e2a8632661c45.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/3028/9b6b43aff38f4a65c13e2a8632661c45.jpg" alt="Obrazek" /></a><br /><br />W mkAVRCalculator jest opis złącza KANDA.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 29 kwi 2015, o 11:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[walus4]]></name></author>
<updated>2014-03-27T15:44:59+01:00</updated>
<published>2014-03-27T15:44:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=76044#p76044</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=76044#p76044"/>
<title type="html"><![CDATA[Re: Atmega8 problem z programowaniem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=76044#p76044"><![CDATA[
kod programu<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"><br /><br /> $regfile = &quot;m8def.dat&quot;                                     'informuje kompilator o pliku<br />      'dyrektyw mikrokontrolera<br />$crystal = 8000000                                          'informuje kompilator<br />      'o czŕstotliwoťci oscylatora<br />      'taktuj¦cego mikrokontroler<br /><br /><br />Config Lcd = 16 * 2<br />Config Lcdpin = Pin , Db4 = Portd.5 , Db5 = Portd.6 , Db6 = Portd.7 , Db7 = Portd.4 , E = Portd.3 , Rs = Portd.2<br /><br />   Config Adc = Single , Prescaler = Auto , Reference = Internal<br /><br /><br /><br /> Config Watchdog = 2048                                     'reset wystąpi po 8192 ms<br />'Start Watchdog<br /><br /><br /><br />Deflcdchar 1 , 4 , 10 , 4 , 32 , 32 , 32 , 32 , 32          'znak stopnia<br /><br /><br /><br />Declare Sub Odcz_temp<br /><br /><br /><br /> ' Config Portc.1 = Output<br />Config Portb.2 = Output                                     'wyjścia przekazników<br />Config Portb.1 = Output                                     'wyjścia przekazników<br />Config Portd.0 = Output                                     'wyjścia przekazników<br /><br /><br /><br /><br />Config Pinb.3 = Input                                       'porty jako wejściowe<br />Config Pinb.4 = Input                                       'porty jako wejściowe<br />Config Pinb.5 = Input                                       'porty jako wejściowe<br /><br />Set Portb.3                                                 ' ustawia na stan wysoki<br />Set Portb.4                                                 ' ustawia na stan wysoki<br />Set Portb.5                                                 ' ustawia na stan wysoki<br /><br /><br />   Dim Wart_nap As Word<br />   Dim Wart_nap1 As Word<br />   Dim Wart_nap2 As String *<br />   Dim Wart_nap22 As Word<br /><br /><br />Dim T As Single<br />Dim T1 As Single<br />Dim T2 As Single<br /><br /> Dim Wart_ac As Word<br /> Dim Wart_ac1 As Word<br /> Dim Wart_ac2 As Word<br /><br /> Dim V As Single<br /> Dim V1 As Single<br /> Dim V2 As Single<br /><br /> Dim Kasownik As Byte<br />Dim Pomocnicza As Word<br />Dim Pomocnicza2 As Word<br />Dim Licz As Byte<br /><br />Kasownik = 0<br />Pomocnicza = 0<br />Dim Pokuj_on As Byte<br />Dim Pokuj_of As Byte<br /><br />'Pokuj_on = 21                                               'temperatura minimalna w pokoju<br />'Pokuj_of = Pokuj_on + 2                                     'temperatura max w pokoju<br /><br /><br /> Config Rc5 = Pind.1<br />  Dim Adres As Byte , Command As Byte<br /><br /> Enable Interrupts<br />' Set Portb.3 = Input<br /><br /><br /><br /> Start Adc<br /><br />Do<br /><br /><br /><br /><br />Cls<br />Lcd &quot;Solar Lato&quot;<br />Waitms 2900<br />Readeeprom Licz , 5<br />If Licz &gt; 50 Then Licz = 21<br />Pokuj_on = Wart_nap + 10<br />Pokuj_of = Wart_nap + 6<br />'Portd.0 = 0<br /><br />Start Watchdog<br />Cls<br /><br />Do<br />Pokuj_on = Wart_nap + 10<br />Pokuj_of = Wart_nap + 6<br />If Kasownik = 1 Then<br /> Pomocnicza = Pomocnicza + 1<br /><br />If Pomocnicza &gt; 300 Then Pomocnicza = 1<br /><br /> End If<br /><br />Getrc5(adres , Command)<br />Command = Command And &amp;B01111111<br />Waitms 20<br />'Reset Watchdog<br />Debounce Pinb.3 , 0 , Kasowanie , Sub                       'czyta swicze<br /><br /><br />'Start Watchdog<br /><br /><br /><br /><br /><br /> 'czytam pierwszy czujnik    BOJLER<br /> 'waitms 20<br /> Wart_ac = Getadc(0)<br /> V = Wart_ac * 0.0026<br /> T = V * 100<br />' Reset Watchdog<br /><br /><br /> 'czytam drugi czujnik    PIEC<br /> 'Waitms 20<br /> Wart_ac1 = Getadc(1)<br /> V1 = Wart_ac1 * 0.0026<br /> T1 = V1 * 100<br /><br /> Reset Watchdog<br /><br /><br /> 'czytam 3 czujnik     DOM<br /> 'Waitms 20<br /><br /> Wart_ac2 = Getadc(2)<br /> V2 = Wart_ac2 * 0.0026<br /> T2 = V2 * 100<br /><br /><br /><br /><br /><br /><br /><br /> Cls<br /><br />  Locate 1 , 10<br />  Wart_nap = Int(t )<br />  Lcd &quot;pow:&quot; ; Wart_nap<br />  Reset Watchdog<br /><br />  Locate 1 , 1<br />  Wart_nap1 = Int(t1 )<br />  Lcd &quot;solar:&quot; ; Wart_nap1<br />  Reset Watchdog<br /><br />  Locate 2 , 1<br /><br />  Wart_nap2 = Fusing(t2 , &quot;#.&amp;&quot;)<br />  Lcd &quot;boj:&quot; ; Wart_nap2 ; Chr(1) ; &quot;C   &quot;<br />  Wart_nap22 = Int(t2 )<br />  Reset Watchdog<br /><br />If Kasownik = 1 Then<br />  Locate 2 , 13<br />  Lcd Pomocnicza<br />  Reset Watchdog<br />  End If<br /><br /> ' Reset Watchdog<br />'  Lowerline<br />  'Lcd Wart_nap<br />  Stop Watchdog<br />  Waitms 1000<br />  Start Watchdog<br />  Reset Watchdog<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br /> 'obsługa przekazników<br /><br /> If Portd.0 = 0 Then<br /><br /><br />If T2 &gt; 40 Then Portd.2 = 0<br />If Kasownik = 1 Then Portd.2 = 1<br />If Pomocnicza = 300 Then Kasownik = 0<br /><br /> Reset Watchdog<br /> End If<br /><br /> If Kasownik = 0 Then<br /><br /> If Wart_nap1 &lt; 40 Then Portd.0 = 0<br /><br /> If Wart_nap1 &gt; 40 Then<br /><br /> If Wart_nap1 &gt; Pokuj_on Then Portd.0 = 1<br /><br /><br /><br /><br /><br /><br /><br /> If Wart_nap1 &lt; Pokuj_of Then Portd.0 = 0<br />                   'End If<br /><br />                 End If<br />                  End If<br /><br />                                                    'od kasownika =0<br />                    Reset Watchdog<br />  'koniec obsługoi przekazników<br /> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br /><br /><br /><br /><br /><br /> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx odsługa rc5<br /><br /> If Adres = 0 Then<br /> Stop Watchdog<br /> If Command = 12 Then                                       'power załanczam odliczanie<br /> Cls<br /> Lcd &quot;załonczenie zdalne&quot;<br /><br /> Waitms 1000<br />  Start Watchdog<br />Reset Watchdog<br /> Gosub Kasowanie<br /> End If<br /><br /><br />Getrc5(adres , Command)<br />Command = Command And &amp;B01111111<br /><br />If Command = 13 Then<br /><br />For Pomocnicza2 = 1 To 5000<br /><br />Pokuj_on = Wart_nap<br />Pokuj_of = Pokuj_on + 2<br /><br />Cls<br />Locate 1 , 1<br />Lcd &quot;PROGRAMOWANIE&quot;<br />Lowerline<br />Lcd &quot;zal. przy:&quot; ; Pokuj_on ; Chr(1) ; &quot;C   &quot;<br />Locate 2 , 1<br /><br />Command = 0<br /><br />Getrc5(adres , Command)<br />Command = Command And &amp;B01111111<br />If Command = 13 Then<br />'Getrc5(adres , Command)<br />Waitms 100<br />'Cls<br />                                      'wchodze w programowanie<br />Lcd &quot;programowanie    &quot;<br />Waitms 1000<br />'Cls<br />End If<br />'End If<br /><br /> If Command = 32 Then<br />'Cls<br />Licz = Licz + 1                                             'wchodze w p+<br />Lcd &quot;zw. temp-&quot; ; Pokuj_on ; Chr(1) ; &quot;C   &quot;<br />Waitms 1000<br />'Cls<br /> End If<br /><br /><br /> If Command = 33 Then<br />'Cls<br />                                      'wchodze p-<br />Licz = Licz - 1                                             'wchodze w p+<br />Lcd &quot;zmn. temp-&quot; ; Pokuj_on ; Chr(1) ; &quot;C   &quot;<br />Waitms 1000<br />'Cls<br /> End If<br /><br /><br /><br /><br /> If Command = 12 Then                                       'zapamiętuje zmiany<br />' Cls<br /><br />Pokuj_on = Wart_nap<br />Pokuj_of = Pokuj_on + 2<br /> Lcd &quot;    zapamietuje    &quot;<br /> Waitms 1000<br /> Writeeeprom Licz , 5<br /><br /> Cls<br /> 'Reset Watchdog<br /> Start Watchdog<br />Reset Watchdog<br /><br /> Goto Koniecrc<br /> End If<br /><br /><br /><br />Next Pomocnicza2<br />Start Watchdog<br />Reset Watchdog<br /><br />End If<br /><br />End If<br /><br /><br /><br /><br /> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br /><br /><br /><br /><br /><br /><br />Koniecrc:<br /><br /><br /><br /><br /><br />Loop<br />  Loop<br /><br /><br /><br />Kasowanie:<br />Reset Watchdog<br />If Kasownik = 1 Then<br />Kasownik = 0<br />Goto Ra<br />End If<br />Kasownik = 1<br />Pomocnicza = 0<br />Ra:<br /><br />Return<br /> 'end sub</div><br />schemat połączenia programatora z procekiem zgodyny z <br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />http://obrazki.elektroda.pl/7162847700_1324675664.png<br /></div><br /><br />próbowałem programować zgodnie z waszymi sugestiami zmieniajc teaktowanie oscylatora z 1 MHz na 8MHz, niestety to nie przyniosło rezultatu<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3705">walus4</a> — 27 mar 2014, o 15:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[OdeOn]]></name></author>
<updated>2014-03-26T21:31:31+01:00</updated>
<published>2014-03-26T21:31:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75978#p75978</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75978#p75978"/>
<title type="html"><![CDATA[Re: Atmega8 problem z programowaniem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75978#p75978"><![CDATA[
<div class="quotetitle">walus4 napisał(a):</div><div class="quotecontent"><br />na innym procesorze on działa lecz na tym nowym nie. czy ktoś mógłby mnie naprowadzić na przyczynę tego stanu rzeczy bo ja już nie mam pomysłu<br /></div><br />Podejrzewam że prędkość programowania nie odpowiednia do nowego procesora ustawionego na 1 Mhz. Więc na usbasp zworka SLOW SCK lub programowo zmniejszyć prędkość lub najpierw przestawić z 1 Mhz na 8 Mhz.<br />ale to tylko domysły.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1407">OdeOn</a> — 26 mar 2014, o 21:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Alltronik]]></name></author>
<updated>2014-03-26T18:38:59+01:00</updated>
<published>2014-03-26T18:38:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75893#p75893</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75893#p75893"/>
<title type="html"><![CDATA[Re: Atmega8 problem z programowaniem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75893#p75893"><![CDATA[
Brak kodu oraz brak schematu nie wiem co mam Ci sprawdzic uzupełnij post.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=985">Alltronik</a> — 26 mar 2014, o 18:38</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[walus4]]></name></author>
<updated>2014-03-26T18:17:51+01:00</updated>
<published>2014-03-26T18:17:51+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75884#p75884</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75884#p75884"/>
<title type="html"><![CDATA[Atmega8 problem z programowaniem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6508&amp;p=75884#p75884"><![CDATA[
Witam<br /><br />mam problem z zaprogramowaniem w/w procesora otóż mam programator USBasp nowy procesor Atmega8<br />co robię:<br />Mianowicie mam cały układ połączony według schematu dostępnego na tej stronie wszystkie przejścia są (sprawdzone miernikiem nie jeden raz) od strony softowej to zrobiłem wszystko tak jak na filmiku zamieszonym na YT z tej strony otóż mam program bascom a w nim skonfigurowałem zewnętrzny programator w postaci MKVcalculator. MKVcalkulator wykrywa procesor identyfikuje go a po skompilowaniu codu i wysłany go pisze że wgrał wszystko do procesora lecz przy sprawdzeniu nic się nie dzieje mam czarny pasek na wyświetlaczu.zaznaczam że cod jest ok bo na innym procesorze on działa lecz na tym nowym nie. czy ktoś mógłby mnie naprowadzić na przyczynę tego stanu rzeczy bo ja już nie mam pomysłu<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3705">walus4</a> — 26 mar 2014, o 18:17</p><hr />
]]></content>
</entry>
</feed>