<?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: LPC1788, SSP1 problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522478#M5114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sat Nov 23 04:33:21 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry, details are not enough to give hints!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please show some code which works and code which does not work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you have some code in use which still accesses SSP1 instead of SSP0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How you powered up the correct peripheral?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:57:19 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:57:19Z</dc:date>
    <item>
      <title>LPC1788, SSP1 problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522477#M5113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MRF_PRL on Sat Nov 23 04:28:31 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi dear all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used a LPC1788 and I configured SSP1, but I can't write to LPC_SSP1 -&amp;gt; DR. I also configured SSP0, and it works very good and when I write LPC_SSP0 -&amp;gt; DR = 0xAA, its value will update, but for SSP1 it doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please Help me&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522477#M5113</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788, SSP1 problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522478#M5114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sat Nov 23 04:33:21 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry, details are not enough to give hints!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please show some code which works and code which does not work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you have some code in use which still accesses SSP1 instead of SSP0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How you powered up the correct peripheral?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:57:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522478#M5114</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788, SSP1 problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522479#M5115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MRF_PRL on Sun Nov 24 05:23:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi dear Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks you for answering.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP1 data register mapped in 0x40030008, I want to write in this address, But I cant. For SSP0, data register mapped in 0x40080008, whenever SSP0 is activated, I can read and write this address, but for SSP1, also I active this peripheral, but I cant read and write, and this address only has 0x0000000 value :(.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used Keil and though system_Lpc17xx, I active SSP1 :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522479#M5115</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788, SSP1 problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522480#M5116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sun Nov 24 05:46:09 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from user manual:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP (base address 0x4008 8000 (SSP0), 0x4003 0000 (SSP1), 0x400A C000 (SSP2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume your address SSP0 was a cut&amp;amp;paste error in the posting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens when you write? Do you get into some fault handler (e.g. hard fault)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What values do you write into CR0, CR1, CPSR to initialize the interface?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you seen chapter 21.1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The three SSP interfaces, SSP0, SSP1, and SSP2 are configured using the following registers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Power: In the PCONP register (Table 16), set bit PCSSP0 to enable SSP0 and bit PCSSP1 to enable SSP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remark: On reset, SSP interfaces 0 and 1 are enabled (PCSSP0/1 = 1), while SSP2 is disabled (PCSSP2 = 0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Peripheral clock: The SSPs operate from the common PCLK that clocks both the bus interface &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and functional portion of most APB peripherals. See Section 3.3.21. In master mode, the clock must be scaled down (see Section 21.6.5).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Pins: Select the SSP pins and pin modes through the relevant IOCON registers (Section 7.4.1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Interrupts: Interrupts are enabled in the SSP0IMSC register for SSP0 and SSP1IMSC register for SSP1 Table 482. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Interrupts are enabled in the NVIC using the appropriate Interrupt Set Enable register, see Table 48.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Initialization: There are two control registers for each of the SSP ports to be configured: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP0CR0 and SSP0CR1 for SSP0, SSP1CR0 and SSP1CR1 for SSP1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP2CR0 and SSP2CR1 for SSP2. See Section 21.6.1 and Section 21.6.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. DMA: The Rx and Tx FIFOs of the SSP interfaces can be connected to the GPDMA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;controller (see Section 21.6.10). For GPDMA system connections, see Table 685.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you done at least steps 1, 2, 3 and 5? 4 only if you use interrupt, 6 if you use DMA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SSP1-problem/m-p/522480#M5116</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:57:20Z</dc:date>
    </item>
  </channel>
</rss>

