<?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 general query</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-general-query/m-p/732784#M2240</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;I am new to embedded programming. I was looking at an example in S32 DS with name 'hello'. I am using S32K144_100 EVB.&lt;/P&gt;&lt;P&gt;Can anyone explain&lt;/P&gt;&lt;P&gt;a). The meaning of (1&amp;lt;&amp;lt;PTC12) or ~(1&amp;lt;&amp;lt;PTC12) i.e.&amp;nbsp;1&amp;lt;&amp;lt;PTXn, where 'X' denotes port and 'n' denotes pin number.&lt;/P&gt;&lt;P&gt;b). Is it okay to first declare a pin as input/output and then configure it as GPIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;PTC-&amp;gt;PDDR &amp;amp;= ~(1&amp;lt;&amp;lt;PTC12); /* Port C12: Data Direction= input (default) */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PORTC-&amp;gt;PCR[12] = 0x00000110; /* Port C12: MUX = GPIO, input filter enabled */&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>Fri, 23 Mar 2018 11:04:05 GMT</pubDate>
    <dc:creator>shashankanand</dc:creator>
    <dc:date>2018-03-23T11:04:05Z</dc:date>
    <item>
      <title>S32DS general query</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-general-query/m-p/732784#M2240</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;I am new to embedded programming. I was looking at an example in S32 DS with name 'hello'. I am using S32K144_100 EVB.&lt;/P&gt;&lt;P&gt;Can anyone explain&lt;/P&gt;&lt;P&gt;a). The meaning of (1&amp;lt;&amp;lt;PTC12) or ~(1&amp;lt;&amp;lt;PTC12) i.e.&amp;nbsp;1&amp;lt;&amp;lt;PTXn, where 'X' denotes port and 'n' denotes pin number.&lt;/P&gt;&lt;P&gt;b). Is it okay to first declare a pin as input/output and then configure it as GPIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;PTC-&amp;gt;PDDR &amp;amp;= ~(1&amp;lt;&amp;lt;PTC12); /* Port C12: Data Direction= input (default) */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; PORTC-&amp;gt;PCR[12] = 0x00000110; /* Port C12: MUX = GPIO, input filter enabled */&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>Fri, 23 Mar 2018 11:04:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32DS-general-query/m-p/732784#M2240</guid>
      <dc:creator>shashankanand</dc:creator>
      <dc:date>2018-03-23T11:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS general query</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32DS-general-query/m-p/732785#M2241</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;You can start with EVB schematic - to find out where are for example LEDs connected&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/schematics/S32K144EVB-SCH.pdf" title="https://www.nxp.com/downloads/en/schematics/S32K144EVB-SCH.pdf"&gt;https://www.nxp.com/downloads/en/schematics/S32K144EVB-SCH.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details about peripherals, registers and so on you can look into reference manual:&lt;BR /&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf" title="https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf"&gt;https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good starting point for bitwise operations is for example here -&amp;nbsp;&lt;A class="link-titled" href="http://www.ocfreaks.com/tutorial-embedded-programming-basics-in-c-bitwise-operations/" title="http://www.ocfreaks.com/tutorial-embedded-programming-basics-in-c-bitwise-operations/"&gt;Tutorial : Embedded programming basics in C - bitwise operations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 12:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32DS-general-query/m-p/732785#M2241</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-23T12:47:34Z</dc:date>
    </item>
  </channel>
</rss>

