<?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: Lpc11u37 spi slave select pin</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530159#M9958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by siangming on Wed Mar 04 20:15:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;As shown in LPCOpen sample:&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#if (defined(BOARD_NXP_XPRESSO_11U14) || defined(BOARD_NGX_BLUEBOARD_11U24) || defined(BOARD_NXP_XPRESSO_11U37H))
/* Only SSP0 is supported */
[color=#f00]Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 2, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* SSEL0 */[/color]
Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 29, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* SCK0 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 8, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* MISO0 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 9, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* MOSI0 */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;slave select can be activated via pin function 1&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;You can also use this pin (or another) as GPIO and switch slave select yourself in your code...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that i can either configure PIO0_2 as a general GPIO or configure it as SSEL0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i configure it as SSEL0, do i have to manually set the SSEL0 to active state everytime before i want to send something to the slave spi device? or will the MCU automatically set the SSEL0 to the correct state (active or non-active) when the SPI communication is triggered or finished?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(My guess is that it is automatically toggled if the pin is configured as SSEL0. But if the pin is configured as GPIO, i have to manually toggle the output to select the slave when i want to communicate with the slave.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:30:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:30:35Z</dc:date>
    <item>
      <title>Lpc11u37 spi slave select pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530157#M9956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by siangming on Wed Mar 04 17:03:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the spi on this mcu, lpc11u37, as a master spi and connect the mcu to another single slave spi device only. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After reading the reference manual, I still do not understand if the slave select pin is driven automatically to the active state whenever there is a data waiting to send out in the FIFO buffer ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or do I have to manually drive it to the active state before the data get sent out through the MOSI. If so, do I also have to manually drive it back to inactive state after the data transmission is done?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:30:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530157#M9956</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc11u37 spi slave select pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530158#M9957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Mar 04 17:35:12 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As shown in LPCOpen sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#if (defined(BOARD_NXP_XPRESSO_11U14) || defined(BOARD_NGX_BLUEBOARD_11U24) || defined(BOARD_NXP_XPRESSO_11U37H))
/* Only SSP0 is supported */
[color=#f00]Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 2, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* SSEL0 */[/color]
Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 29, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* SCK0 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 8, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* MISO0 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 9, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* MOSI0 */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;slave select can be activated via pin function 1&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also use this pin (or another) as GPIO and switch slave select yourself in your code...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:30:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530158#M9957</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc11u37 spi slave select pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530159#M9958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by siangming on Wed Mar 04 20:15:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;As shown in LPCOpen sample:&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#if (defined(BOARD_NXP_XPRESSO_11U14) || defined(BOARD_NGX_BLUEBOARD_11U24) || defined(BOARD_NXP_XPRESSO_11U37H))
/* Only SSP0 is supported */
[color=#f00]Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 2, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* SSEL0 */[/color]
Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 29, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* SCK0 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 8, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* MISO0 */
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 9, (IOCON_FUNC1 | IOCON_MODE_PULLUP));/* MOSI0 */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;slave select can be activated via pin function 1&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;You can also use this pin (or another) as GPIO and switch slave select yourself in your code...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that i can either configure PIO0_2 as a general GPIO or configure it as SSEL0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if i configure it as SSEL0, do i have to manually set the SSEL0 to active state everytime before i want to send something to the slave spi device? or will the MCU automatically set the SSEL0 to the correct state (active or non-active) when the SPI communication is triggered or finished?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(My guess is that it is automatically toggled if the pin is configured as SSEL0. But if the pin is configured as GPIO, i have to manually toggle the output to select the slave when i want to communicate with the slave.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:30:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530159#M9958</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc11u37 spi slave select pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530160#M9959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Mar 05 00:26:45 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If a pin is switched to SSEL pin function, SSP peripheral is controllong this pin and switching it automatically...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:30:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc11u37-spi-slave-select-pin/m-p/530160#M9959</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:30:35Z</dc:date>
    </item>
  </channel>
</rss>

