<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MCUXpresso General中的主题 Re: Transfer data (8 bits) to a TFT LCD</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Transfer-data-8-bits-to-a-TFT-LCD/m-p/950789#M2454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To write to D0 to D7 please make sure you:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Enable the clock using: &lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;CLOCK_EnableClock(&lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kCLOCK_PortD&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Set the pin as GPIO using: &lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;PORT_SetPinMux(PORTD, pinNum, &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kPORT_MuxAsGpio&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Initialize the pins as output with:&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #005032;"&gt;gpio_pin_config_t&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; config = {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kGPIO_DigitalOutput&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_PinInit(GPIOD, pin, &amp;amp;config);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;To write data your approach using PDOR is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2019 19:51:22 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2019-07-24T19:51:22Z</dc:date>
    <item>
      <title>Transfer data (8 bits) to a TFT LCD</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Transfer-data-8-bits-to-a-TFT-LCD/m-p/950788#M2453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;I have an application for TFT128x160, in this application I have the CS / RES / DI / WR / RD and D0 ~ D7 ports.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;I am using MK22FX512Axxx12, I need to write 8 bits on ports D0 ~ D7, what is the best way to declare and write on D0 ~ D7 (8 bits)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;***&lt;SPAN class="" title=""&gt; Attached (PDF) is the full summary&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 22:33:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Transfer-data-8-bits-to-a-TFT-LCD/m-p/950788#M2453</guid>
      <dc:creator>m_giraldi</dc:creator>
      <dc:date>2019-07-22T22:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer data (8 bits) to a TFT LCD</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Transfer-data-8-bits-to-a-TFT-LCD/m-p/950789#M2454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To write to D0 to D7 please make sure you:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Enable the clock using: &lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;CLOCK_EnableClock(&lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kCLOCK_PortD&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Set the pin as GPIO using: &lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;PORT_SetPinMux(PORTD, pinNum, &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kPORT_MuxAsGpio&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Initialize the pins as output with:&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #005032;"&gt;gpio_pin_config_t&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; config = {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style="color: #0000c0; "&gt;kGPIO_DigitalOutput&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_PinInit(GPIOD, pin, &amp;amp;config);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;To write data your approach using PDOR is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 19:51:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Transfer-data-8-bits-to-a-TFT-LCD/m-p/950789#M2454</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-24T19:51:22Z</dc:date>
    </item>
  </channel>
</rss>

