<?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>S12 / MagniV MicrocontrollersのトピックRe: PortE as GPIO in DT256</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181842#M6669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default in single chip mode all PORTE pins are GPIO.&lt;/P&gt;&lt;P&gt;Normal&amp;nbsp;BDM debugger setup involves special single chip mode, where NECLK bit is clear and you have ECLK signal outputed to PE4. To disable ECLK on PE4 you should set NECLK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Special care is required for PE5-7 pins. Since these are MODA, MODB and XCLKS inputs on reset, they should be not driven at power on/reset by&amp;nbsp;hardware, you are interfacing. Pull down/up resistors should determine required initial MODA,MODB and XCLKS settings at power on or resets. You may use these pins as GPIO outputs, but then you should provide that no excessive capacitance or load is applied to these pins at power on / reset, which may make your MCU boot with wrong MODA / MODB / XCLKS settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2011 15:50:18 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-11-11T15:50:18Z</dc:date>
    <item>
      <title>PortE as GPIO in DT256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181840#M6667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I want to use the Port E as GPIO in 9S12DT256, but I can not config the PEAR. In the datasheet I found it, I don't know how to use Port E as GPIO. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 09:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181840#M6667</guid>
      <dc:creator>RedRiver</dc:creator>
      <dc:date>2011-11-11T09:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: PortE as GPIO in DT256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181841#M6668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The port E are general purpose input or output pins link other standard S12 MCU.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PE7&amp;nbsp;-&amp;nbsp;NECLK – setup in the register ECLKCTL&lt;BR /&gt;PE6, PE5 – &amp;nbsp;general purpose input or output pinthe same functionality as in S12 devices (MODB, MODA during reset)&lt;/P&gt;&lt;P&gt;PE4 - ECLKX2 – setup in the register ECLKCTL&lt;BR /&gt;PE3, PE2 – are controlled by MCU mode setup. If the MCU is used in expanded mode then these bits are controlled&lt;BR /&gt;by MEBI interface.&lt;BR /&gt;PE1(\IRQ) – input only (if \irq is used then it must be enabled in IRQCR register)&lt;BR /&gt;PE0(\XIRQ) – input only (\XIRQ functionality is used only if X bit in the CCR is cleared. However this pin is able to wake up the MCU from stop mod even \XIRQ is not used)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also you should set registers DDRE, RDRIV and PUCR to get required functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yongxin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 11:40:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181841#M6668</guid>
      <dc:creator>Yongxin</dc:creator>
      <dc:date>2011-11-11T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: PortE as GPIO in DT256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181842#M6669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default in single chip mode all PORTE pins are GPIO.&lt;/P&gt;&lt;P&gt;Normal&amp;nbsp;BDM debugger setup involves special single chip mode, where NECLK bit is clear and you have ECLK signal outputed to PE4. To disable ECLK on PE4 you should set NECLK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Special care is required for PE5-7 pins. Since these are MODA, MODB and XCLKS inputs on reset, they should be not driven at power on/reset by&amp;nbsp;hardware, you are interfacing. Pull down/up resistors should determine required initial MODA,MODB and XCLKS settings at power on or resets. You may use these pins as GPIO outputs, but then you should provide that no excessive capacitance or load is applied to these pins at power on / reset, which may make your MCU boot with wrong MODA / MODB / XCLKS settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 15:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181842#M6669</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-11-11T15:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: PortE as GPIO in DT256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181843#M6670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because of the reasons stated by Kef, I would advise against using PE5-7 as GPIO. I've been troubleshooting HCS12s for almost 10 years, and one of the most common design errors seem to be either obscure circuits connected to PE7 / XCLKS, or wrong logic level applied to it at startup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that Freescale have made some wonderfully confusing documentation over the crystal selection, where they state that XCLKS should be high to select a certain oscillator in the oscillator part of the manual, while at another place in the device user guide, they say that PE7 should be low. The secret trick here is to realize that the Freescale manual actually isn't contradicting itself, because XCLKS is referred to as /XCLKS in the real world outside the manual, it is an inverted signal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plenty of HCS12 designs have failed because of this - if you pick a Colpitts oscillator but have a Pierce outfitted on the PCB, the CPU will disapprove, but start up in self-clock mode ("limp home").&amp;nbsp; 5V on PE7 pin at startup = Colpitts, 0V on PE7 pin at startup = Pierce or external oscillator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 22:59:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PortE-as-GPIO-in-DT256/m-p/181843#M6670</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2011-11-14T22:59:46Z</dc:date>
    </item>
  </channel>
</rss>

