<?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>MPC5xxx中的主题 Re: DSPI</title>
    <link>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1208982#M17031</link>
    <description>&lt;P&gt;Hi,&lt;SPAN&gt;&amp;nbsp;davidtosenovjan:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I refer to your advice to config DSPI(CONT = 1).Now,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the PCS signal remains asserted for the duration of the two transfers.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;;But SCK signal inserted Tcsc and Tasc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信图片_20210108214055.jpg" style="width: 307px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134341i248084B3D5179539/image-dimensions/307x154?v=v2" width="307" height="154" role="button" title="微信图片_20210108214055.jpg" alt="微信图片_20210108214055.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信图片_20210108214107.jpg" style="width: 256px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134342i2428F4BFAC7428BB/image-dimensions/256x134?v=v2" width="256" height="134" role="button" title="微信图片_20210108214107.jpg" alt="微信图片_20210108214107.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 14:02:37 GMT</pubDate>
    <dc:creator>zhhq123</dc:creator>
    <dc:date>2021-01-08T14:02:37Z</dc:date>
    <item>
      <title>DSPI</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1200857#M16878</link>
      <description>&lt;P&gt;How to send 32-bit data when DSPI is in master mode?Are there any example code or configuration advice?(I want to use MPC5634 to drive TLE82453)&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 03:27:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1200857#M16878</guid>
      <dc:creator>zhhq123</dc:creator>
      <dc:date>2020-12-17T03:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1201205#M16884</link>
      <description>&lt;P&gt;Use two 16-bit frames. First PUSH command will be configured with CONT=1, second with CONT=0. This way CS stays asserted between 16-bit frames and it acts as one 32-bit data frame.&lt;/P&gt;
&lt;P&gt;I can offer you an example code showing SPI communication with external flash memory S25FL129P. Used device was MPC5676R that is MCU similar to MPC5634M having compatible DSPI module:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-335461" target="_blank"&gt;https://community.nxp.com/docs/DOC-335461&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 11:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1201205#M16884</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-12-17T11:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1201581#M16890</link>
      <description>&lt;P&gt;Okay,Thanks for your reply&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 05:26:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1201581#M16890</guid>
      <dc:creator>zhhq123</dc:creator>
      <dc:date>2020-12-18T05:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1201826#M16899</link>
      <description>&lt;P&gt;Hi davidtosenovjan:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I refer to the example you provided to write the following code,but it didn't work.I have no idea to modify.Are there any advice you can provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void initDSPI_B(void) {&lt;BR /&gt;DSPI_B.MCR.R = 0x80010001; /* Configure DSPI_B as Master */&lt;BR /&gt;DSPI_B.CTAR[0].R = 0x700C0021; /* Configure CTAR0 */&lt;BR /&gt;DSPI_B.MCR.B.HALT = 0x0; /* Exit HALT mode: go from STOPPED to RUNNING state*/&lt;/P&gt;&lt;P&gt;SIU.PCR[102].R = 0x060C; /* MPC555x: Config pad as DSPI_B SCK Output */&lt;BR /&gt;SIU.PCR[103].R = 0x050C; /* MPC555x: Config pad as DSPI_B SIN input */&lt;BR /&gt;SIU.PCR[104].R = 0x060C; /* MPC555x: Config pad as DSPI_B SOUT output*/&lt;BR /&gt;SIU.PCR[105].R = 0x060C; /* MPC555x: Config pad as GPIO high output SPI_CS */&lt;/P&gt;&lt;P&gt;SIU.PCR[109].R = 0x0300; /* MPC555x: Config pad as GPIO high output RESET_MCU*/&lt;BR /&gt;SIU.PCR[106].R = 0x0300; /* MPC555x: Config pad as GPIO high output ENABLE_MCU*/&lt;BR /&gt;SIU.PCR[110].R = 0x0100; /* MPC555x: Config pad as GPIO Input FAULT_MCU*/&lt;/P&gt;&lt;P&gt;SIU.GPDO[106].B.PDO = 1;&lt;BR /&gt;SIU.GPDO[109].B.PDO = 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;initSysclk();&lt;BR /&gt;initDSPI_B();&lt;BR /&gt;xcptn_xmpl (); /* Configure and Enable Interrupts */&lt;BR /&gt;CAN_A_init();&lt;BR /&gt;init_PIT_RTI();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DSPI_B.SR.R= 0x10000000;&lt;BR /&gt;DSPI_B.PUSHR.R = 0x80018300;//78020000;&lt;BR /&gt;while(!(DSPI_B.SR.B.RFDF)){}&lt;BR /&gt;dummy_var = (uint8_t)(DSPI_B.POPR.R);&lt;BR /&gt;DSPI_B.SR.R = 0x80020000;&lt;BR /&gt;DSPI_B.PUSHR.R = 0x08011040;&lt;BR /&gt;while(!(DSPI_B.SR.B.RFDF)){}&lt;BR /&gt;dummy_var = (uint8_t)(DSPI_B.POPR.R);&lt;BR /&gt;DSPI_B.SR.R = 0x80020000;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DSPI_B.PUSHR.R = 0x8001A860;&amp;nbsp;&lt;BR /&gt;while(!(DSPI_B.SR.B.RFDF)){}&lt;BR /&gt;dummy_var = (uint8_t)(DSPI_B.POPR.R);&lt;BR /&gt;DSPI_B.PUSHR.R = 0x080100FA; //1KHz&lt;BR /&gt;while(!(DSPI_B.SR.B.RFDF)){}&lt;BR /&gt;dummy_var = (uint8_t)(DSPI_B.POPR.R);&lt;BR /&gt;DSPI_B.SR.R = 0x80020000;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DSPI_B.PUSHR.R = 0x80009080; //setpoint&lt;BR /&gt;while(!(DSPI_B.SR.B.RFDF)){}&lt;BR /&gt;dummy_var = (uint8_t)(DSPI_B.POPR.R);&lt;BR /&gt;DSPI_B.PUSHR.R = 0x080003FF;&lt;BR /&gt;while(!(DSPI_B.SR.B.RFDF)){}&lt;BR /&gt;dummy_var = (uint8_t)(DSPI_B.POPR.R);&lt;BR /&gt;DSPI_B.SR.R = 0x80020000;&lt;BR /&gt;/* Loop forever */&lt;BR /&gt;for(;;)&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 13:26:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1201826#M16899</guid>
      <dc:creator>zhhq123</dc:creator>
      <dc:date>2020-12-18T13:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1208982#M17031</link>
      <description>&lt;P&gt;Hi,&lt;SPAN&gt;&amp;nbsp;davidtosenovjan:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I refer to your advice to config DSPI(CONT = 1).Now,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the PCS signal remains asserted for the duration of the two transfers.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;;But SCK signal inserted Tcsc and Tasc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信图片_20210108214055.jpg" style="width: 307px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134341i248084B3D5179539/image-dimensions/307x154?v=v2" width="307" height="154" role="button" title="微信图片_20210108214055.jpg" alt="微信图片_20210108214055.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信图片_20210108214107.jpg" style="width: 256px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134342i2428F4BFAC7428BB/image-dimensions/256x134?v=v2" width="256" height="134" role="button" title="微信图片_20210108214107.jpg" alt="微信图片_20210108214107.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 14:02:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI/m-p/1208982#M17031</guid>
      <dc:creator>zhhq123</dc:creator>
      <dc:date>2021-01-08T14:02:37Z</dc:date>
    </item>
  </channel>
</rss>

