<?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: SPI communication issue in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1281814#M18320</link>
    <description>&lt;P&gt;Why you don't use for every device separete chip select line as it is usual? Every DSPI module offers 6 CS lines, there is no need to use GPIO lines as it brigns useless SW overhead.&lt;/P&gt;
&lt;P&gt;To your sequence, I suppose between steps 1 and 2, you are asserting GPIO line (set to low) and between step 2 and 3, you are negating GPIO line (set to high). In the meanwhile you are sending command without any CS line asserted. is this the procedure?&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 12:04:39 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2021-05-25T12:04:39Z</dc:date>
    <item>
      <title>SPI communication issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1278701#M18260</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We are using MPC5746R microcontroller .We are using single SPI channel to communicate with 3 different devices in synchronous mode. As per our observation when we check single device at a time we are getting correct response ,but when we are trying to get data sequentially from all devices that time we are getting "0" in response from all devices.&lt;/P&gt;&lt;P&gt;For one device HW engine we used for chip selection and remaining two devices we are using different GPIO pins.&lt;/P&gt;&lt;P&gt;Kindly help us with this query.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruturaj.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 07:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1278701#M18260</guid>
      <dc:creator>RuturajKhandare</dc:creator>
      <dc:date>2021-05-19T07:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1278971#M18265</link>
      <description>&lt;P&gt;Ho, could you clarify how you have connected all 3 slaves? Also how you are accessing them. &lt;/P&gt;
&lt;P&gt;According your description I guess first is CS driven and other GPIO. Doesn't it mean you always selecting first device (plus second or third) causing erroneous data on the bus?&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 12:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1278971#M18265</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-05-19T12:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1278990#M18266</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;At a time we are selecting only one device for communication.&lt;/P&gt;&lt;P&gt;Chip device configuration :&lt;/P&gt;&lt;P&gt;Device 1 SpiEnableCs = TRUE&lt;/P&gt;&lt;P&gt;Device 2 SpiEnableCs = FALSE&lt;/P&gt;&lt;P&gt;Device 3 SpiEnableCs = FALSE&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;We are using MPC5xxx uC and configured single SPI channel for 3 different devices.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;One of the device is EEPROM (M95256-DRE) and SPI channel is configured as 'Synchronous' mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="uiOutputText"&gt;Issue :&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Before configuring the SPI channel for EEPROM, the two devices were able to successfully get the transmit / receive the data via SPI channel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;We tried testing the EEPROM independently and we were able to read / write the data from / to EEPROM successfully (Here the other two devices functionality was disabled).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;When all the 3 devices functionality is enabled, we observed the below issue :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Scneario 1 : When EEPROM alone is requested to transmit the data we are able to receive the data from EEPROM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Scneario 2 : Sequentially we are utilizing the SPI channel to get the data from EEPROM and other devices in below mentioned sequence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Step 1 : Send command to get the data from EEPROM. Here we are getting correct data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Step 2 : Send command to get the data from other devices. Here we are getting correct data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Step 3 : Send command to get the data from EEPROM . Here we are getting zero value from EEPROM but the request is transmitted successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;From the above observation we have a query that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="uiOutputText"&gt;whether EEPROM needs a dedicated SPI channel.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruturaj.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 12:39:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1278990#M18266</guid>
      <dc:creator>RuturajKhandare</dc:creator>
      <dc:date>2021-05-19T12:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication issue</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1281814#M18320</link>
      <description>&lt;P&gt;Why you don't use for every device separete chip select line as it is usual? Every DSPI module offers 6 CS lines, there is no need to use GPIO lines as it brigns useless SW overhead.&lt;/P&gt;
&lt;P&gt;To your sequence, I suppose between steps 1 and 2, you are asserting GPIO line (set to low) and between step 2 and 3, you are negating GPIO line (set to high). In the meanwhile you are sending command without any CS line asserted. is this the procedure?&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 12:04:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-communication-issue/m-p/1281814#M18320</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-05-25T12:04:39Z</dc:date>
    </item>
  </channel>
</rss>

