<?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>S32 Design StudioのトピックS32DS blink LED</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-blink-LED/m-p/734096#M2313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mikedoidge"&gt;mikedoidge&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;Based on your&amp;nbsp; "&lt;SPAN style="font-size: 15px;"&gt;HOWTO: Create the Blinking LED example project using S32K144 SDK&amp;nbsp;&lt;/SPAN&gt;" I am trying to toggle all the three LEDs on the S32K144EVB_100&amp;nbsp; but I am not able to do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the code I am running on S32DS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_FORCIBLE);&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt;PINS_DRV_SetPinsDirection(PTD,1&amp;lt;&amp;lt;15U|1&amp;lt;&amp;lt;16U|1&amp;lt;&amp;lt;0U);&lt;BR /&gt;PINS_DRV_SetPins(PTD,1&amp;lt;&amp;lt;15U|1&amp;lt;&amp;lt;0U);&lt;BR /&gt;PINS_DRV_ClearPins(PTD,1&amp;lt;&amp;lt;16U);&lt;BR /&gt;PINS_DRV_SetPins(PTD,1&amp;lt;&amp;lt;16U);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PINS_DRV_ClearPins(PTD,1&amp;lt;&amp;lt;0U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for(;;){&lt;BR /&gt;int c=7200000;&lt;BR /&gt;while(c--);&lt;BR /&gt;PINS_DRV_TogglePins(PTD, 1&amp;lt;&amp;lt;15U |1&amp;lt;&amp;lt;16U|1&amp;lt;&amp;lt;0U);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this code the toggling is happening between blue and yellow(red+green).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shashank Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Mar 2018 10:30:17 GMT</pubDate>
    <dc:creator>shashankanand</dc:creator>
    <dc:date>2018-03-24T10:30:17Z</dc:date>
    <item>
      <title>S32DS blink LED</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-blink-LED/m-p/734096#M2313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mikedoidge"&gt;mikedoidge&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;Based on your&amp;nbsp; "&lt;SPAN style="font-size: 15px;"&gt;HOWTO: Create the Blinking LED example project using S32K144 SDK&amp;nbsp;&lt;/SPAN&gt;" I am trying to toggle all the three LEDs on the S32K144EVB_100&amp;nbsp; but I am not able to do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the code I am running on S32DS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_FORCIBLE);&lt;BR /&gt;PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt;PINS_DRV_SetPinsDirection(PTD,1&amp;lt;&amp;lt;15U|1&amp;lt;&amp;lt;16U|1&amp;lt;&amp;lt;0U);&lt;BR /&gt;PINS_DRV_SetPins(PTD,1&amp;lt;&amp;lt;15U|1&amp;lt;&amp;lt;0U);&lt;BR /&gt;PINS_DRV_ClearPins(PTD,1&amp;lt;&amp;lt;16U);&lt;BR /&gt;PINS_DRV_SetPins(PTD,1&amp;lt;&amp;lt;16U);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PINS_DRV_ClearPins(PTD,1&amp;lt;&amp;lt;0U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for(;;){&lt;BR /&gt;int c=7200000;&lt;BR /&gt;while(c--);&lt;BR /&gt;PINS_DRV_TogglePins(PTD, 1&amp;lt;&amp;lt;15U |1&amp;lt;&amp;lt;16U|1&amp;lt;&amp;lt;0U);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with this code the toggling is happening between blue and yellow(red+green).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shashank Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2018 10:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32DS-blink-LED/m-p/734096#M2313</guid>
      <dc:creator>shashankanand</dc:creator>
      <dc:date>2018-03-24T10:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS blink LED</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-blink-LED/m-p/734097#M2314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from EVB schematic you can see that LEDs are connected from VDD to GPIO. That means when you Clear pin - LED is ON, when you SET pin - LED is OFF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To turn OFF all LEDs - you need to Set particular LED pin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use OR and SHIFT like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: 400;"&gt;PINS_DRV_SetPins(PTD, (1&amp;lt;&amp;lt;16U) | (1&amp;lt;&amp;lt;15U) |&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-weight: 400;"&gt;(1&amp;lt;&amp;lt;0U)&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: 400;"&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: 400;"&gt;or write HEX value 0x18001 (1 10000000 00000001b)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: 400;"&gt;PINS_DRV_SetPins(PTD, 0x18001&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: 400;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; font-weight: 400;"&gt;To turn ON all LEDs - you can just switch SetPins to ClearPins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-weight: 400;"&gt;PINS_DRV_ClearPins(PTD, (1&amp;lt;&amp;lt;16U) | (1&amp;lt;&amp;lt;15U) |&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-weight: 400;"&gt;(1&amp;lt;&amp;lt;0U)&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-weight: 400;"&gt;&amp;nbsp;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use only one LED:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blue ON:&lt;/P&gt;&lt;P&gt;PINS_DRV_ClearPins(PTD, 1 &amp;lt;&amp;lt; 0);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Blue OFF&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PINS_DRV_SetPins(PTD, 1 &amp;lt;&amp;lt; 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RED ON:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PINS_DRV_ClearPins(PTD, 1 &amp;lt;&amp;lt; 15);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RED OFF:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PINS_DRV_SetPins(PTD, 1 &amp;lt;&amp;lt; 15);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GREEN ON:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PINS_DRV_ClearPins(PTD, 1 &amp;lt;&amp;lt; 16);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GREEN OFF:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PINS_DRV_SetPins(PTD, 1 &amp;lt;&amp;lt; 16);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So - in your code you can see that in Init - at the end - you turned OFF GREEN and RED and BLUE by:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;PINS_DRV_SetPins(PTD,1&amp;lt;&amp;lt;15U|1&amp;lt;&amp;lt;0U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;PINS_DRV_SetPins(PTD,1&amp;lt;&amp;lt;16U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;and turned ON BLUE by:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;PINS_DRV_ClearPins(PTD,1&amp;lt;&amp;lt;0U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see - in for(;;)&lt;/P&gt;&lt;P&gt;you are toggling between Blue On/Off and (GREEN+RED) On/Off&amp;nbsp;&lt;/P&gt;&lt;P&gt;because BLUE was ON and GREEN+RED was OFF).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32DS-blink-LED/m-p/734097#M2314</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-26T08:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS blink LED</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-blink-LED/m-p/1605783#M9812</link>
      <description>&lt;P&gt;turn the led on using switch status...&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 05:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32DS-blink-LED/m-p/1605783#M9812</guid>
      <dc:creator>Shrini</dc:creator>
      <dc:date>2023-02-27T05:15:03Z</dc:date>
    </item>
  </channel>
</rss>

