<?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のトピックRe: Port Pin getting spike when written with value LOW.</title>
    <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111805#M49645</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225661"&gt;@ManuSharma&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The transition from STANDBY to RUN is always through a system reset.&lt;/P&gt;
&lt;P&gt;Yes, the MCU performs it on it own.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1749191209282.png" style="width: 643px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341702i70EC72B9EB1621FD/image-dimensions/643x526?v=v2" width="643" height="526" role="button" title="danielmartynek_0-1749191209282.png" alt="danielmartynek_0-1749191209282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN13414.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN13414.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 06:29:46 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2025-06-06T06:29:46Z</dc:date>
    <item>
      <title>Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2104374#M49193</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;We are currently working with the NXP S32K132 controller, and during startup (after Power-On Reset), we are observing a voltage spike (High) on some port pins, even though we are explicitly setting their output level to LOW.&lt;/P&gt;&lt;P&gt;Issue Details:&lt;BR /&gt;We are configuring the following port pins in assembly code during early startup:&lt;/P&gt;&lt;P&gt;PTD14 (GPIO[110])&lt;BR /&gt;PTD15 (GPIO[111])&lt;BR /&gt;PTD17 (GPIO[113])&lt;BR /&gt;Despite setting these pins to LOW, we observe a short High-level spike immediately after reset, before the pin level stabilizes to LOW.&lt;/P&gt;&lt;P&gt;Current Initialization Sequence:&lt;BR /&gt;1. Retrieve GPDO (GPIO Data Output) address.&lt;BR /&gt;2. Write LOW level to the GPDO (i.e., set output to 0).&lt;BR /&gt;3. Retrieve MSCR (Multiplexed Signal Configuration Register) address.&lt;BR /&gt;4. Write configuration data to MSCR (set as 0x280000, which likely configures it as output, push-pull, no pull-up/down, etc.).&lt;/P&gt;&lt;P&gt;Observation:&lt;BR /&gt;The spike appears during Step 2, i.e., while writing LOW to the GPDO, even though we have not set the pin HIGH at any point.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Questions:&lt;BR /&gt;1. Is there any default output state or internal pull-up active immediately after Power-On Reset that could be causing the spike?&lt;/P&gt;&lt;P&gt;2. Is the order of operations correct, or should MSCR be configured before writing to GPDO to avoid glitching?&lt;/P&gt;&lt;P&gt;3. Is there a recommendation from NXP to avoid startup spikes on GPIOs configured as outputs?&lt;/P&gt;&lt;P&gt;We would appreciate any guidance or clarification to ensure clean, spike-free initialization on these output pins.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 719px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339705iBDF01F487F70AA58/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Manu Sharma&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 10:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2104374#M49193</guid>
      <dc:creator>ManuSharma</dc:creator>
      <dc:date>2025-05-26T10:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2104984#M49231</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225661"&gt;@ManuSharma&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm not able to reproduce it on S32K312 EVB.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;	IP_SIUL2-&amp;gt;GPDO110 = 0;  /* PTD14 */
	IP_SIUL2-&amp;gt;GPDO111 = 1;  /* PTD15 */
	IP_SIUL2-&amp;gt;GPDO113 = 0;  /* PTD17 */

	IP_SIUL2-&amp;gt;MSCR[110] = 0x00280000;
	IP_SIUL2-&amp;gt;MSCR[111] = 0x00280000;
	IP_SIUL2-&amp;gt;MSCR[113] = 0x00280000;

    for(;;)
    {
    }&lt;/LI-CODE&gt;
&lt;P&gt;I see PTD15 is driven high, whole PTD14 stays low (analog signal)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1748330322153.png" style="width: 774px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339866iB8BCCD027F9150CF/image-dimensions/774x449?v=v2" width="774" height="449" role="button" title="danielmartynek_0-1748330322153.png" alt="danielmartynek_0-1748330322153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks to me like the spike to bias voltage during power up.&lt;/P&gt;
&lt;P&gt;The spike follows VDD until the MCU becomes biased at ~0.7V.&lt;/P&gt;
&lt;P&gt;Can you measure VDD along with the pins?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 07:23:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2104984#M49231</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-05-27T07:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111183#M49615</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Apologies for the delayed response — we were engaged with other activities.&lt;/P&gt;&lt;P&gt;We have observed additional behavior related to pin state spikes in various scenarios, particularly when waking up from Low Power Mode. Please find the details below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps Followed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Set the output value of the pin to LOW.&lt;/P&gt;&lt;P&gt;2. Entered Low Power Mode (Sleep/Standby).&lt;/P&gt;&lt;P&gt;3. Triggered wakeup from low power mode.&lt;/P&gt;&lt;P&gt;4. Observed a brief spike (HIGH) on the pins before they returned to LOW.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Behavior:&lt;/STRONG&gt;&lt;BR /&gt;The software should retain the pin state during Low Power Mode and restore it immediately after wakeup — i.e., the pin should remain LOW throughout.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual Behavior:&lt;/STRONG&gt;&lt;BR /&gt;After wakeup, a 3ms spike (HIGH) is observed, after which the pin returns to LOW.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Debugging Observation:&lt;/STRONG&gt;&lt;BR /&gt;We enabled the "PortPin Pull Keeper" setting, and after doing so, the spike was no longer observed.&lt;/P&gt;&lt;P&gt;As per the reference manual, the Pull Keeper is designed to retain the pin state while the MCU is in Standby mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Request for Clarification:&lt;/STRONG&gt;&lt;BR /&gt;We would like your input on the following points:&lt;/P&gt;&lt;P&gt;1. Is enabling the "PortPin Pull Keeper" a valid and recommended solution in this case?&lt;BR /&gt;→ Our understanding was that the MCU should retain the pin state during standby even without this setting enabled.&lt;/P&gt;&lt;P&gt;2. Could the spike be due to the pin being in a floating/uncontrollable/high-impedance state during the transition if yes then can let us know what might be the reason for this?&lt;/P&gt;&lt;P&gt;3. Aside from the Pull Keeper setting, are there any other configurations we should verify to ensure stable pin behavior during Low Power Mode?&lt;/P&gt;&lt;P&gt;We appreciate your insights and clarification on this matter.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Manu Sharma&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 09:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111183#M49615</guid>
      <dc:creator>ManuSharma</dc:creator>
      <dc:date>2025-06-05T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111360#M49627</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225661"&gt;@ManuSharma&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Even without PadKeeping enabled, the MCU retains output states during Standby mode.&lt;/P&gt;
&lt;P&gt;However, the purpose of PadKeeping is to ensure that the state of the pins is preserved across the wake-up reset - not just during Standby, but also through the transition back to RUN mode.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The "PortPin Pull Keeper" option enables PadKeeping locally for individual pads.&lt;/P&gt;
&lt;P&gt;PadKeeping must also be enabled globally in the MCU driver for Standby mode (DCM.DCMRWF1[STANDBY_IO_CONFIG] == 0)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;After Wake-Up Reset:&lt;/P&gt;
&lt;P&gt;Reconfigure the pins from their default reset state to the configuration they had before entering Standby mode (via the PORT driver).&lt;BR /&gt;After that, disable PadKeeping globally in the MCU driver (power mode configuration).&lt;/P&gt;
&lt;P&gt;This sequence ensures that the pins retain their intended state throughout the entire low-power cycle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Yes&lt;/P&gt;
&lt;P&gt;2. Yes, the MCU goes through a system reset.&lt;/P&gt;
&lt;P&gt;3. No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 14:11:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111360#M49627</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-05T14:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111367#M49628</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not understand about the "&lt;SPAN&gt;wake-up reset".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you mean when SW comes out from standby mode due to wakeup source it got reset internally and set the default level to the port pins?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If yes then does MCU perform this operation("wake-up reset") on its on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Manu Sharma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 14:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111367#M49628</guid>
      <dc:creator>ManuSharma</dc:creator>
      <dc:date>2025-06-05T14:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111805#M49645</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225661"&gt;@ManuSharma&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The transition from STANDBY to RUN is always through a system reset.&lt;/P&gt;
&lt;P&gt;Yes, the MCU performs it on it own.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1749191209282.png" style="width: 643px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341702i70EC72B9EB1621FD/image-dimensions/643x526?v=v2" width="643" height="526" role="button" title="danielmartynek_0-1749191209282.png" alt="danielmartynek_0-1749191209282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN13414.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN13414.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 06:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2111805#M49645</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-06T06:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2115385#M49846</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;We have one more point to clarify regarding the &lt;STRONG&gt;pad type differences&lt;/STRONG&gt; listed in the &lt;STRONG&gt;S32K312 IOMUX sheet&lt;/STRONG&gt;. As per the documentation, the following pins have different pad types:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;PTD17 (GPIO113)&lt;/STRONG&gt; – c40esf3_p_io_standard_mv&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;PTD15 (GPIO111)&lt;/STRONG&gt; – c40esf3_p_io_standard_plus_mv&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;PTD14 (GPIO110)&lt;/STRONG&gt; – c40esf3_p_io_standard_plus_mv&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;STRONG&gt;Questions for Clarification:&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;What is the &lt;STRONG&gt;technical difference&lt;/STRONG&gt; between c40esf3_p_io_standard_mv and c40esf3_p_io_standard_plus_mv pad types?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Since &lt;STRONG&gt;PTD15&lt;/STRONG&gt; and &lt;STRONG&gt;PTD14&lt;/STRONG&gt; use the c40esf3_p_io_standard_plus_mv pad type, is this the reason why &lt;STRONG&gt;spikes are observed&lt;/STRONG&gt; on these two pins?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do we need to &lt;STRONG&gt;enable "PortPin Pull Keeper"&lt;/STRONG&gt; for PTD15 and PTD14 to avoid spikes during transitions (e.g., startup or wakeup), specifically because of their &lt;STRONG&gt;pad type&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We would appreciate your clarification on the above points to ensure proper configuration and signal stability.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;&lt;STRONG&gt;Manu Sharma&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:47:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2115385#M49846</guid>
      <dc:creator>ManuSharma</dc:creator>
      <dc:date>2025-06-12T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Port Pin getting spike when written with value LOW.</title>
      <link>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2115443#M49848</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225661"&gt;@ManuSharma&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;Please refer to the S32K3xx Datasheet for details on pad types.&lt;BR /&gt;Specifically, see:&lt;/P&gt;
&lt;P&gt;Table 25 – GPIO DC Electrical Specifications, 5.0V (4.5V – 5.5V)&lt;/P&gt;
&lt;P&gt;Table 26 – 5.0V (4.5V – 5.5V) GPIO Output AC Specifications&lt;/P&gt;
&lt;P&gt;These tables outline the electrical characteristics and timing behavior of the GPIOs based on pad type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;P&gt;I was unable to reproduce the issue on my EVB.&lt;BR /&gt;The behavior you're seeing could be due tot he external circuitry connected to the pins, or&lt;BR /&gt;Electromagnetic interference (EMI).&lt;/P&gt;
&lt;P&gt;Note that the pins are in High-Z mode.&lt;BR /&gt;If you connect them to VSS via a weak external pull-down, you should not observe the spike.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.&lt;/P&gt;
&lt;P&gt;The "PortPin Pull Keeper" is active only during wake-up.&lt;BR /&gt;It ensures that the output retains its state (e.g., LOW) throughout the wake-up reset, until pad keeping is disabled. However, any other type of reset (e.g., power-on reset, software reset) will reset the pin states.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 13:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-Pin-getting-spike-when-written-with-value-LOW/m-p/2115443#M49848</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-12T13:34:14Z</dc:date>
    </item>
  </channel>
</rss>

