<?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>topic Re: Using FlexIO on FRDMKL82Z as LCD display interface in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Using-FlexIO-on-FRDMKL82Z-as-LCD-display-interface/m-p/716202#M348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&amp;nbsp;&lt;/STRONG&gt;we finally managed to work the FlexIO.&amp;nbsp;We&amp;nbsp;haven't find out&amp;nbsp;exactly what was we were doing wrong. I believe it's that we weren't filling the SHIFTBUF7 so the status flag wasn't triggering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi there, we have been investigating and&amp;nbsp;we can't use&amp;nbsp;16 flexio consecutive pins for other reasons we'll use 8 bits interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, we have been trying to configure a simple 1-beat writing but with no result.&lt;/P&gt;&lt;P&gt;We configure the timer as the Reference Manual (&lt;A class="link-titled" href="https://www.nxp.com/docs/en/reference-manual/KL82P121M72SF0RM.pdf" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank" title="https://www.nxp.com/docs/en/reference-manual/KL82P121M72SF0RM.pdf"&gt;https://www.nxp.com/docs/en/reference-manual/KL82P121M72SF0RM.pdf&lt;/A&gt;&amp;nbsp;) specifies (page&amp;nbsp;1537), with a little modification for 8 bits interface.&amp;nbsp; Configured like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt; flexio_config_t fxioUserConfig;
 FLEXIO_GetDefaultConfig(&amp;amp;fxioUserConfig);
 fxioUserConfig.enableInDebug = false;
 FLEXIO_Init(FLEXIO0, &amp;amp;fxioUserConfig);
 FLEXIO0-&amp;gt;SHIFTCFG[0] = 0x00070100;
 FLEXIO0-&amp;gt;SHIFTCTL[0] = 0x00030002;
 FLEXIO0-&amp;gt;TIMCMP[0] = 0x00000101;
 FLEXIO0-&amp;gt;TIMCFG[0] = 0x00002200;
 FLEXIO0-&amp;gt;TIMCTL[0] = 0x01C31081;&lt;/PRE&gt;&lt;P&gt;(the TIMOD is 8 bit counter mode and the SMOD is transmit mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we modify the SHIFTBUF like this:&lt;/P&gt;&lt;PRE&gt;FLEXIO0-&amp;gt;SHIFTBUF[0] = 0xC0CAC01A;&lt;/PRE&gt;&lt;P&gt;But we see no activity on the flexio pin (in this example is the 0, and correctly configured in pin_mux.c).&lt;/P&gt;&lt;P&gt;We don't understand the behaviour of&amp;nbsp;timer flag and the Status Shifter Flag (SSF).&lt;/P&gt;&lt;P&gt;The SSF raises to 1 when the flexio is configured, as it is explained in the reference manual, but then when we write new data or we use the function FLEXIO_CleartStatusShifetFlag, it does not clear the flag when it should (?). We're using Freertos, can anything to do with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried the flexio_pwm example and it worked well. We're kinda lost now and lacking ideas. Any help would be very apreciated. Thanks &lt;IMG alt="Smiley Happy" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="https://community.nxp.com/i/smilies/16x16_smiley-happy.png" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martí.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 14:01:43 GMT</pubDate>
    <dc:creator>martir</dc:creator>
    <dc:date>2020-11-02T14:01:43Z</dc:date>
    <item>
      <title>Using FlexIO on FRDMKL82Z as LCD display interface</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Using-FlexIO-on-FRDMKL82Z-as-LCD-display-interface/m-p/716201#M347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, I'm working on en embedded project were we would like to use the FlexIO to Drive a 8080 16 Bit Interface LCD Module, I've been able to set the configuration parameters&amp;nbsp;on the FlexIO following this document and adapting it to 16 bit configuration instead of 8 bits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://cache.nxp.com/docs/en/application-note/AN5313.pdf" title="https://cache.nxp.com/docs/en/application-note/AN5313.pdf"&gt;https://cache.nxp.com/docs/en/application-note/AN5313.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to start testing it but I really don't know how to manage the FlexIO and I haven't been able to find any example using this kind of configuration, I would be very grateful if anyone has any example code or something to use as walkthrough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduard&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:08:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Using-FlexIO-on-FRDMKL82Z-as-LCD-display-interface/m-p/716201#M347</guid>
      <dc:creator>eduardabelló</dc:creator>
      <dc:date>2017-10-24T11:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using FlexIO on FRDMKL82Z as LCD display interface</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Using-FlexIO-on-FRDMKL82Z-as-LCD-display-interface/m-p/716202#M348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&amp;nbsp;&lt;/STRONG&gt;we finally managed to work the FlexIO.&amp;nbsp;We&amp;nbsp;haven't find out&amp;nbsp;exactly what was we were doing wrong. I believe it's that we weren't filling the SHIFTBUF7 so the status flag wasn't triggering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi there, we have been investigating and&amp;nbsp;we can't use&amp;nbsp;16 flexio consecutive pins for other reasons we'll use 8 bits interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, we have been trying to configure a simple 1-beat writing but with no result.&lt;/P&gt;&lt;P&gt;We configure the timer as the Reference Manual (&lt;A class="link-titled" href="https://www.nxp.com/docs/en/reference-manual/KL82P121M72SF0RM.pdf" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank" title="https://www.nxp.com/docs/en/reference-manual/KL82P121M72SF0RM.pdf"&gt;https://www.nxp.com/docs/en/reference-manual/KL82P121M72SF0RM.pdf&lt;/A&gt;&amp;nbsp;) specifies (page&amp;nbsp;1537), with a little modification for 8 bits interface.&amp;nbsp; Configured like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt; flexio_config_t fxioUserConfig;
 FLEXIO_GetDefaultConfig(&amp;amp;fxioUserConfig);
 fxioUserConfig.enableInDebug = false;
 FLEXIO_Init(FLEXIO0, &amp;amp;fxioUserConfig);
 FLEXIO0-&amp;gt;SHIFTCFG[0] = 0x00070100;
 FLEXIO0-&amp;gt;SHIFTCTL[0] = 0x00030002;
 FLEXIO0-&amp;gt;TIMCMP[0] = 0x00000101;
 FLEXIO0-&amp;gt;TIMCFG[0] = 0x00002200;
 FLEXIO0-&amp;gt;TIMCTL[0] = 0x01C31081;&lt;/PRE&gt;&lt;P&gt;(the TIMOD is 8 bit counter mode and the SMOD is transmit mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we modify the SHIFTBUF like this:&lt;/P&gt;&lt;PRE&gt;FLEXIO0-&amp;gt;SHIFTBUF[0] = 0xC0CAC01A;&lt;/PRE&gt;&lt;P&gt;But we see no activity on the flexio pin (in this example is the 0, and correctly configured in pin_mux.c).&lt;/P&gt;&lt;P&gt;We don't understand the behaviour of&amp;nbsp;timer flag and the Status Shifter Flag (SSF).&lt;/P&gt;&lt;P&gt;The SSF raises to 1 when the flexio is configured, as it is explained in the reference manual, but then when we write new data or we use the function FLEXIO_CleartStatusShifetFlag, it does not clear the flag when it should (?). We're using Freertos, can anything to do with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried the flexio_pwm example and it worked well. We're kinda lost now and lacking ideas. Any help would be very apreciated. Thanks &lt;IMG alt="Smiley Happy" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="https://community.nxp.com/i/smilies/16x16_smiley-happy.png" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martí.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:01:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Using-FlexIO-on-FRDMKL82Z-as-LCD-display-interface/m-p/716202#M348</guid>
      <dc:creator>martir</dc:creator>
      <dc:date>2020-11-02T14:01:43Z</dc:date>
    </item>
  </channel>
</rss>

