<?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 Pmod SSEL pin as GPIO in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771746#M31040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Recently I am using LPC43S67 &amp;amp; A70CM Cloud Connectivity Kit (OM13086),&lt;/P&gt;&lt;P&gt;although I am using the main board OM13084.&lt;/P&gt;&lt;P&gt;I have a problem that SSEL pin on Pmod (J3) connector is not controllable.&lt;/P&gt;&lt;P&gt;I try to control it as a GPIO pin.&lt;/P&gt;&lt;P&gt;I connect a LED between the SSEL pin and the GND pin of J3 connector.&lt;/P&gt;&lt;P&gt;And no matter I set the GPIO state of that pin to true or false, the LED is not on.&lt;/P&gt;&lt;P&gt;Similar code works on another GPIO pin, P1.5.&lt;/P&gt;&lt;P&gt;Do I miss something?&lt;/P&gt;&lt;P&gt;The following is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;#if defined (__USE_LPCOPEN)&lt;BR /&gt;#if defined(NO_BOARD_LIB)&lt;BR /&gt;#include "chip.h"&lt;BR /&gt;#else&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;int main(void) {&lt;BR /&gt;#if defined (__USE_LPCOPEN)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Read clock settings and update SystemCoreClock variable&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemCoreClockUpdate();&lt;BR /&gt;#if !defined(NO_BOARD_LIB)&lt;BR /&gt;#if defined (__MULTICORE_MASTER) || defined (__MULTICORE_NONE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set up and initialize all required blocks and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // functions related to the board hardware&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_Init();&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the LED to the state of "On"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_LED_Set(0, true);&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: insert code here&lt;BR /&gt;#if 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_SCU_PinMuxSet(0x3, 8, (SCU_MODE_INACT | SCU_MODE_FUNC4));&amp;nbsp; /* P3.8 =&amp;gt; GPIO5[11] */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 5, 11);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 11, (bool) true);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 11, (bool) false);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinOutHigh(LPC_GPIO_PORT, 5, 11);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 5, 11);&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_SCU_PinMuxSet(0x3, 6, (SCU_MODE_INACT | SCU_MODE_FUNC0));&amp;nbsp; /* P3.6 =&amp;gt; GPIO0[6] */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 0, 6);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, 6, (bool) true);&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Force the counter to be placed into memory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile static int i = 0 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enter an infinite loop, just incrementing a counter&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++ ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 04:03:48 GMT</pubDate>
    <dc:creator>frankchiu</dc:creator>
    <dc:date>2018-04-26T04:03:48Z</dc:date>
    <item>
      <title>Pmod SSEL pin as GPIO</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771746#M31040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Recently I am using LPC43S67 &amp;amp; A70CM Cloud Connectivity Kit (OM13086),&lt;/P&gt;&lt;P&gt;although I am using the main board OM13084.&lt;/P&gt;&lt;P&gt;I have a problem that SSEL pin on Pmod (J3) connector is not controllable.&lt;/P&gt;&lt;P&gt;I try to control it as a GPIO pin.&lt;/P&gt;&lt;P&gt;I connect a LED between the SSEL pin and the GND pin of J3 connector.&lt;/P&gt;&lt;P&gt;And no matter I set the GPIO state of that pin to true or false, the LED is not on.&lt;/P&gt;&lt;P&gt;Similar code works on another GPIO pin, P1.5.&lt;/P&gt;&lt;P&gt;Do I miss something?&lt;/P&gt;&lt;P&gt;The following is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;#if defined (__USE_LPCOPEN)&lt;BR /&gt;#if defined(NO_BOARD_LIB)&lt;BR /&gt;#include "chip.h"&lt;BR /&gt;#else&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;int main(void) {&lt;BR /&gt;#if defined (__USE_LPCOPEN)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Read clock settings and update SystemCoreClock variable&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemCoreClockUpdate();&lt;BR /&gt;#if !defined(NO_BOARD_LIB)&lt;BR /&gt;#if defined (__MULTICORE_MASTER) || defined (__MULTICORE_NONE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set up and initialize all required blocks and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // functions related to the board hardware&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_Init();&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the LED to the state of "On"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_LED_Set(0, true);&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: insert code here&lt;BR /&gt;#if 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_SCU_PinMuxSet(0x3, 8, (SCU_MODE_INACT | SCU_MODE_FUNC4));&amp;nbsp; /* P3.8 =&amp;gt; GPIO5[11] */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 5, 11);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 11, (bool) true);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 5, 11, (bool) false);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinOutHigh(LPC_GPIO_PORT, 5, 11);&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinOutLow(LPC_GPIO_PORT, 5, 11);&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_SCU_PinMuxSet(0x3, 6, (SCU_MODE_INACT | SCU_MODE_FUNC0));&amp;nbsp; /* P3.6 =&amp;gt; GPIO0[6] */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 0, 6);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, 6, (bool) true);&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Force the counter to be placed into memory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile static int i = 0 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enter an infinite loop, just incrementing a counter&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++ ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 04:03:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771746#M31040</guid>
      <dc:creator>frankchiu</dc:creator>
      <dc:date>2018-04-26T04:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pmod SSEL pin as GPIO</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771747#M31041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I found the solution.&lt;/P&gt;&lt;P&gt;The SSEL pin of Pmod is not P3_8! Actually it is P1_0.&lt;/P&gt;&lt;P&gt;Because the only SPI_SSEL pin in the datasheet is P3_8, I think that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771747#M31041</guid>
      <dc:creator>frankchiu</dc:creator>
      <dc:date>2018-04-26T08:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pmod SSEL pin as GPIO</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771748#M31042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, are P3_3 / P3_6 / P3_7 / P3_8 (SPI pins) accessible on&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;OM13084?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I don't find those labels on the board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 12:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771748#M31042</guid>
      <dc:creator>frankchiu</dc:creator>
      <dc:date>2018-04-26T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pmod SSEL pin as GPIO</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771749#M31043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is good to hear you found a solution. Regarding the P3_3 / P3_6 / P3_7 / P3_8 pins, these pins are connected to the on-board SPIFI memory, that is why these pins were not routed to the board headers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/schematics/LPCX43xx_18xx_V3_Schematic_Rev-B.pdf" title="https://www.nxp.com/downloads/en/schematics/LPCX43xx_18xx_V3_Schematic_Rev-B.pdf"&gt;https://www.nxp.com/downloads/en/schematics/LPCX43xx_18xx_V3_Schematic_Rev-B.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 14:46:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pmod-SSEL-pin-as-GPIO/m-p/771749#M31043</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2018-04-26T14:46:14Z</dc:date>
    </item>
  </channel>
</rss>

