<?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 Interrupt Issues in MC9S12XEG128MAL Models in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-Issues-in-MC9S12XEG128MAL-Models/m-p/1043221#M17147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;MC9S12XEG128MAL MCU is used to measure frequency.&lt;BR /&gt;A problem was found here.&lt;BR /&gt;There is a problem that if you dial the interrupt to 4 channels at the same time, the channel does not operate normally.&lt;BR /&gt;I'm looking for a reason and solution for this problem.&lt;BR /&gt;The details are as follows:&lt;/P&gt;&lt;P&gt;TEST environment&lt;/P&gt;&lt;P&gt;1. MCU: MC9S12XEG128MAL&lt;/P&gt;&lt;P&gt;2. Use 4 channels of external interrupt&lt;BR /&gt;=&amp;gt; Set up rising edge detection, interrupt priority 7 (all 4 channels are the same)&lt;/P&gt;&lt;P&gt;3. External Input Signal: Function Generator&lt;BR /&gt;=&amp;gt; Square waveforms from 10 Hz to 4 kHz simultaneously entering a 4-channel signal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: Interrupt is missing when entering 4 channels simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want you to tell me the solution.&lt;BR /&gt;If you have a problem with MC9S12XEG128MAL model, please introduce MCU that accurately recognizes interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;안녕하세요?&lt;BR /&gt;&lt;SPAN&gt;MC9S12XEG128MAL&amp;nbsp;&lt;/SPAN&gt;MCU를 사용하고 있고, 주파수를 측정하는 용도로 쓰고 있습니다.&lt;BR /&gt;여기서 문제가 하나 발견되었습니다.&lt;BR /&gt;인트럽트를 4개의 채널에 동시에 걸면 채널이 정상적으로 작동하지 않는 문제가 있습니다.&lt;BR /&gt;저는 이러한 문제가 발생하는 이유와 해결책을 찾고 있습니다.&lt;BR /&gt;상세 내용은 다음과 같습니다.&lt;/P&gt;&lt;P&gt;TEST 환경&lt;/P&gt;&lt;P&gt;1. MCU : MC9S12XEG128MAL&lt;/P&gt;&lt;P&gt;2. 외부 인터럽트 4채널 사용&lt;BR /&gt;=&amp;gt; 상승 엣지 검출 설정, 인터럽트 우선 순위 7 (4채널 모두 동일)&lt;/P&gt;&lt;P&gt;3. 외부 입력 신호 : 펑션제네레이터&lt;BR /&gt;=&amp;gt; 스퀘어 파형 10Hz ~ 4kHz 로 동시에 4채널 신호 입력&lt;/P&gt;&lt;P&gt;문제점 : 4채널 동시 입력 시 인터럽트 빠짐 현상 발생&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;해결책을 알려주시길 바랍니다.&lt;BR /&gt;만약 MC9S12XEG128MAL 모델의 문제라면 4채널 인터럽트를 정확하게 인식하는 대체가능한 MCU를 소개해 주세요.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;감사합니다.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2020 05:43:20 GMT</pubDate>
    <dc:creator>s_kim1</dc:creator>
    <dc:date>2020-06-02T05:43:20Z</dc:date>
    <item>
      <title>Interrupt Issues in MC9S12XEG128MAL Models</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-Issues-in-MC9S12XEG128MAL-Models/m-p/1043221#M17147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;MC9S12XEG128MAL MCU is used to measure frequency.&lt;BR /&gt;A problem was found here.&lt;BR /&gt;There is a problem that if you dial the interrupt to 4 channels at the same time, the channel does not operate normally.&lt;BR /&gt;I'm looking for a reason and solution for this problem.&lt;BR /&gt;The details are as follows:&lt;/P&gt;&lt;P&gt;TEST environment&lt;/P&gt;&lt;P&gt;1. MCU: MC9S12XEG128MAL&lt;/P&gt;&lt;P&gt;2. Use 4 channels of external interrupt&lt;BR /&gt;=&amp;gt; Set up rising edge detection, interrupt priority 7 (all 4 channels are the same)&lt;/P&gt;&lt;P&gt;3. External Input Signal: Function Generator&lt;BR /&gt;=&amp;gt; Square waveforms from 10 Hz to 4 kHz simultaneously entering a 4-channel signal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: Interrupt is missing when entering 4 channels simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want you to tell me the solution.&lt;BR /&gt;If you have a problem with MC9S12XEG128MAL model, please introduce MCU that accurately recognizes interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;안녕하세요?&lt;BR /&gt;&lt;SPAN&gt;MC9S12XEG128MAL&amp;nbsp;&lt;/SPAN&gt;MCU를 사용하고 있고, 주파수를 측정하는 용도로 쓰고 있습니다.&lt;BR /&gt;여기서 문제가 하나 발견되었습니다.&lt;BR /&gt;인트럽트를 4개의 채널에 동시에 걸면 채널이 정상적으로 작동하지 않는 문제가 있습니다.&lt;BR /&gt;저는 이러한 문제가 발생하는 이유와 해결책을 찾고 있습니다.&lt;BR /&gt;상세 내용은 다음과 같습니다.&lt;/P&gt;&lt;P&gt;TEST 환경&lt;/P&gt;&lt;P&gt;1. MCU : MC9S12XEG128MAL&lt;/P&gt;&lt;P&gt;2. 외부 인터럽트 4채널 사용&lt;BR /&gt;=&amp;gt; 상승 엣지 검출 설정, 인터럽트 우선 순위 7 (4채널 모두 동일)&lt;/P&gt;&lt;P&gt;3. 외부 입력 신호 : 펑션제네레이터&lt;BR /&gt;=&amp;gt; 스퀘어 파형 10Hz ~ 4kHz 로 동시에 4채널 신호 입력&lt;/P&gt;&lt;P&gt;문제점 : 4채널 동시 입력 시 인터럽트 빠짐 현상 발생&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;해결책을 알려주시길 바랍니다.&lt;BR /&gt;만약 MC9S12XEG128MAL 모델의 문제라면 4채널 인터럽트를 정확하게 인식하는 대체가능한 MCU를 소개해 주세요.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;감사합니다.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 05:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-Issues-in-MC9S12XEG128MAL-Models/m-p/1043221#M17147</guid>
      <dc:creator>s_kim1</dc:creator>
      <dc:date>2020-06-02T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Issues in MC9S12XEG128MAL Models</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-Issues-in-MC9S12XEG128MAL-Models/m-p/1043222#M17148</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;most likely you clear timer flags incorrectly. Use forums search and look for clear timer flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you observe phenomenon at high rates only? Please provide code which demonstrates issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 20:35:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-Issues-in-MC9S12XEG128MAL-Models/m-p/1043222#M17148</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2020-06-02T20:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Issues in MC9S12XEG128MAL Models</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-Issues-in-MC9S12XEG128MAL-Models/m-p/1043223#M17149</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;few additional notes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue can be in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Incorrect interrupt flag clearing.&lt;BR /&gt;For example clear flaf 0&lt;BR /&gt;correct:&amp;nbsp; flag = 0x01;&lt;BR /&gt;incorrect:&amp;nbsp; flag_flag0 = 1; // the instruction works with entire byte read-modify-write so it clears all interupt flags and not only selected&lt;BR /&gt;For more info: &lt;A href="https://www.nxp.com/docs/en/application-note/AN2554.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/application-note/AN2554.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The interrupt never enables to be less priority interrupts served. Do not forget that if the SW priority is the same then HW takes precedence.&lt;BR /&gt;How to make interrupt interruptible and perform nested interrupts is described in: &lt;A href="https://www.nxp.com/docs/en/application-note/AN2617.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/application-note/AN2617.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Moreover I have attached an example where I play with priorities and change then onto stack = XDP512 - ECT+NestedISRover7-CW45.zip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know different MCU but the same principle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Incorrect timing and processing of one interrupt takes more time than it is necessary to be all interrupts served. ....An application issue....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 08:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-Issues-in-MC9S12XEG128MAL-Models/m-p/1043223#M17149</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2020-06-03T08:34:19Z</dc:date>
    </item>
  </channel>
</rss>

