<?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>8-bit MicrocontrollersのトピックRe: S9S08SG16 ICS TPM error</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/S9S08SG16-ICS-TPM-error/m-p/840017#M22682</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 not sure if the problem is the way that you are cleaning the flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I normally use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void interrupt VectorNumber_Vtpm1ovf TPM1ovfISR (void)&lt;BR /&gt;{&lt;BR /&gt; //Clear interrupt flag&lt;BR /&gt; (void)TPM1SC;&lt;BR /&gt; TPM1SC_TOF = 0;&lt;BR /&gt; PTBD_PTBD6 ^= 1;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 00:59:49 GMT</pubDate>
    <dc:creator>vicentegomez</dc:creator>
    <dc:date>2018-10-31T00:59:49Z</dc:date>
    <item>
      <title>S9S08SG16 ICS TPM error</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/S9S08SG16-ICS-TPM-error/m-p/840016#M22681</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; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I use the 9S08SG16 and&lt;SPAN&gt;&amp;nbsp; only configured&amp;nbsp; &amp;nbsp;ICS&amp;nbsp; TPM&amp;nbsp; GPIO to confirm my ICS .&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; But the output is different from what I expected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; My code is very simple.&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;void Init_ICS(void)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &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; ICSC1 = 0x04;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ICSC2 = 0x00;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;void Init_TPM1(void)&lt;BR /&gt;&amp;nbsp; &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;TPM1SC =0x4c;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TPM1CNTH =0;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interrupt VectorNumber_Vtpm1ovf void TPM1_OVF_ISR(void)&lt;BR /&gt;{&lt;BR /&gt; if((TPM1SC &amp;amp; 0x80)==0x80)&lt;BR /&gt; {&lt;BR /&gt; TPM1SC_TOF = 0; //溢出标志位 &lt;BR /&gt; &lt;BR /&gt; IC1_Toogle;&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76393i23EF1FC2B2C71854/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.bmp" alt="pastedImage_1.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 10:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/S9S08SG16-ICS-TPM-error/m-p/840016#M22681</guid>
      <dc:creator>duffytang</dc:creator>
      <dc:date>2018-10-26T10:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: S9S08SG16 ICS TPM error</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/S9S08SG16-ICS-TPM-error/m-p/840017#M22682</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 not sure if the problem is the way that you are cleaning the flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I normally use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void interrupt VectorNumber_Vtpm1ovf TPM1ovfISR (void)&lt;BR /&gt;{&lt;BR /&gt; //Clear interrupt flag&lt;BR /&gt; (void)TPM1SC;&lt;BR /&gt; TPM1SC_TOF = 0;&lt;BR /&gt; PTBD_PTBD6 ^= 1;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 00:59:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/S9S08SG16-ICS-TPM-error/m-p/840017#M22682</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2018-10-31T00:59:49Z</dc:date>
    </item>
  </channel>
</rss>

