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

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

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=18968&amp;mode</id>
<entry>
<author><name><![CDATA[robi99956]]></name></author>
<updated>2017-08-09T19:54:54+01:00</updated>
<published>2017-08-09T19:54:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193246#p193246</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193246#p193246"/>
<title type="html"><![CDATA[Re: Wyświetlacz ili9341]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193246#p193246"><![CDATA[
Wiesz co, tak przejrzałem Twoje funkcje do komunikacji i wyglądają troszkę dziwnie jak dla mnie. Przede wszystkim nie widzę tam magistrali 16-bitowej, chyba, że to jakieś czary w C których nie znam. Weź zobacz na moich:<br />[syntax=c]void tft_write_cmd( uint16_t cmd )<br />{<br />TFT_RS_LOW;<br />TFT_CS_LOW;<br />TFT_MSB = (cmd &gt;&gt; 8);<br />TFT_LSB = cmd &amp; 0xff;<br />TFT_WR_LOW;<br />TFT_WR_HI;<br />TFT_CS_HI;<br />}<br /><br />// wysłanie danych do wyświetlacza<br />void tft_write_data( uint16_t data )<br />{<br />TFT_RS_HI;<br />TFT_CS_LOW;<br />TFT_MSB = (data &gt;&gt; 8);<br />TFT_LSB = data &amp; 0xff;<br />TFT_WR_LOW;<br />TFT_WR_HI;<br />TFT_CS_HI;<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4938">robi99956</a> — 9 sie 2017, o 19:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gnyskie]]></name></author>
<updated>2017-08-09T18:18:52+01:00</updated>
<published>2017-08-09T18:18:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193245#p193245</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193245#p193245"/>
<title type="html"><![CDATA[Re: Wyświetlacz ili9341]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193245#p193245"><![CDATA[
Niestety nic <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" />  Nie mam już żadnego pomysłu jak zrobić żeby było dobrze<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=17565">Gnyskie</a> — 9 sie 2017, o 18:18</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[robi99956]]></name></author>
<updated>2017-08-09T17:11:20+01:00</updated>
<published>2017-08-09T17:11:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193243#p193243</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193243#p193243"/>
<title type="html"><![CDATA[Re: Wyświetlacz ili9341]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193243#p193243"><![CDATA[
Mam bibliotekę do wyświetlacza na tym samym PCB, sterowniki mogą być swoimi odpowiednikami, albo przynajmniej trochę zbliżone. W każdym razie nie zaszkodzi Ci wypróbować moją sekwencję inicjalizacyjną <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br />[syntax=c]TFT_RST_HI;<br />_delay_ms(5);<br />TFT_RST_LOW;<br />_delay_ms(10);<br />TFT_RST_HI;<br />TFT_CS_HI;<br />TFT_RD_HI;<br />TFT_WR_HI;<br />_delay_ms(20);<br /><br />  //  VENDOR<br />  tft_write_cmd_data(0x0046,0x00A4);<br />  tft_write_cmd_data(0x0047,0x0053);<br />  tft_write_cmd_data(0x0048,0x0000);<br />  tft_write_cmd_data(0x0049,0x0044);<br />  tft_write_cmd_data(0x004a,0x0004);<br />  tft_write_cmd_data(0x004b,0x0067);<br />  tft_write_cmd_data(0x004c,0x0033);<br />  tft_write_cmd_data(0x004d,0x0077);<br />  tft_write_cmd_data(0x004e,0x0012);<br />  tft_write_cmd_data(0x004f,0x004C);<br />  tft_write_cmd_data(0x0050,0x0046);<br />  tft_write_cmd_data(0x0051,0x0044);<br /><br />  //240x320 window setting<br />  tft_write_cmd_data(0x0002,0x0000); // Column address start2<br />  tft_write_cmd_data(0x0003,0x0000); // Column address start1<br />  tft_write_cmd_data(0x0004,0x0000); // Column address end2<br />  tft_write_cmd_data(0x0005,0x00ef); // Column address end1<br />  tft_write_cmd_data(0x0006,0x0000); // Row address start2<br />  tft_write_cmd_data(0x0007,0x0000); // Row address start1<br />  tft_write_cmd_data(0x0008,0x0001); // Row address end2<br />  tft_write_cmd_data(0x0009,0x003f); // Row address end1<br /><br />  // Display Setting<br />  tft_write_cmd_data(0x0001,0x0006); // IDMON=0, INVON=1, NORON=1, PTLON=0<br />  tft_write_cmd_data(0x0016,0x00C8); // MY=0, MX=0, MV=0, ML=1, BGR=0, TEON=0   0048<br />  tft_write_cmd_data(0x0023,0x0095); // N_DC=1001 0101<br />  tft_write_cmd_data(0x0024,0x0095); // PI_DC=1001 0101<br />  tft_write_cmd_data(0x0025,0x00FF); // I_DC=1111 1111<br /><br />  tft_write_cmd_data(0x0027,0x0002); // N_BP=0000 0010<br />  tft_write_cmd_data(0x0028,0x0002); // N_FP=0000 0010<br />  tft_write_cmd_data(0x0029,0x0002); // PI_BP=0000 0010<br />  tft_write_cmd_data(0x002a,0x0002); // PI_FP=0000 0010<br />  tft_write_cmd_data(0x002C,0x0002); // I_BP=0000 0010<br />  tft_write_cmd_data(0x002d,0x0002); // I_FP=0000 0010<br /><br />  tft_write_cmd_data(0x003a,0x0001); // N_RTN=0000, N_NW=001    0001<br />  tft_write_cmd_data(0x003b,0x0000); // P_RTN=0000, P_NW=001<br />  tft_write_cmd_data(0x003c,0x00f0); // I_RTN=1111, I_NW=000<br />  tft_write_cmd_data(0x003d,0x0000); // DIV=00<br />  _delay_ms(5);<br />  tft_write_cmd_data(0x0035,0x0038); // EQS=38h<br />  tft_write_cmd_data(0x0036,0x0078); // EQP=78h<br />  tft_write_cmd_data(0x003E,0x0038); // SON=38h<br />  tft_write_cmd_data(0x0040,0x000F); // GDON=0Fh<br />  tft_write_cmd_data(0x0041,0x00F0); // GDOFF<br /><br />  // Power Supply Setting<br />  tft_write_cmd_data(0x0019,0x0049); // CADJ=0100, CUADJ=100, OSD_EN=1 ,60Hz<br />  tft_write_cmd_data(0x0093,0x000F); // RADJ=1111, 100%<br />  _delay_ms(5);<br />  tft_write_cmd_data(0x0020,0x0040); // BT=0100<br />  tft_write_cmd_data(0x001D,0x0007); // VC1=111   0007<br />  tft_write_cmd_data(0x001E,0x0000); // VC3=000<br />  tft_write_cmd_data(0x001F,0x0004); // VRH=0011<br /><br />  //VCOM SETTING<br />  tft_write_cmd_data(0x0044,0x004D); // VCM=101 0000  4D<br />  tft_write_cmd_data(0x0045,0x000E); // VDV=1 0001   0011<br />  _delay_ms(5);<br />  tft_write_cmd_data(0x001C,0x0004); // AP=100<br />  _delay_ms(5);<br /><br />  tft_write_cmd_data(0x001B,0x0018); // GASENB=0, PON=0, DK=1, XDK=0, VLCD_TRI=0, STB=0<br />  _delay_ms(5);<br />  tft_write_cmd_data(0x001B,0x0010); // GASENB=0, PON=1, DK=0, XDK=0, VLCD_TRI=0, STB=0<br />  _delay_ms(5);<br />  tft_write_cmd_data(0x0043,0x0080); //set VCOMG=1<br />  _delay_ms(5);<br /><br />  // Display ON Setting<br />  tft_write_cmd_data(0x0090,0x007F); // SAP=0111 1111<br />  tft_write_cmd_data(0x0026,0x0004); //GON=0, DTE=0, D=01<br />  _delay_ms(5);<br />  tft_write_cmd_data(0x0026,0x0024); //GON=1, DTE=0, D=01<br />  tft_write_cmd_data(0x0026,0x002C); //GON=1, DTE=0, D=11<br />  _delay_ms(5);<br />  tft_write_cmd_data(0x0026,0x003C); //GON=1, DTE=1, D=11<br /><br />  // INTERNAL REGISTER SETTING<br />  tft_write_cmd_data(0x0057,0x0002); // TEST_Mode=1: into TEST mode<br />  tft_write_cmd_data(0x0095,0x0001); // SET DISPLAY CLOCK AND PUMPING CLOCK TO SYNCHRONIZE<br />  tft_write_cmd_data(0x0057,0x0000); // TEST_Mode=0: exit TEST mode<br />  tft_write_cmd_data(0x0021,0x0000);<br />  tft_write_cmd(0x0022);[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4938">robi99956</a> — 9 sie 2017, o 17:11</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gnyskie]]></name></author>
<updated>2017-08-09T16:54:43+01:00</updated>
<published>2017-08-09T16:54:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193241#p193241</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193241#p193241"/>
<title type="html"><![CDATA[Wyświetlacz ili9341]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18968&amp;p=193241#p193241"><![CDATA[
Jestem nową osobą na forum więc jak coś źle wstawię lub napiszę proszę o wybaczenie. <br />Mój problem zaczął się od wyświetlacza i w sumie na nim się kończy a problem polega na tym że nie potrafię zainicjalizować wyświetlacza ze sterownikiem ili9341(przynajmniej tak mówił chińczyk) lub po prostu wyświetlacz jest uszkodzony. Więc jeżeli ktoś miał do czynienia z takim czymś czy mógł by mi poradzić co źle robię. Przesyłam też cały kod który wykonałem bo może w nim jest jeden wielki BŁĄD.  <br /><br /><a href="https://obrazkiforum.atnel.pl/17565/27138b26a9d7afa9339fbcdf545fccba.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/17565/27138b26a9d7afa9339fbcdf545fccba.jpg" alt="Obrazek" /></a>]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=17565">Gnyskie</a> — 9 sie 2017, o 16:54</p><hr />
]]></content>
</entry>
</feed>