<?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: LPC18xx SSP0 peripheral reading only high in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-SSP0-peripheral-reading-only-high/m-p/987480#M38932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, also described here in this thread:&amp;nbsp; &lt;A href="https://community.nxp.com/thread/462334"&gt;https://community.nxp.com/thread/462334&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't do anything on the pin configuration, maybe the BootROM code configures this pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2020 16:51:25 GMT</pubDate>
    <dc:creator>bernhardfink</dc:creator>
    <dc:date>2020-01-09T16:51:25Z</dc:date>
    <item>
      <title>LPC18xx SSP0 peripheral reading only high</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-SSP0-peripheral-reading-only-high/m-p/987478#M38930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working with the SSP0 peripheral on a LPC1857 and a LPC1837. On both chips, I've not been able to get the MISO line to read anything besides a high value (255) no matter what is written to the line. I&amp;nbsp;&lt;EM&gt;am&lt;/EM&gt; able to read the correct values however when the loopback is enabled or when I use the SSP1 peripheral. I've tried getting the receive data through the DMA peripheral as well with similar results. As far as I can tell, the receive FIFO is only ever&amp;nbsp;receiving a&amp;nbsp;value of 255. Here are a few things I've tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Examining the SSP0 CR0 register to see if it is set up correctly&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Examining the SCU configuration register for the MISO pin to make sure it is on the correct function&lt;/LI&gt;&lt;LI&gt;Switching the MISO pin to multiple different pins using the SCU&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;All the other lines (MOSI, CLK, SS) work as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example program I have written to demonstrate the misbehavior, the program simply sends 1 byte with value 100 over SPI and reads 1 byte. If you tie the MISO and MOSI lines together, one would expect a byte of 100 to be read. However, this only works with SSP1; SSP0 shows that the value 255 has been read. If you enable the loopback on SSP0 however, it works as expected and you read a value of 100.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 22:31:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-SSP0-peripheral-reading-only-high/m-p/987478#M38930</guid>
      <dc:creator>michael_tao</dc:creator>
      <dc:date>2020-01-08T22:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx SSP0 peripheral reading only high</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-SSP0-peripheral-reading-only-high/m-p/987479#M38931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: I've figured out the problem (after posting the question naturally). Turns out PF_2 was at some point being set to function 2 which is also SSP0_MISO. I'm not sure where this is happening as it's not in any of the BSP code or my code, but after setting PF_2 to the default func 0, SSP0_MISO now works on my desired pin setup.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-SSP0-peripheral-reading-only-high/m-p/987479#M38931</guid>
      <dc:creator>michael_tao</dc:creator>
      <dc:date>2020-01-09T16:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC18xx SSP0 peripheral reading only high</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-SSP0-peripheral-reading-only-high/m-p/987480#M38932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, also described here in this thread:&amp;nbsp; &lt;A href="https://community.nxp.com/thread/462334"&gt;https://community.nxp.com/thread/462334&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't do anything on the pin configuration, maybe the BootROM code configures this pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC18xx-SSP0-peripheral-reading-only-high/m-p/987480#M38932</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2020-01-09T16:51:25Z</dc:date>
    </item>
  </channel>
</rss>

