<?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 DSPI Configuration to access external flash in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/DSPI-Configuration-to-access-external-flash/m-p/893237#M13194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; My clarifications query regarding accessing external flash in MPC5777C. I had reffered&amp;nbsp;MPC5676R accessing with spansion flash dspiF129C. ineed to do similar way with another flash (cypress SPI NOR flash)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration mentioned below i used as master&amp;nbsp; and i understand&amp;nbsp; following configuration for 8 bit read write with frame size 7 with some slow configuration.&lt;/P&gt;&lt;P&gt;DSPI_B.CTAR[1].R = DSPI_CTAR_FMSZ(0x7) |&lt;BR /&gt; DSPI_CTAR_PCSSCK(4) |&lt;BR /&gt; DSPI_CTAR_DT(4) |&lt;BR /&gt; DSPI_CTAR_ASC(4) |&lt;BR /&gt; DSPI_CTAR_CSSCK(4) |&lt;BR /&gt; DSPI_CTAR_PASC_7CLK |&lt;BR /&gt; DSPI_CTAR_PDT_7CLK |&lt;BR /&gt; DSPI_CTAR_PBR_7CLK |&lt;BR /&gt; DSPI_CTAR_BR(0x8) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What needs to be done (register settings) if there should be an optimum speed&amp;nbsp; is achieved .&lt;/P&gt;&lt;P&gt;2.InCase of 16 bit read/wtite is this configuration fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DSPI_B.CTAR[1].R = DSPI_CTAR_FMSZ(0xF) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PCSSCK(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_DT(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_ASC(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_CSSCK(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PASC_7CLK |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PDT_7CLK |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PBR_7CLK |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_BR(0x10) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. How can be the write and read macros&amp;nbsp; be modified best to do a16 bit read and write&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define PUSH(n) DSPI_B.PUSHR.R = continuous_command_for_PUSH(n) &lt;BR /&gt; &lt;BR /&gt;#define POP(n) n = (uint8_t) (DSPI_B.POPR.R); \&lt;BR /&gt; DSPI_B.SR.R = DSPI_SR_RFDF&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one guide me on the above mentioned queries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance,&lt;/P&gt;&lt;P&gt;Vignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Apr 2019 12:04:43 GMT</pubDate>
    <dc:creator>vignesh_v</dc:creator>
    <dc:date>2019-04-27T12:04:43Z</dc:date>
    <item>
      <title>DSPI Configuration to access external flash</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI-Configuration-to-access-external-flash/m-p/893237#M13194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; My clarifications query regarding accessing external flash in MPC5777C. I had reffered&amp;nbsp;MPC5676R accessing with spansion flash dspiF129C. ineed to do similar way with another flash (cypress SPI NOR flash)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration mentioned below i used as master&amp;nbsp; and i understand&amp;nbsp; following configuration for 8 bit read write with frame size 7 with some slow configuration.&lt;/P&gt;&lt;P&gt;DSPI_B.CTAR[1].R = DSPI_CTAR_FMSZ(0x7) |&lt;BR /&gt; DSPI_CTAR_PCSSCK(4) |&lt;BR /&gt; DSPI_CTAR_DT(4) |&lt;BR /&gt; DSPI_CTAR_ASC(4) |&lt;BR /&gt; DSPI_CTAR_CSSCK(4) |&lt;BR /&gt; DSPI_CTAR_PASC_7CLK |&lt;BR /&gt; DSPI_CTAR_PDT_7CLK |&lt;BR /&gt; DSPI_CTAR_PBR_7CLK |&lt;BR /&gt; DSPI_CTAR_BR(0x8) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What needs to be done (register settings) if there should be an optimum speed&amp;nbsp; is achieved .&lt;/P&gt;&lt;P&gt;2.InCase of 16 bit read/wtite is this configuration fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DSPI_B.CTAR[1].R = DSPI_CTAR_FMSZ(0xF) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PCSSCK(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_DT(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_ASC(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_CSSCK(4) |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PASC_7CLK |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PDT_7CLK |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_PBR_7CLK |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DSPI_CTAR_BR(0x10) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. How can be the write and read macros&amp;nbsp; be modified best to do a16 bit read and write&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define PUSH(n) DSPI_B.PUSHR.R = continuous_command_for_PUSH(n) &lt;BR /&gt; &lt;BR /&gt;#define POP(n) n = (uint8_t) (DSPI_B.POPR.R); \&lt;BR /&gt; DSPI_B.SR.R = DSPI_SR_RFDF&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one guide me on the above mentioned queries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance,&lt;/P&gt;&lt;P&gt;Vignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2019 12:04:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI-Configuration-to-access-external-flash/m-p/893237#M13194</guid>
      <dc:creator>vignesh_v</dc:creator>
      <dc:date>2019-04-27T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI Configuration to access external flash</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI-Configuration-to-access-external-flash/m-p/893238#M13195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I guess it refers to example I have shared here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-335461"&gt;Example MPC5676R DSPI-ext_SPI_memory-S25FL129P CW210&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) It does not deal with timing at all, it just sets configuration as slow as possible (as SPI is synchronous communication where master drives the clock, it is possible). For maximum throughput, please follow timing defined in the particular memory datasheet to find out proper timing values for CTAR configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Yes, it is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Change variable type, otherwise I guess it is the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define POP(n) n = (uint16_t) (DSPI_B.POPR.R); \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DSPI_B.SR.R = DSPI_SR_RFDF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 13:02:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI-Configuration-to-access-external-flash/m-p/893238#M13195</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2019-04-29T13:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI Configuration to access external flash</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI-Configuration-to-access-external-flash/m-p/893239#M13196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks. Yes i was referring to the same. I shall look into it&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2019 14:59:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI-Configuration-to-access-external-flash/m-p/893239#M13196</guid>
      <dc:creator>vignesh_v</dc:creator>
      <dc:date>2019-05-05T14:59:34Z</dc:date>
    </item>
  </channel>
</rss>

