<?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: Output Pin Manipulation for Coldfire 5212 (CodeWarrior) in CodeWarrior for QorIQ</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Output-Pin-Manipulation-for-Coldfire-5212-CodeWarrior/m-p/128877#M366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to set one or several pin, you have to do this:&lt;BR /&gt;MCF_GPIO_PORTTA = portValue;&lt;BR /&gt;or using Port pin data/Set dataregister:&lt;BR /&gt;MCF_GPIO_SETTA = MCF_GPIO_PORTTA_PORTTA2; // port set register&lt;BR /&gt; // Cf doc chap 11.6.3&lt;BR /&gt;to clear use:&lt;BR /&gt;MCF_GPIO_CLRTA = ~MCF_GPIO_PORTTA_PORTTA2; // port clear register&lt;BR /&gt; // Cf doc chap 11.6.4&lt;BR /&gt;if you want to read the real pin state use:&lt;BR /&gt;uint8 yourVar;&lt;BR /&gt;yourVar = MCF_GPIO_SETTA; // chap 11.6.3&lt;BR /&gt;&lt;BR /&gt;Don't forget to set the Data Direction Degister (chap 11.6.2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Emmanuel&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2006 19:00:47 GMT</pubDate>
    <dc:creator>Nouchi</dc:creator>
    <dc:date>2006-09-11T19:00:47Z</dc:date>
    <item>
      <title>Output Pin Manipulation for Coldfire 5212 (CodeWarrior)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Output-Pin-Manipulation-for-Coldfire-5212-CodeWarrior/m-p/128876#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to raise and lower signals on Port TA (General Purpose Timers/PWM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Port TA (to be set for General Purpose I/O):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GPT3 (Pin 43) – DCD1 (Uart1 - Modem)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GPT2 (Pin 42) – DTR1 (Uart1 - Modem)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GPT1 (Pin 41) – DCD0 (Uart0 - Host)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GPT0 (Pin 40) – DTR0 (Uart0 - Host)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Port TA Setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// GPT3 and GPT0 as GPIO inputs (DCD Modem and DTR Host)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// GPT2 and GPT1 as GPIO outputs (DTR Modem and DCD Host)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_DDRTA = 0 | MCF_GPIO_DDRTA_DDRTA2 //DTR Modem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; | MCF_GPIO_DDRTA_DDRTA1; //DCD Host&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_PTAPAR=0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to raise or lower DTR1 and DCD0 pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Raise DTR1 pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_PORTTA = MCF_GPIO_SETTA | MCF_GPIO_PORTTA_PORTTA2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Raise DCD0 pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_PORTTA = MCF_GPIO_SETTA | MCF_GPIO_PORTTA_PORTTA1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Lower DTR1 pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_PORTTA = MCF_GPIO_CLRTA | MCF_GPIO_PORTTA_PORTTA2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Lower DCD0 pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_PORTTA = MCF_GPIO_CLRTA | MCF_GPIO_PORTTA_PORTTA1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does not seem to work. Is this the correct code format to raise and lower outputs on the Coldfire 5212. Is there any code examples to manipulate output pins?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 21:22:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Output-Pin-Manipulation-for-Coldfire-5212-CodeWarrior/m-p/128876#M365</guid>
      <dc:creator>JimMcP</dc:creator>
      <dc:date>2006-08-31T21:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Output Pin Manipulation for Coldfire 5212 (CodeWarrior)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Output-Pin-Manipulation-for-Coldfire-5212-CodeWarrior/m-p/128877#M366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to set one or several pin, you have to do this:&lt;BR /&gt;MCF_GPIO_PORTTA = portValue;&lt;BR /&gt;or using Port pin data/Set dataregister:&lt;BR /&gt;MCF_GPIO_SETTA = MCF_GPIO_PORTTA_PORTTA2; // port set register&lt;BR /&gt; // Cf doc chap 11.6.3&lt;BR /&gt;to clear use:&lt;BR /&gt;MCF_GPIO_CLRTA = ~MCF_GPIO_PORTTA_PORTTA2; // port clear register&lt;BR /&gt; // Cf doc chap 11.6.4&lt;BR /&gt;if you want to read the real pin state use:&lt;BR /&gt;uint8 yourVar;&lt;BR /&gt;yourVar = MCF_GPIO_SETTA; // chap 11.6.3&lt;BR /&gt;&lt;BR /&gt;Don't forget to set the Data Direction Degister (chap 11.6.2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Emmanuel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 19:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-QorIQ/Output-Pin-Manipulation-for-Coldfire-5212-CodeWarrior/m-p/128877#M366</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2006-09-11T19:00:47Z</dc:date>
    </item>
  </channel>
</rss>

