<?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 SCT (lpc43xx): Additional interrupt requests for each event.... in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522619#M5255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc_guy469 on Thu Mar 13 08:38:29 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having some difficulty with the LPC43xx SCT IRQ handler.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SCT Flag Enable register (address=0x400000F4) contents are being programmed with 0x00000004 (Event 2).&amp;nbsp;&amp;nbsp; So it is expected that an SCT interrupt request should only occur when Event 2 occurs.&amp;nbsp; However, the SCT is interrupting the LPC43xx with 2 requests for every one of Event 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the interrupt latency is 108ns.&amp;nbsp; This figure is approximately 19 clock cycles.&amp;nbsp; Is this behavior considered normal or is there a way to shorten this latency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance for your assistance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.....lpc_guy469&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:39:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:39:54Z</dc:date>
    <item>
      <title>SCT (lpc43xx): Additional interrupt requests for each event....</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522619#M5255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc_guy469 on Thu Mar 13 08:38:29 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having some difficulty with the LPC43xx SCT IRQ handler.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SCT Flag Enable register (address=0x400000F4) contents are being programmed with 0x00000004 (Event 2).&amp;nbsp;&amp;nbsp; So it is expected that an SCT interrupt request should only occur when Event 2 occurs.&amp;nbsp; However, the SCT is interrupting the LPC43xx with 2 requests for every one of Event 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the interrupt latency is 108ns.&amp;nbsp; This figure is approximately 19 clock cycles.&amp;nbsp; Is this behavior considered normal or is there a way to shorten this latency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance for your assistance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.....lpc_guy469&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:39:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522619#M5255</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: SCT (lpc43xx): Additional interrupt requests for each event....</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522620#M5256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JoeHale on Thu Mar 13 11:34:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should not get the interrupt called twice for each event. Could you provide a snippet of your code please so that I can investigate further. Also, are you using the Red State tool to generate the code or are you generating it by hand?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an aside: the SCT Flag Enable register is at 0x4000 00F0. The register at 0x4000 00F4 is the SCT event flag register ( for clearing the interrupt).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With respect to the latency I think that the Cortex M4 should have a 12 cycle interrupt latency. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:39:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522620#M5256</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: SCT (lpc43xx): Additional interrupt requests for each event....</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522621#M5257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Mar 13 12:14:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: JoeHale&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;With respect to the latency I think that the Cortex M4 should have a 12 cycle interrupt latency. &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;12 cycles assumes a 'perfect' memory system (no wait states). If you are running from flash (especially external flash), then you will have wait states, which will certainly increase latency.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:39:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522621#M5257</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: SCT (lpc43xx): Additional interrupt requests for each event....</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522622#M5258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by roboknight on Thu Nov 20 12:13:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am tacking on to this post because I'm also having issues with the SCT interrupts, however my issues are related to CTIN_x inputs.&amp;nbsp; I am attempting to catch a 1-wire-type signal with the SCT.&amp;nbsp; So far, I've been able to CREATE a signal with the SCT just fine (coding by hand).&amp;nbsp; I've looked at the RC5 SCT example code for both send and receive.&amp;nbsp; My issue seems to be that no matter WHAT I try, I cannot seem to get the lpc4330 to generate any interrupts for any edges on my CTIN_x input.&amp;nbsp; The specifics are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) LPC4330-Xplorer board from NGX.&amp;nbsp; This board contains 2 headers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Using GPIO0[8] configured for CTOUT_7 I have 8 states, 2 clears CTOUT_7, and 0, 4, and 6 SET CTOUT_7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; States 3, 7, and 8 generate interrupts to help generate output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Usng GPIO1[9] configured for CTIN_5, I have connected the GIMA CTIN_5 to CTIN_5 (which should be the default anyway), I have states 9-12.&amp;nbsp; State 9 does a capture from the high part of the timer on a falling edge for CTIN_5 Only.&amp;nbsp; State 10 does a capture from the high part of the timer on a rising edge for CTIN_5 only.&amp;nbsp; Only state 10 is supposed to generate an interrupt.&amp;nbsp; State 11 was a timeout state that WAS generating an interrupt, but it was much too high a frequency so it locked up the chip, so I cut it out for now.&amp;nbsp; It is supposed to be a timeout.&amp;nbsp; State 12 is a dummy state to help bookkeeping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The interrupts for 0, 4, and 6 are working.&amp;nbsp; No matter WHAT I've tried, I can not seem to generate any interrupts for anything on ANY kind of input to GPIO1[9] (which I've configured as Function CTIN_5 (1), and as straight GPIO, which I didn't expect to work.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my question is:&amp;nbsp; What steps should I take to make sure a signal can generate an interrupt on the selected SCTIN_x?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would post code, but the code is part of something else that is quite extensive and currently I don't have a scaled down example that show the work.&amp;nbsp; But basically, the flow for SCT configuration is thus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Enable SCT clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Reset SCT (didn't really seem necessary, but I threw it in)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Set GIMA SCTIN_5 to CTIN_5 (didn't seem necessary as this is the default).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Set CREG6 CTOUTCTRL to 1 (This should only apply to CTOUT, not CTIN, but I'm in kitchen sink mode here).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) SCT-&amp;gt;Config = 0 (split timer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6) Set up my 6 low match/matchreload registers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) Set up my first 9 events (0-8)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8) Set up the output so event 2 clears, events 0,4, and 6 set CTOUT_7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9) All states 0-8 should limit low timer half.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10) set match/reload 7,10 for using in "upper" events (input events)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11) Set match/reload 8/9 for capture instead of match/reload&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12) Set capture control so that capture 8 works on event 9 and 9 works on event 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13) Set events 9 &amp;amp; 10 for I/O.&amp;nbsp; They occur in all states, HEVENT set to 1, OUTSEL = 0, IOSEL = 5, IOCOND = 2,1 (2 for 9, 1 for 10... falling, rising) , COMBMODE = 2, stateV is added, stateV = 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;14) configure pins for CTIN_5 no pullup/down and as GPIO input (which is default anyway).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;15) configure pins for CTOUT_7 pullup/pulldown and as GPIO output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;16) stop both counters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17) Attach to IRQ SCT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;18) Reset states, reset count, set initial CTOUT_7 to high.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;19) Enable SCT IRQ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20) Setup Even interrupt as (1 &amp;lt;&amp;lt; 3) | (1&amp;lt;&amp;lt;7) | (1 &amp;lt;&amp;lt; 8) | (1&amp;lt;&amp;lt;10)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;21) Clear EVFLAG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;22) Start high timer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, events 3, 7 and 8 seem to be occurring and generating interrupts.&amp;nbsp; The problem is event 10.&amp;nbsp; Is there something else I'm supposed to do?&amp;nbsp; Again, I've looked at RC5_receive for clues, to no avail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: Low timer gets enabled later when I want to generate some output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:39:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522622#M5258</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: SCT (lpc43xx): Additional interrupt requests for each event....</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522623#M5259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;&amp;nbsp; I've looked at the RC5 SCT example code for both send and receive.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share the code that you are referring? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 12:02:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-lpc43xx-Additional-interrupt-requests-for-each-event/m-p/522623#M5259</guid>
      <dc:creator>dimitrissideris</dc:creator>
      <dc:date>2016-10-14T12:02:30Z</dc:date>
    </item>
  </channel>
</rss>

