<?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>LPC MicrocontrollersのトピックRe: SSP0 on 1768 to interface a SPI serial Flash</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736951#M29762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even if there's a FAQ&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/message/630477"&gt;here&lt;/A&gt;&amp;nbsp;that says:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff; font-size: 12px;"&gt;The maximum frequency of the SPI/SSP pins is 50MHz. Higher frequencies will affect the signal integrity of output.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is in contrast with the datasheet that says 33Mbit/s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2018 08:06:08 GMT</pubDate>
    <dc:creator>giusloq</dc:creator>
    <dc:date>2018-03-08T08:06:08Z</dc:date>
    <item>
      <title>SSP0 on 1768 to interface a SPI serial Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736948#M29759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using SSP0 in 1768 to interface a serial SPI Flash memory. Pin SSEL0 is driven as a normal GPIO.&lt;/P&gt;&lt;P&gt;It works with lower clock frequencies (32MHz), but it doesn't work with higher frequencies (48MHz).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I read data from the serial Flash shifted off by one bit when the frequency is high. I expect 0x4C51 (0100 1100 0101 0001), but I obtain 0xA6A8 (1010 0110 1010 1000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using serial Flash&amp;nbsp;SST26VF064B from Microchip. I'm usign HIGH-SPEED READ command (0x0B) that should be possible to use at 48MHz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 13:56:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736948#M29759</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2018-03-07T13:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: SSP0 on 1768 to interface a SPI serial Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736949#M29760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="293689" data-username="giusloq" href="https://community.nxp.com/people/giusloq" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: none; font-size: 11.9994px;"&gt;Giuseppe Modugno&lt;/A&gt;，&lt;/P&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-size: 14px;"&gt;&lt;SPAN&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before answer the question, I was wondering if you can share the demo code and a screenshot which illustrates the wave of the communication&amp;nbsp;between the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SST26VF064B&lt;SPAN&gt;&amp;nbsp;and LPC1768.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I'm looking forward to your reply.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have a great day,&lt;/DIV&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;TIC&lt;/DIV&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/DIV&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 06:07:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736949#M29760</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-03-08T06:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: SSP0 on 1768 to interface a SPI serial Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736950#M29761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is in the maximum frequency compatible with SSP peripheral in LPC1768.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Product Datasheet of LPC1768 (&lt;A href="https://www.nxp.com/docs/en/data-sheet/LPC1769_68_67_66_65_64_63.pdf"&gt;here&lt;/A&gt;), in chapter 12.7 "SSP interface", I see the following sentence:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The maximum SSP speed is 33 Mbit/s in master mode&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It seems it is the maximum bitclock frequency of SCK signal. This explains why my code works at 24MHz, but not at 48MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SSP bitclock is CCLK/PCLK_SSP0&amp;nbsp;/(SCR+1)/CPSDVSR, where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;CCLK is the CPU clock (in my case 96MHz)&lt;/LI&gt;&lt;LI&gt;PCLK_SSP0 is the peripheral clock divider (1, 2, 4, 8)&lt;/LI&gt;&lt;LI&gt;SCR is 0..255&lt;/LI&gt;&lt;LI&gt;CPSDVSR is 2, 4, ... 254&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is there a maximum value for the SSP peripheral clock (i.e., CCLK/PCLK_SSP0)?&lt;/P&gt;&lt;P&gt;To obtain 24MHz bitclock I need to divide CCLK=96MHz by 4. Two possibilities are possible:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PCLK_SSP0=2; SCR=0; CPSDVSR=2 (SSP clocked at 48MHz)&lt;/LI&gt;&lt;LI&gt;PCLK_SSP0=1; SCR=1; CPSDVSR=2 (SSP clocked at 96MHz)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question. I could use SPI peripheral instead of SSP0. It seems a completely different peripheral that is always compatible with SPI bus. What is the maximum frequency clock for SPI peripheral? Are there any differences between SPI and SSP0 regarding maximum clock frequencies?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736950#M29761</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2018-03-08T08:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSP0 on 1768 to interface a SPI serial Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736951#M29762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even if there's a FAQ&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/message/630477"&gt;here&lt;/A&gt;&amp;nbsp;that says:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff; font-size: 12px;"&gt;The maximum frequency of the SPI/SSP pins is 50MHz. Higher frequencies will affect the signal integrity of output.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is in contrast with the datasheet that says 33Mbit/s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 08:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP0-on-1768-to-interface-a-SPI-serial-Flash/m-p/736951#M29762</guid>
      <dc:creator>giusloq</dc:creator>
      <dc:date>2018-03-08T08:06:08Z</dc:date>
    </item>
  </channel>
</rss>

