<?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>S32Kのトピックemios in GPIO output mode</title>
    <link>https://community.nxp.com/t5/S32K/emios-in-GPIO-output-mode/m-p/1621263#M21580</link>
    <description>&lt;P&gt;How to use the GPIO mode of emios to output high or low levels of the PTA24 pin on the S32K312 chip&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 01:36:12 GMT</pubDate>
    <dc:creator>WeiC</dc:creator>
    <dc:date>2023-03-24T01:36:12Z</dc:date>
    <item>
      <title>emios in GPIO output mode</title>
      <link>https://community.nxp.com/t5/S32K/emios-in-GPIO-output-mode/m-p/1621263#M21580</link>
      <description>&lt;P&gt;How to use the GPIO mode of emios to output high or low levels of the PTA24 pin on the S32K312 chip&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 01:36:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/emios-in-GPIO-output-mode/m-p/1621263#M21580</guid>
      <dc:creator>WeiC</dc:creator>
      <dc:date>2023-03-24T01:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: emios in GPIO output mode</title>
      <link>https://community.nxp.com/t5/S32K/emios-in-GPIO-output-mode/m-p/1621488#M21590</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@wc" target="_blank"&gt;Hi@wc&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you can take a look at the function:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/*FUNCTION**********************************************************************
*
* Function Name : Emios_Pwm_Ip_SetOutputState
* Description   : Set the state of output pin
*
*
*END**************************************************************************/
void Emios_Pwm_Ip_SetOutputState(uint8 Instance,
                                 uint8 Channel,
                                 Emios_Pwm_Ip_OutputStateType OutputState)
{
#if (EMIOS_PWM_IP_DEV_ERROR_DETECT == STD_ON)
    DevAssert(EMIOS_PWM_IP_INSTANCE_COUNT &amp;gt; Instance);
    DevAssert(EMIOS_PWM_IP_CHANNEL_COUNT &amp;gt; Channel);
#endif
    Emios_Pwm_Ip_HwAddrType *const Base = Emios_Pwm_Ip_aBasePtr[Instance];
    SchM_Enter_Pwm_PWM_EXCLUSIVE_AREA_24();
    /* Set output pin polarity */
    if (EMIOS_PWM_IP_OUTPUT_STATE_LOW == OutputState)
    {
        Emios_Pwm_Ip_SetEdgePolarity(Base, Channel, (Emios_Pwm_Ip_PolarityType)EMIOS_PWM_IP_ACTIVE_LOW);
    }
    else
    {
        Emios_Pwm_Ip_SetEdgePolarity(Base, Channel, (Emios_Pwm_Ip_PolarityType)EMIOS_PWM_IP_ACTIVE_HIGH);
    }
    /* Enter GPIO output Mode */
    Emios_Pwm_Ip_SetPwmMode(Base, Channel, (Emios_Pwm_Ip_PwmModeType)EMIOS_PWM_IP_MODE_GPO);
    /* Stored the current Mode */
    Emios_Pwm_Ip_aCurrentModes[Instance][Channel] = (Emios_Pwm_Ip_PwmModeType)EMIOS_PWM_IP_MODE_GPO;
    /* Disable Channel interrupts */
    Emios_Pwm_Ip_SetInterruptRequest(Base, Channel, FALSE);
    /* Clear pending interrupt flag for the Channel */
    Emios_Pwm_Ip_ClearFlagEvent(Base, Channel);
    /* Confirm the Channel is idle state */
    Emios_Pwm_Ip_aCheckState[Instance][Channel] = (uint8)2U;
    SchM_Exit_Pwm_PWM_EXCLUSIVE_AREA_24();
}


&lt;/LI-CODE&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;Emios_Pwm_Ip_SetOutputState(INSTANCE_1,7,EMIOS_PWM_IP_OUTPUT_STATE_LOW);
TestDelay(0x1fff);
Emios_Pwm_Ip_SetOutputState(INSTANCE_1,7,EMIOS_PWM_IP_OUTPUT_STATE_HIGH);
TestDelay(0x1fff);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 07:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/emios-in-GPIO-output-mode/m-p/1621488#M21590</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2023-03-24T07:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: emios in GPIO output mode</title>
      <link>https://community.nxp.com/t5/S32K/emios-in-GPIO-output-mode/m-p/1621516#M21591</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 08:36:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/emios-in-GPIO-output-mode/m-p/1621516#M21591</guid>
      <dc:creator>WeiC</dc:creator>
      <dc:date>2023-03-24T08:36:14Z</dc:date>
    </item>
  </channel>
</rss>

