<?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: MPC5645 DSPI Interrupt Reading</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5645-DSPI-Interrupt-Reading/m-p/527411#M3533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RXCTR indicates the number of entries in the RX FIFO. The RXCTR is decremented every time the DSPI _POPR is read. It is exactly what you are doing several lines before you testing RXCTR if it is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 10:32:51 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2016-07-22T10:32:51Z</dc:date>
    <item>
      <title>MPC5645 DSPI Interrupt Reading</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5645-DSPI-Interrupt-Reading/m-p/527410#M3532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;void ISR78_DSPI0ISR(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;volatile uint32_t DSPI_SR_Value;&lt;/P&gt;&lt;P&gt;&amp;nbsp; receive_dspi_data0 = (uint16_t)DSPI_0.POPR.R;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DSPI_SR_Value = DSPI_0.SR.R;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DSPI_0.SR.R = DSPI_SR_Value | DSPI_SR_RFDF;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(DSPI_0.SR.B.RXCTR == 0x0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; receive_flag0 = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In above code I am trying to read the DSPI status register and checking RXCTR value but I never get RXCTR value greater than zero even if I have received frame. I can see the RXCTR value in JTAG debugger window but when I take value DSPI_0.SR.R in variable I cant see the RXCTR value, it is always zero in the value stored in variable.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 19:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5645-DSPI-Interrupt-Reading/m-p/527410#M3532</guid>
      <dc:creator>rehan_khan</dc:creator>
      <dc:date>2016-07-21T19:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5645 DSPI Interrupt Reading</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5645-DSPI-Interrupt-Reading/m-p/527411#M3533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RXCTR indicates the number of entries in the RX FIFO. The RXCTR is decremented every time the DSPI _POPR is read. It is exactly what you are doing several lines before you testing RXCTR if it is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 10:32:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5645-DSPI-Interrupt-Reading/m-p/527411#M3533</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2016-07-22T10:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5645 DSPI Interrupt Reading</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5645-DSPI-Interrupt-Reading/m-p/527412#M3534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best method to check DSPI SR register. Every time I read value in variable it is different. Specially for RFDF and RXCTR value. But at the same time when you look into debugger register windows The value of RFDF and RXCTR is always 1. But I am getting always zero in &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;DSPI_0.SR.R . If use &lt;SPAN&gt;DSPI_0.SR.B.RXCTR even if it is 1 in debugger register windows I always get 0 value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN&gt;please note I have disabled RX FIFO and it is in double buffer mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 10:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5645-DSPI-Interrupt-Reading/m-p/527412#M3534</guid>
      <dc:creator>rehan_khan</dc:creator>
      <dc:date>2016-07-22T10:44:17Z</dc:date>
    </item>
  </channel>
</rss>

