<?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 problem on S12ZVC in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864438#M16205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Hi Edward,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;I'm sorry, you're definitely right; The correct value for CPHA is 1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Moreover transfer width is&amp;nbsp; also a problem; thanks for pointing me out that.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;I tried to overcome it by setting 16 bit transfers (&lt;SPAN&gt;SPI1CR2_XFRW = 1&lt;/SPAN&gt;) but it didn't work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Now I'm&amp;nbsp;trying to&amp;nbsp;drive&amp;nbsp;the CS by code. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Is there any particular configuration I have to use for the GPIO used as CS ? (pull-up/pull-down/open-drain ?).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Thanks so much for all your usefull help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Alberto&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2019 17:55:35 GMT</pubDate>
    <dc:creator>catonia</dc:creator>
    <dc:date>2019-04-05T17:55:35Z</dc:date>
    <item>
      <title>SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864428#M16195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" style="color: #000000; background-color: rgba(255, 0, 0, 0.2);"&gt;Hi&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;I'm trying to use the SPI chip in the evaluation board to communicate with an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #000000; background-color: rgba(255, 0, 0, 0.2);"&gt;AdaFruit&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;MAX31865 (with pt1000 sensor). I tried bot SPI 0 and SPI 1 with negative results.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #c9cdff; cursor: pointer; color: #000000; font-family: 'Source Sans Pro', sans-serif; font-size: 18px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;I&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;also tried some example code with no success&lt;/SPAN&gt;&lt;BR style="color: #000000; background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;I attach the SPI Read/Write functions; can anybody p&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;oint me any evident mistake ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Does anyone have&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;the&amp;nbsp;possibility&amp;nbsp;to try those functions with other (similar) SPI sensors ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Mar 2019 16:40:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864428#M16195</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-03-17T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864429#M16196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;The question you are asking is more-less application problem than MCU oriented issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;Of course, any guy who has real experience with the device you want to communicate with will be the best contact for you if there is any specific feature which could influence a&amp;nbsp; communication.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;The problem could be if you have issue with MCU behavior or you are sure that you set everything correctly and you see something different on the bus (confirmed by picture from scope). If I connected it to your issue I would do following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;- Prepare a data what I expect to be sent to the device via SPI and what should be a response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;- If there is no communication I would check whether data line contains expected data with correct polarity and bit rate. (Oscilloscope !!!!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;- If answer is no, SPI setup is wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;- If answer is yes I would check whether I sent really correct data with correct timing to the external device to get response from it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;I do not know it will help you but I attached an example from an example pack.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;Ladislav&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 13:19:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864429#M16196</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2019-03-18T13:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864430#M16197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ladislav,&lt;/P&gt;&lt;P&gt;first of all thanks so much for your kind answer.&lt;/P&gt;&lt;P&gt;Actually I did exacly&amp;nbsp;what you suggested, in particular:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I tried to read a threshold register that should be read as 0xFF after POR;&lt;/LI&gt;&lt;LI&gt;I checked with oscilloscope and I found that Chip Select and Clock signals appear to be correctly generated from the MCU (Next week I'll have another opportunity to check with oscilloscope).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My intention, posting code here, was to check if the SPI Read/Write functions are correct since they should work&amp;nbsp;also with other SPI slaves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 21:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864430#M16197</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-03-19T21:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864431#M16198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alberto,&lt;/P&gt;&lt;P&gt;I am taking vacation and be at work on Monday. I have to put the SPI to the scope to see what it does.&lt;/P&gt;&lt;P&gt;Please confirm me that you have 25MHz busclock - plus please measure it at ECLK pin.&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 12:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864431#M16198</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2019-03-21T12:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864432#M16199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ladislav,&lt;/P&gt;&lt;P&gt;Thanks again for your (vacation) time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today I&amp;nbsp;got an Arduino Uno board, connected the Max31865 and It doesn't t work. Looks like&amp;nbsp;the problems is (also) in the sensor itself.&lt;/P&gt;&lt;P&gt;ECLK (pin 47, PT7)&amp;nbsp; shows 6,25 Mhz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2019 16:27:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864432#M16199</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-03-24T16:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864433#M16200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;6.27MHz? Really?&lt;/P&gt;&lt;P&gt;Your setup is: SPI1BR =0x07; /* baudrate 97.66 kbit/s*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I calculate SPI baudrate = (SPPR+1) * 2^(SPR+1) = 1 * 2^8 = 256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuu claim baudrate 97.66 kbit/s&amp;nbsp;&amp;nbsp; =&amp;gt; BUSCLK = 97.66*256 = 25MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiinaly, you wrote the busclk is 6.27MHz which directs me your BUSCLK is not correct.&lt;/P&gt;&lt;P&gt;I would like to suggests you to start with BUSCLK, to be sure I have correct input clock. Then, small game with SPI setup and osciloscope to see what is on the bus and finally communication protocol with external device.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 11:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864433#M16200</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2019-03-25T11:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864434#M16201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Hi Ladislav,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;and again thanks for your help.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Yes It is 6.25Mhz.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;The error is in the comment " /* baudrate 97.66 kbit/s*/ !". Sorry for confusing you.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Anyway I tried different values in SPI1BR with same result: nothing happen on the MISO pin. Also, the&amp;nbsp;MAX31865 should be compatible with (almost) any SPI speed.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;I’m searching for another SPI sensor (whatever it is) to test my Read/Write functions or maybe I’ll directly buy another Max31865 if I can’t find one.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Thanks.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Regards,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 13:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864434#M16201</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-03-28T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864435#M16202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The common error with SPI is&amp;nbsp;overlooking CPOL/CPHA requirements. You have this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;SPI1CR1_CPHA = 0; //Sampling of data occurs at even edges (2,4,6,...) of the SCK clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is what you may see under MAX31865 datasheet Table 8. Function Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;Note: CPHA bit polarity must be set to 1.&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 07:18:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864435#M16202</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-03-29T07:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864436#M16203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;thanks very much for your answer.&lt;/P&gt;&lt;P&gt;Actually that is a comment found in nxp demo software and It is in contrast with the reference manual (unless they reverse the clock polarity CPOL).&lt;/P&gt;&lt;P&gt;From S12 referece manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CPHA&lt;/P&gt;&lt;P&gt;SPI Clock Phase Bit — This bit is used to select the SPI clock format. In master mode, a change of this bit will abort a transmission in progress and force the SPI system into idle state.&lt;BR /&gt;0 Sampling of data occurs at odd edges (1,3,5,...) of the SCK clock.&lt;BR /&gt;1 Sampling of data occurs at even edges (2,4,6,...) of the SCK clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this I&amp;nbsp;suppose 0 is the correct value (Anyway I tried with 1 with no success).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Mar 2019 12:21:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864436#M16203</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-03-30T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864437#M16204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, based on S12Z RM and MAX31865 datasheet correct CPHA=1, sample at even edges (and shift out at odd edges).&lt;/P&gt;&lt;P&gt;Anyway wrong&amp;nbsp;CPHA/CPOL is dead end leading to problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI1CR1_SSOE&amp;nbsp;&amp;nbsp; = 1; //Use slave select&lt;/P&gt;&lt;P&gt;SPI1CR2_XFRW = 0;&amp;nbsp;&amp;nbsp; // 0 =&amp;gt;&amp;nbsp; 8 bit transfers according to Max31865 datasheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There two don't seem being MAX318xx compatible. Don't have to look deeper into not interesting MAX31865, but it looks like all transfers are 16bits wide. So you could use that in combination with SSOE. Or you could toggle SSOE by hand and use 8 bit trnasfers, /CS should be pulsed once per 16bit transfer, not every 8bit transfer, see timing diagrams in MAX31856 datasheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 06:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864437#M16204</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-04-02T06:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864438#M16205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Hi Edward,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;I'm sorry, you're definitely right; The correct value for CPHA is 1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Moreover transfer width is&amp;nbsp; also a problem; thanks for pointing me out that.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;I tried to overcome it by setting 16 bit transfers (&lt;SPAN&gt;SPI1CR2_XFRW = 1&lt;/SPAN&gt;) but it didn't work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Now I'm&amp;nbsp;trying to&amp;nbsp;drive&amp;nbsp;the CS by code. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Is there any particular configuration I have to use for the GPIO used as CS ? (pull-up/pull-down/open-drain ?).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Thanks so much for all your usefull help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; font-size: 18.004px; "&gt;Alberto&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #646464; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 17:55:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864438#M16205</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-04-05T17:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864439#M16206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at your code again it seems it is first time you meet SPI interface and you don't understand SPI specifics. To send&amp;nbsp;something&amp;nbsp;you need to pulse CLK N times. To receive something you again need to pulse CLK N times.&amp;nbsp;Receive can't happen without send. Your code seems expecting that read from SPI data register will transfer something from slave. No, you need to initiate transfer by writing to SPI data register, then, after transfer is complete read SPI data register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SPI_Write routine first comment for while(SPI1SR_SPTEF==0) {} is OK. But another two are wrong. You aren't waiting there for transfer complete. Transfer complete is signaled with SPIF flag!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SPI_Read. You need to read SPISR before writing SPIDR(L). Please fix. In while loop you should initiate transfer&amp;nbsp;writing&amp;nbsp;dummy value to SPIDR, then wait for SPIF, and only then read SPIDR(L) back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since SPI is double buffered you should wait for SPIF after every transfer, even for those two (or more)&amp;nbsp;bytes in SPI_Write(), else you may loose a track of what is transferred when.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2019 16:14:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864439#M16206</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-04-06T16:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864440#M16207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resending my message since it seems it got lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;Yes, it is my very first time I interface a SPI chip at this low level.&lt;/P&gt;&lt;P&gt;Anyway, thanks to your usefull suggestions I now have values read from SPI chip!&lt;/P&gt;&lt;P&gt;I still have some doubt on the Max31865 because sometimes it starts to return all zero values until power cycle; osilloscope shows the SDO line as it is shortcutted to ground; Any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for all your usefull help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2019 11:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864440#M16207</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-04-13T11:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864441#M16208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard to guess what's going on without hardware. Do you have any oscillograms? Please attach your latest&amp;nbsp;init, write and read routines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 06:51:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864441#M16208</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-04-15T06:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864442#M16209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your usefull support. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are still having problems reading temperature using the PT1000 (Max31865). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore We have two different (strange) behaviourson on SPI signals if USB cable connected or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attacched you'll find: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) noUsb_*.png files; oscillograms with USB cable connected (two different timescale) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Usb_*.png files: oscillograms without USB cablle (two different timescale). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Green curve is CS; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yellow curve is CLK; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blue curve is SDO line &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any clue why the SDO curve is so bad ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, why is the USB cable shifting the signals ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alberto &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: "kef2" &amp;lt;admin@community.nxp.com&amp;gt; &lt;/P&gt;&lt;P&gt;A: "Alberto Catoni" &amp;lt;catonia@email.it&amp;gt; &lt;/P&gt;&lt;P&gt;Inviato: Lunedì, 15 aprile 2019 8:52:29 &lt;/P&gt;&lt;P&gt;Oggetto: Re:  - Re: SPI problem on S12ZVC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Community &lt;/P&gt;&lt;P&gt;Re: SPI problem on S12ZVC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Edward Karpicz in S12 / MagniV Microcontrollers - View the full discussion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Alberto, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's hard to guess what's going on without hardware. Do you have any oscillograms? Please attach your latest init, write and read routines. &lt;/P&gt;&lt;P&gt;Reply to this message by replying to this email, or go to the message on NXP Community &lt;/P&gt;&lt;P&gt;Start a new discussion in S12 / MagniV Microcontrollers by email or at NXP Community &lt;/P&gt;&lt;P&gt;Following Re: SPI problem on S12ZVC in these streams: Inbox &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This email was sent by NXP Community because you are a registered user. &lt;/P&gt;&lt;P&gt;You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 18:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864442#M16209</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-04-16T18:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864443#M16210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I don't see anything obviously wrong in your read, write and init routines. As well /CS and SCK on some oscillograms seem confirming proper 16bits transfer while /CS is low. Yes, now you should fix hardware issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've no idea what USB do you have, looks like that when it is attached, something is&amp;nbsp;driving /CS up while MCU&amp;nbsp;drives it down. You need to check your circuit.&lt;/P&gt;&lt;P&gt;Looking at your oscillograms, it seems S12ZVC VDDX is 5V, while MAX31865 is 3.3V device. Do you power MAX31865 from proper 3.3V source?&amp;nbsp;If not, isn't it smoked already? You need to&amp;nbsp; solve somehow SPI signals level shifting between S12Z and MAX or try supplying S12Z VDDX not from internal S12Z voltage regulator but from external 3.3V source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 06:26:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864443#M16210</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-04-18T06:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864444#M16211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;Hi Edward,&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;sorry for late response and thanks again for all tips.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;Actually the Adafruit board we were using to test MAX31865 had a 5v input pin (then a level shifter to generate 3V3) so it should not be a problem.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;We run many tests to understand&amp;nbsp;what is going since we noticed we had very bad signals. Then We supposed it was probably due to some ground related problem.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;We&amp;nbsp;are now&amp;nbsp;using another S12Z custom board and we&amp;nbsp;finally have&amp;nbsp;better&amp;nbsp;signals. Also, We no longer see differences based on USB ports.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;As far as concern the MAX31865 PT1000 we are now able to read values and convert them to (quite accurate) temperatures, but we are still puzzled because in order to have them I had to add one dummy read and one dummy delay while reading MAX31865 registers. Without those calls I still read values but they do not always convert to realistic temperature (and I also have sporadic zero readings).&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;I really do not understand why they are necessary even if I saw other people had to add delays in order to read SPI registers.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;I attach the last version of the code; can you please check if you are able to give any&amp;nbsp;reason for&amp;nbsp;those 'dummy' calls&amp;nbsp; ?&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;Any other tips&amp;nbsp; would be highly appreciated.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;Thanks very much for your time.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;Alberto&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 16px;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 06:10:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864444#M16211</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-05-06T06:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864445#M16212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see how and where you switch convPhase. case 1 initiates conversion. You need to wait for ~70ms before entering case 2. What time units&amp;nbsp;are in delayT(), milliseconds? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 08:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864445#M16212</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-05-07T08:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864446#M16213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line 187: cycles convPhase in the range  increasing by 1 at each function call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max31856_ReadRTD is called at 10Hz so there is a 100 ms delay between each phase (I also tryied increasing the delay(up to 500 ms with same result). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delayT(100) is in the order of micro seconds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: "kef2" &amp;lt;admin@community.nxp.com&amp;gt; &lt;/P&gt;&lt;P&gt;A: "Alberto Catoni" &amp;lt;catonia@email.it&amp;gt; &lt;/P&gt;&lt;P&gt;Inviato: Martedì, 7 maggio 2019 10:21:45 &lt;/P&gt;&lt;P&gt;Oggetto: Re:  - Re: SPI problem on S12ZVC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Community &lt;/P&gt;&lt;P&gt;Re: SPI problem on S12ZVC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Edward Karpicz in S12 / MagniV Microcontrollers - View the full discussion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see how and where you switch convPhase. case 1 initiates conversion. You need to wait for ~70ms before entering case 2. What time units are in delayT(), milliseconds? &lt;/P&gt;&lt;P&gt;Reply to this message by replying to this email, or go to the message on NXP Community &lt;/P&gt;&lt;P&gt;Start a new discussion in S12 / MagniV Microcontrollers by email or at NXP Community &lt;/P&gt;&lt;P&gt;Following Re: SPI problem on S12ZVC in these streams: Inbox &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This email was sent by NXP Community because you are a registered user. &lt;/P&gt;&lt;P&gt;You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 09:02:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864446#M16213</guid>
      <dc:creator>catonia</dc:creator>
      <dc:date>2019-05-07T09:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on S12ZVC</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864447#M16214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No ideas, sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2019 06:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-problem-on-S12ZVC/m-p/864447#M16214</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2019-05-08T06:58:43Z</dc:date>
    </item>
  </channel>
</rss>

