<?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 Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860748#M2803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PINS_DRV_SetPullSel(PORTC, 12,&amp;nbsp;PORT_INTERNAL_PULL_NOT_ENABLED);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;is an example for setting PUE = PUS = 0 for PTC12;&lt;/P&gt;&lt;P&gt;for other ports use: PORTA, PORTB, etc.&lt;/P&gt;&lt;P&gt;for pins use the number (e;g; for PTD5 use 5 as pin number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for question number 1, you can put your code (the SetPullSel call) into &lt;STRONG&gt;System Start Function Exit Code&lt;/STRONG&gt; section to be sure that this is called after the initialization of the pin. You have to do this to make sure the resulting application is working as expected, and the PUE, PUS values are not overwritten by a GPIO block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum it up, if you call&amp;nbsp;PINS_DRV_SetPullSel(PORTC, 12,&amp;nbsp;PORT_INTERNAL_PULL_NOT_ENABLED); in System Start Function Exit Code section of System Start block, you'll be able to change PUE and PUS for PTC12 pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2019 13:21:44 GMT</pubDate>
    <dc:creator>constantinrazva</dc:creator>
    <dc:date>2019-03-21T13:21:44Z</dc:date>
    <item>
      <title>Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860739#M2794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I configure the Weak Pull Up/ Pull Down of the GPIO block in Model Based Development (Simulink) blocks for the MPC57XX (V 3.0 release). I was not able to find a GPIO configuration block.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mico : MPC5744P&lt;/P&gt;&lt;P&gt;Matlab: 2018b&lt;/P&gt;&lt;P&gt;Software release: NXP Model Based Design Toolbox for MPC57xx (V 3.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 07:44:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860739#M2794</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-03-15T07:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860740#M2795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the GPI Read block, you can find Pull Resistor Select from the mask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77722iF90A57915D93D164/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 09:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860740#M2795</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-03-15T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860741#M2796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I configure the &lt;STRONG&gt;GPO&amp;nbsp;&lt;/STRONG&gt;for weak pull up and pull down (as shown in the picture below with PUS and PUE)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77581iB182F2505ADAA8A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help on on that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860741#M2796</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-03-15T10:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860742#M2797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the Pull resistor select you can select the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;None - PUE 0, PUS 0&lt;/P&gt;&lt;P&gt;Pulldown - PUE 1, PUS 0&lt;/P&gt;&lt;P&gt;Pullup - PUE 1, PUS 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you select None this will do the following: PUE: 0 (disabled); PUS: 0 (no effect since PUE is disabled).&lt;/P&gt;&lt;P&gt;If you select Pulldown this will do the following: PUE: 1 (enabled); PUS: 0 (pulldown enabled)&lt;/P&gt;&lt;P&gt;If you select Pullup this will do the following: PUE: 1 (enabled); PUS: 1 (pullup enabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code executed from the SDK is the following (code of interest in&amp;nbsp;&lt;STRONG&gt;bold&lt;/STRONG&gt;):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;if (config-&amp;gt;pullConfig != PORT_INTERNAL_PULL_NOT_ENABLED)&lt;/STRONG&gt;&lt;BR /&gt; {&lt;BR /&gt;#ifdef FEATURE_SIUL2_HAS_PULL_KEEPER&lt;BR /&gt; pinsValues |= SIUL2_MSCR_PKE(1);&lt;BR /&gt;#endif&lt;BR /&gt; &lt;STRONG&gt;pinsValues |= SIUL2_MSCR_PUE(1);&lt;/STRONG&gt;&lt;BR /&gt; &lt;STRONG&gt;pinsValues |= SIUL2_MSCR_PUS(config-&amp;gt;pullConfig);&lt;/STRONG&gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;STRONG&gt;else&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; /* default disable pull resistors */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:28:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860742#M2797</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-03-18T14:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860743#M2798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78155i24A57A0360D47A59/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The question is in regard to GPO. Can we change it for GPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:34:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860743#M2798</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-03-18T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860744#M2799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, did not notice you mentioned GPO in your last reply. For this you can not select anything. It is&amp;nbsp;PORT_INTERNAL_PULL_NOT_ENABLED by default when output is used. If you want to be able to change it, we can use custom code blocks to add a call to an SDK function (&lt;STRONG&gt;PINS_SetPullSel&lt;/STRONG&gt;) where you can set it to what you want. Let us know if this is what you want/need and we'll help you with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:47:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860744#M2799</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-03-18T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860745#M2800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the GPO's, we would like to change PUS and PUE bit. It would be great if a block for that can be created or you can guide us on how to do that for Model Based Design.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 14:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860745#M2800</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-03-19T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860746#M2801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll have to use a&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;System Start&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;block to insert custom code into your model. In this block you can declare in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;System Start Function Execution Code&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;section the code you want to insert - e.g.:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;&lt;/P&gt;PINS_DRV_SetPullSel(PORTA, 5,&amp;nbsp;PORT_INTERNAL_PULL_DOWN_ENABLED);&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;P&gt;PINS_DRV_SetPullSel take the following parameters:&lt;/P&gt;&lt;P&gt;PORT_Type *const base --&amp;gt; here you'll declare the port you want to use (e.g. PORTA, PORTB, etc)&lt;/P&gt;&lt;P&gt;uint32_t pin --&amp;gt; here you'll enter the pin number (e.g.: 5 for PORTn5)&lt;/P&gt;&lt;P&gt;port_pull_config_t --&amp;gt; here you'll put one of the following (to control PUE and PUS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE height="173" style="color: #000000; border: 1px solid #a8b8d9; margin-bottom: 10px; width: 587px;"&gt;&lt;TBODY style="border: inherit solid inherit;"&gt;&lt;TR style="border: inherit solid inherit;"&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 385px;"&gt;PORT_INTERNAL_PULL_NOT_ENABLED&amp;nbsp;&lt;/TD&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 385px;"&gt;PUE 0, PUS 0&lt;/TD&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 175px;"&gt;&lt;P style="margin-bottom: 2px;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit solid inherit;"&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 385px;"&gt;&lt;A style="color: #3d578c; font-weight: normal; text-decoration: none;"&gt;&lt;/A&gt;PORT_INTERNAL_PULL_DOWN_ENABLED&amp;nbsp;&lt;/TD&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 385px;"&gt;&lt;A style="color: #3d578c; font-weight: normal; text-decoration: none;"&gt;&lt;/A&gt;PUE 1, PUS 0&lt;/TD&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 175px;"&gt;&lt;P style="margin-bottom: 2px;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit solid inherit;"&gt;&lt;TD class="" style="border-bottom: none; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 385px;"&gt;&lt;A style="color: #3d578c; font-weight: normal; text-decoration: none;"&gt;&lt;/A&gt;PORT_INTERNAL_PULL_UP_ENABLED&lt;/TD&gt;&lt;TD class="" style="border-bottom: none; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px; width: 385px;"&gt;&lt;A style="color: #3d578c; font-weight: normal; text-decoration: none;"&gt;&lt;/A&gt;PUE 1, PUS 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll just have to make sure this custom code is generated after the code from GPO blocks - you can control this by selecting block priorities and by placing in different parts of the System Start block (function declaration/execution/exit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 08:32:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860746#M2801</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-03-20T08:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860747#M2802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You'll just have to make sure this custom code is generated after the code from GPO blocks - you can control this by selecting block priorities and by placing in different parts of the System Start block (function declaration/execution/exit).&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;1. The priority of the "System Start Block" must be lower than which block? (I have attached a model for you, in original question)&lt;/P&gt;&lt;P&gt;2. In S32 Design Studio Documentation, I can not find parameter explaination for the PinSettings Function -&amp;gt;&amp;nbsp;PinSettings documentation -&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" style="padding-left: 15px; padding-right: 10px;" valign="top" width="100%"&gt;&lt;DIV class=""&gt;&lt;UL&gt;&lt;LI&gt;&lt;UL&gt;PINS_DRV_SetPullSel(PORT_Type * const base,uint32_t pin,port_pull_config_t pullConfig)&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;(see below snapshot), I mean, I do not know what are the values of Port_Type for Pin PTC12 (as in the attached model)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72716iDC7413B94B2AE6F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 12:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860747#M2802</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-03-21T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860748#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PINS_DRV_SetPullSel(PORTC, 12,&amp;nbsp;PORT_INTERNAL_PULL_NOT_ENABLED);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;is an example for setting PUE = PUS = 0 for PTC12;&lt;/P&gt;&lt;P&gt;for other ports use: PORTA, PORTB, etc.&lt;/P&gt;&lt;P&gt;for pins use the number (e;g; for PTD5 use 5 as pin number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for question number 1, you can put your code (the SetPullSel call) into &lt;STRONG&gt;System Start Function Exit Code&lt;/STRONG&gt; section to be sure that this is called after the initialization of the pin. You have to do this to make sure the resulting application is working as expected, and the PUE, PUS values are not overwritten by a GPIO block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum it up, if you call&amp;nbsp;PINS_DRV_SetPullSel(PORTC, 12,&amp;nbsp;PORT_INTERNAL_PULL_NOT_ENABLED); in System Start Function Exit Code section of System Start block, you'll be able to change PUE and PUS for PTC12 pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 13:21:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860748#M2803</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-03-21T13:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860749#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a last question.&lt;/P&gt;&lt;P&gt;Where can I find S32K SDK Manual, with precisely the information you gave me.&lt;/P&gt;&lt;P&gt;Where can i find the Function description with parameter values as I found the function but not the parameter values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 13:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860749#M2804</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-03-21T13:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring Pull Up/Pull Down for GPIO for MDB MPC57XX</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860750#M2805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can search &lt;STRONG&gt;PORTA&lt;/STRONG&gt; or other port (Search is in the top right corner) - here you'll find the definition of PORTA as being&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#define PORTA&amp;nbsp;&amp;nbsp;&amp;nbsp;((&lt;A _jive_internal="true" href="https://community.nxp.com/message/struct_p_o_r_t___type.html" style="color: #4665a2; font-weight: bold; text-decoration: none;"&gt;PORT_Type&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;*)(&lt;A _jive_internal="true" href="https://community.nxp.com/message/_m_p_c5744_p__features_8h.html#afe29a26f0560b34361286ff41a751784" style="color: #4665a2; font-weight: bold; text-decoration: none;"&gt;SIUL2_MSCR_BASE&lt;/A&gt;+0x00))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The rest are defined below this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pin number is just a number - number of the pin - these don't have defines or something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last one, the &lt;STRONG&gt;port_pull_config_t&lt;/STRONG&gt; you can find by searching&amp;nbsp;it:&lt;/P&gt;&lt;TABLE style="color: #000000; border: 1px solid #a8b8d9; margin-bottom: 10px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH colspan="2" style="color: #253555; background-color: #e2e8f2; border-bottom: 1px solid #a8b8d9; font-size: 12.6px; padding: 5px 7px 4px;"&gt;Enumerator&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px;"&gt;&lt;A style="color: #3d578c; font-weight: normal; text-decoration: none;"&gt;&lt;/A&gt;PORT_INTERNAL_PULL_DOWN_ENABLED&amp;nbsp;&lt;/TD&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; padding: 3px 7px 2px;"&gt;&lt;P style="margin-bottom: 2px;"&gt;internal pull-down resistor is enabled.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px;"&gt;&lt;A style="color: #3d578c; font-weight: normal; text-decoration: none;"&gt;&lt;/A&gt;PORT_INTERNAL_PULL_UP_ENABLED&amp;nbsp;&lt;/TD&gt;&lt;TD class="" style="border-bottom: 1px solid #a8b8d9; padding: 3px 7px 2px;"&gt;&lt;P style="margin-bottom: 2px;"&gt;internal pull-up resistor is enabled.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" style="border-bottom: none; border-right: 1px solid #a8b8d9; padding: 3px 7px 2px;"&gt;&lt;A style="color: #3d578c; font-weight: normal; text-decoration: none;"&gt;&lt;/A&gt;PORT_INTERNAL_PULL_NOT_ENABLED&amp;nbsp;&lt;/TD&gt;&lt;TD class="" style="border-bottom: none; padding: 3px 7px 2px;"&gt;&lt;P style="margin-bottom: 2px;"&gt;internal pull-down/up resistor is disabled.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;For information on how the function is implemented, you can find&amp;nbsp;PINS_SetPullSel (as this is the function called by&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #fbfcfd; text-indent: -53px; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/group__pins__siul2__driver.html#ga3541e5d43376357c7d8436045b4be6f3" style="color: #4665a2; background-color: #fbfcfd; text-decoration: none; text-indent: -53px; font-size: 13px;"&gt;PINS_DRV_SetPullSel&lt;/A&gt;) in the siul2_hw_access.h file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;static inline void PINS_SetPullSel(PORT_Type * const base,&lt;BR /&gt; uint16_t pin,&lt;BR /&gt; port_pull_config_t pullConfig)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; uint32_t regVal;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if (pullConfig == PORT_INTERNAL_PULL_NOT_ENABLED)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; base-&amp;gt;MSCR[pin] &amp;amp;= ~SIUL2_MSCR_PUE_MASK;&lt;BR /&gt;#ifdef FEATURE_SIUL2_HAS_PULL_KEEPER&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;base-&amp;gt;MSCR[pin] &amp;amp;= ~SIUL2_MSCR_PKE_MASK;&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regVal = base-&amp;gt;MSCR[pin];&lt;BR /&gt;#ifdef FEATURE_SIUL2_HAS_PULL_KEEPER&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regVal |= SIUL2_MSCR_PKE_MASK;&lt;BR /&gt;#endif&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regVal |= SIUL2_MSCR_PUE_MASK;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regVal &amp;amp;= ~SIUL2_MSCR_PUS_MASK;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; regVal |= SIUL2_MSCR_PUS(pullConfig);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; base-&amp;gt;MSCR[pin] = regVal;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 13:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Configuring-Pull-Up-Pull-Down-for-GPIO-for-MDB-MPC57XX/m-p/860750#M2805</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-03-21T13:45:25Z</dc:date>
    </item>
  </channel>
</rss>

