<?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>Kinetis Microcontrollers中的主题 K60 SPI Issues - No Data Received</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225027#M4337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to interface to a Microchip 25AA02E48 serial EEPROM via the SPI peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code so far goes like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Enable the SPI&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;MCR &amp;amp;= ~SPI_MCR_MDIS_MASK;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SPI2-&amp;gt;MCR = SPI_MCR_MSTR_MASK | SPI_MCR_CLR_RXF_MASK | SPI_MCR_CLR_TXF_MASK | SPI_MCR_PCSIS(1) | SPI_MCR_ROOE_MASK; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;CTAR[0] = SPI_CTAR_FMSZ(8) | SPI_CTAR_PDT(0) | SPI_CTAR_BR(3);&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;CTAR[1] = SPI_CTAR_FMSZ(8) | SPI_CTAR_PDT(0) | SPI_CTAR_BR(3) | SPI_CTAR_ASC(2) | SPI_CTAR_DT(2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Read instruction - FIFO 1&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;PUSHR = 0x03 | SPI_PUSHR_PCS(1) | SPI_PUSHR_CTAS(0) | SPI_PUSHR_CONT_MASK;&lt;/P&gt;&lt;P&gt;// Set the address to be the starting index of the MAC address - FIFO 2&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;PUSHR = 0xFA | SPI_PUSHR_PCS(1) | SPI_PUSHR_CTAS(0) | SPI_PUSHR_CONT_MASK;&lt;/P&gt;&lt;P&gt;// Dummy byte to read the data back - FIFO 3&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;PUSHR = 0x00 | SPI_PUSHR_PCS(1) | SPI_PUSHR_CTAS(1) | SPI_PUSHR_EOQ_MASK;&lt;/P&gt;&lt;P&gt;while (!(SPI2-&amp;gt;SR &amp;amp; SPI_SR_RFDF_MASK));&lt;/P&gt;&lt;P&gt;d = SPI2-&amp;gt;POPR;&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;SR |= SPI_SR_RFDF_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the SPI2 port mapped to PORTD and as far as I'm aware, there are no electrical issues. However, looking on an oscilloscope, I can see the data being shifted out on the SDO pin but nothing ever comes back on the SDI pin. Attached to this is a picture of the scope traces - CS, SDO and SCK are all active but the green SDI trace is floating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having checked the Microchip datasheet, I'm certain that I'm meeting all timing requirements with the clock phase and polarity being correct although I have tested all variations of this. The SCK is running at 4MHz (from 120MHz system clock) yet running down at 1.8MHz still makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 08:27:10 GMT</pubDate>
    <dc:creator>weblar</dc:creator>
    <dc:date>2013-07-26T08:27:10Z</dc:date>
    <item>
      <title>K60 SPI Issues - No Data Received</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225027#M4337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to interface to a Microchip 25AA02E48 serial EEPROM via the SPI peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code so far goes like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Enable the SPI&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;MCR &amp;amp;= ~SPI_MCR_MDIS_MASK;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SPI2-&amp;gt;MCR = SPI_MCR_MSTR_MASK | SPI_MCR_CLR_RXF_MASK | SPI_MCR_CLR_TXF_MASK | SPI_MCR_PCSIS(1) | SPI_MCR_ROOE_MASK; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;CTAR[0] = SPI_CTAR_FMSZ(8) | SPI_CTAR_PDT(0) | SPI_CTAR_BR(3);&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;CTAR[1] = SPI_CTAR_FMSZ(8) | SPI_CTAR_PDT(0) | SPI_CTAR_BR(3) | SPI_CTAR_ASC(2) | SPI_CTAR_DT(2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Read instruction - FIFO 1&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;PUSHR = 0x03 | SPI_PUSHR_PCS(1) | SPI_PUSHR_CTAS(0) | SPI_PUSHR_CONT_MASK;&lt;/P&gt;&lt;P&gt;// Set the address to be the starting index of the MAC address - FIFO 2&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;PUSHR = 0xFA | SPI_PUSHR_PCS(1) | SPI_PUSHR_CTAS(0) | SPI_PUSHR_CONT_MASK;&lt;/P&gt;&lt;P&gt;// Dummy byte to read the data back - FIFO 3&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;PUSHR = 0x00 | SPI_PUSHR_PCS(1) | SPI_PUSHR_CTAS(1) | SPI_PUSHR_EOQ_MASK;&lt;/P&gt;&lt;P&gt;while (!(SPI2-&amp;gt;SR &amp;amp; SPI_SR_RFDF_MASK));&lt;/P&gt;&lt;P&gt;d = SPI2-&amp;gt;POPR;&lt;/P&gt;&lt;P&gt;SPI2-&amp;gt;SR |= SPI_SR_RFDF_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the SPI2 port mapped to PORTD and as far as I'm aware, there are no electrical issues. However, looking on an oscilloscope, I can see the data being shifted out on the SDO pin but nothing ever comes back on the SDI pin. Attached to this is a picture of the scope traces - CS, SDO and SCK are all active but the green SDI trace is floating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having checked the Microchip datasheet, I'm certain that I'm meeting all timing requirements with the clock phase and polarity being correct although I have tested all variations of this. The SCK is running at 4MHz (from 120MHz system clock) yet running down at 1.8MHz still makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 08:27:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225027#M4337</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2013-07-26T08:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: K60 SPI Issues - No Data Received</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225028#M4338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see 9 clocks per 'access' (FMSZ+1), and the seam between each is 'short' (check ASC, DT, etc), so those probably aren't making the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;25AA02E48 &lt;/SPAN&gt;happy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 17:16:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225028#M4338</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-07-29T17:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: K60 SPI Issues - No Data Received</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225029#M4339</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;Is that SPI is running by using bus clock(60 MHz)?? ..not the system clock ..then how could i generate a 30MHZ clock from bus clock using the SIM_CLKDIV1 register in MK60fx512?? Because i a trying to interface AD5421 DAC with k60. Here max spi clock frequency for dac is about 30MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthy uk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 11:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225029#M4339</guid>
      <dc:creator>sruthyuk</dc:creator>
      <dc:date>2016-06-02T11:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: K60 SPI Issues - No Data Received</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225030#M4340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a discussion on 30MHz SPI, refer to:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/394332"&gt;With 120MHz core clock (system clock) on MKV31F512VLL12, what is the maximum SPI clock i can generate and operate at? Pl…&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-Issues-No-Data-Received/m-p/225030#M4340</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-06-02T12:56:54Z</dc:date>
    </item>
  </channel>
</rss>

