<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: 5282 Ports</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5282-Ports/m-p/131663#M962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;You can see below in MCF5282UM:&lt;BR /&gt;&lt;BR /&gt;Reading a PORTn register returns the current values in the register, not the port n pin values.&lt;BR /&gt;And reading a PORTnP/SETn register returns the current state of the port n pins.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2007 13:31:36 GMT</pubDate>
    <dc:creator>Tang</dc:creator>
    <dc:date>2007-04-25T13:31:36Z</dc:date>
    <item>
      <title>5282 Ports</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5282-Ports/m-p/131661#M960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;All of the ports that I like to used like IN PUT port I can't use them like IN PUT as PORTB, PORTC, PORTD and this registers are of 8 bits&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define MCF5282_GPIO_PBCDPAR&amp;nbsp; &amp;nbsp;(*(vuint8&amp;nbsp; *)(void *)(&amp;amp;__IPSBAR[0x100050]))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and using the similar instrution of program:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM style=": ; color: #009900; font-size: 2;"&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCF5282_GPIO_PBCDPAR = 0x00&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM style=": ; color: #009900; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCF5282_GPIO_DDRB = 0xFF;&amp;nbsp;&amp;nbsp; //OUT PUT PORT&lt;/EM&gt; &lt;DIV&gt;&lt;EM style=": ; color: #009900; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCF5282_GPIO_DDRC = 0X00;&amp;nbsp;&amp;nbsp; //IN PUT PORT&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM style=": ; color: #009900; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCF5282_GPIO_PORTB =&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF5282_GPIO_PORTC;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM style=": ; color: #009900; font-size: 2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM style=": ; color: #009900; font-size: 2;"&gt;return 0;&lt;BR /&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With the last program I can do that the PORTB oun the data that the PORTC recive, I don't know if the declaration of the register are in a wrong way or what if some body have an example of program that declarete a IN PUT port I will be thanksful &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif"&gt;&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 03:24:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5282-Ports/m-p/131661#M960</guid>
      <dc:creator>Lucho</dc:creator>
      <dc:date>2007-04-25T03:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: 5282 Ports</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5282-Ports/m-p/131662#M961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, How do you use this micro-controller: in master mode or single chip mode? in master mode ports A,B,C D have dedicated function (address bus, data bus) so it is quite normally to behave different than you like. Regards, Pai&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 12:10:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5282-Ports/m-p/131662#M961</guid>
      <dc:creator>Pai</dc:creator>
      <dc:date>2007-04-25T12:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: 5282 Ports</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5282-Ports/m-p/131663#M962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;You can see below in MCF5282UM:&lt;BR /&gt;&lt;BR /&gt;Reading a PORTn register returns the current values in the register, not the port n pin values.&lt;BR /&gt;And reading a PORTnP/SETn register returns the current state of the port n pins.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 13:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5282-Ports/m-p/131663#M962</guid>
      <dc:creator>Tang</dc:creator>
      <dc:date>2007-04-25T13:31:36Z</dc:date>
    </item>
  </channel>
</rss>

