<?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: MAX2771 - Read register from SPI with IMX in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MAX2771-Read-register-from-SPI-with-IMX/m-p/991350#M5818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr Garcia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Patrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2020 13:13:59 GMT</pubDate>
    <dc:creator>lacouturepatric</dc:creator>
    <dc:date>2020-02-26T13:13:59Z</dc:date>
    <item>
      <title>MAX2771 - Read register from SPI with IMX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MAX2771-Read-register-from-SPI-with-IMX/m-p/991348#M5816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I try to configure a MAX2771 component (GNSS receiver) with an IMXRT1064 by SPI. The&amp;nbsp;IMXRT1064 is a master and the&amp;nbsp;MAX277 is a slave. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I succeed in writing into the MAX2771 registers ( 48 bits / frame) by using the sdk exemple (driver_examples\lpspi\interrupt). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I did not&amp;nbsp;succeed in reading&amp;nbsp;the &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;MAX2771 &lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;registers &lt;/SPAN&gt;.&lt;SPAN style="color: #001000; background-color: transparent;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;How do I proceed to configure&amp;nbsp;LPSPI to work as follow?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The IMX first asserts CSN (low) ,&lt;/P&gt;&lt;P&gt;- Then it transferts address (12 bits) + 1 read bit&amp;nbsp; and 3 bits to 0,&lt;/P&gt;&lt;P&gt;- Then SDATA is set in tri-stated by the IMX and it generates 32 clk,&lt;/P&gt;&lt;P&gt;- The MAX2771 then starts driving SDATA () and outputting the 32 bits,&lt;/P&gt;&lt;P&gt;- The&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;IMX disasserts CSN (high),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;- The&amp;nbsp;IMX read his "RDR register" to have the&amp;nbsp;MAX2771 register value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Do you have exemples&lt;/SPAN&gt; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;You can find attached "Register Read Functional Timing" figure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Patrice Lacouture&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 16:13:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MAX2771-Read-register-from-SPI-with-IMX/m-p/991348#M5816</guid>
      <dc:creator>lacouturepatric</dc:creator>
      <dc:date>2020-01-22T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: MAX2771 - Read register from SPI with IMX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MAX2771-Read-register-from-SPI-with-IMX/m-p/991349#M5817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check how the masterConfig structure is configured in the example. Here you can change bits per frame, clock polarity, PCS active high or low, etc. according to your device needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;   lpspi_master_config_t masterConfig&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;/*Master config*/&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;baudRate     &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; TRANSFER_BAUDRATE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;bitsPerFrame &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cpol         &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kLPSPI_ClockPolarityActiveHigh&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;cpha         &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kLPSPI_ClockPhaseFirstEdge&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;direction    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kLPSPI_MsbFirst&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pcsToSckDelayInNanoSec        &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000000000&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;baudRate&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lastSckToPcsDelayInNanoSec    &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000000000&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;baudRate&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;betweenTransferDelayInNanoSec &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000000000&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;baudRate&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;whichPcs           &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; EXAMPLE_LPSPI_MASTER_PCS_FOR_INIT&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pcsActiveHighOrLow &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kLPSPI_PcsActiveLow&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pinCfg        &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kLPSPI_SdiInSdoOut&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    masterConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dataOutConfig &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kLpspiDataOutRetained&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    srcClock_Hz &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; LPSPI_MASTER_CLK_FREQ&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token function"&gt;LPSPI_MasterInit&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;EXAMPLE_LPSPI_MASTER_BASEADDR&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;masterConfig&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; srcClock_Hz&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 18:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MAX2771-Read-register-from-SPI-with-IMX/m-p/991349#M5817</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-01-28T18:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: MAX2771 - Read register from SPI with IMX</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MAX2771-Read-register-from-SPI-with-IMX/m-p/991350#M5818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr Garcia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Patrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/MAX2771-Read-register-from-SPI-with-IMX/m-p/991350#M5818</guid>
      <dc:creator>lacouturepatric</dc:creator>
      <dc:date>2020-02-26T13:13:59Z</dc:date>
    </item>
  </channel>
</rss>

