<?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のトピックNo Data on Port Pin</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/No-Data-on-Port-Pin/m-p/1089242#M17376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using S12GA 48 pin micro for one application. I had used it earlier and have a confidence into it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed same circuit for BDM and RESET. RESET is working fine and pull up to 5V correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BDM pullup is 2.2k and RESET pull up is 10K.&lt;/P&gt;&lt;P&gt;Now, I wanted to toggle the pin with following&amp;nbsp; simple code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void main(void) &lt;BR /&gt;{&lt;BR /&gt; MCU_init(); /* call Device Initialization */&lt;/P&gt;&lt;P&gt;HEARTBIT_LED = 1; // LED OFF Initially&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; PTT = ~PTT;&lt;BR /&gt; for(i=0; i&amp;lt;60000; i++);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My LED is connected to port T.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I operate it in single stepping debug mode then it works fine. But when I run the code. Pin is not toggling. I even check with Timer ISR. but, same result.&lt;/P&gt;&lt;P&gt;All code is working fine and that I can see in debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : I am using Codewarrior 5.2 and USBDM for the programming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2020 17:09:27 GMT</pubDate>
    <dc:creator>nkgavali1</dc:creator>
    <dc:date>2020-07-10T17:09:27Z</dc:date>
    <item>
      <title>No Data on Port Pin</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/No-Data-on-Port-Pin/m-p/1089242#M17376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using S12GA 48 pin micro for one application. I had used it earlier and have a confidence into it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed same circuit for BDM and RESET. RESET is working fine and pull up to 5V correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BDM pullup is 2.2k and RESET pull up is 10K.&lt;/P&gt;&lt;P&gt;Now, I wanted to toggle the pin with following&amp;nbsp; simple code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void main(void) &lt;BR /&gt;{&lt;BR /&gt; MCU_init(); /* call Device Initialization */&lt;/P&gt;&lt;P&gt;HEARTBIT_LED = 1; // LED OFF Initially&lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; PTT = ~PTT;&lt;BR /&gt; for(i=0; i&amp;lt;60000; i++);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My LED is connected to port T.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I operate it in single stepping debug mode then it works fine. But when I run the code. Pin is not toggling. I even check with Timer ISR. but, same result.&lt;/P&gt;&lt;P&gt;All code is working fine and that I can see in debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : I am using Codewarrior 5.2 and USBDM for the programming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 17:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/No-Data-on-Port-Pin/m-p/1089242#M17376</guid>
      <dc:creator>nkgavali1</dc:creator>
      <dc:date>2020-07-10T17:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: No Data on Port Pin</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/No-Data-on-Port-Pin/m-p/1089243#M17377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind posting compilable source next time? And since you didn't provide all must have's...&lt;/P&gt;&lt;P&gt;I guess you&amp;nbsp;didn't single step all 60000 iterations of inner for loop?&amp;nbsp;If&amp;nbsp;i is defined as char, then it&amp;nbsp;will never exit.&lt;/P&gt;&lt;P&gt;What exactly works while single stepping? Does LED toggle at least once? Did you initialize port direction register?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 12:20:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/No-Data-on-Port-Pin/m-p/1089243#M17377</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2020-07-13T12:20:31Z</dc:date>
    </item>
  </channel>
</rss>

