<?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 Re: LpcOpen Input Capture lpc111x in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604939#M23573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="287407" data-username="walterbuttazzo" href="https://community.nxp.com/people/walterbuttazzo"&gt;Walter Buttazzo&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;It seems so weird, and I was wondering if you can share the values of CT16B0/1 registers.&lt;BR /&gt;It would be easily to figure out some wrong with the CT16B0/1's configuration.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Sep 2016 09:09:35 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-09-18T09:09:35Z</dc:date>
    <item>
      <title>LpcOpen Input Capture lpc111x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604935#M23569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'd like to capture a falling edge in PIO3_3 of lpc1115, but my debug session doesn't enter in interrupt Handler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define DEMODULATOR_TIMER LPC_TIMER16_0&lt;BR /&gt;#define DEMODULATOR_TIMER_IRQ TIMER_16_0_IRQn&lt;BR /&gt;#define DEMODULATOR_TIMER_CAPTNUM 0&lt;BR /&gt;#define DEMODULATOR_TIMER_IRQHandler TIMER16_0_IRQHandler&lt;BR /&gt;#define DEMODULATOR_TIMER_MATCHNUM 0&lt;BR /&gt;#define DEMODULATOR_TIMER_MC_VALUE 40000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Pin Setting */&lt;BR /&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO3_3, IOCON_FUNC2 | IOCON_DIGMODE_EN | IOCON_HYS_EN);&amp;nbsp;&lt;BR /&gt;Chip_GPIO_SetPinDIRInput(LPC_GPIO, 3, 3);&lt;BR /&gt;/* Init Timer */&lt;BR /&gt;Chip_TIMER_Reset(DEMODULATOR_TIMER);&lt;BR /&gt;/* Reset Timer */&lt;BR /&gt;/* Ftimer = Fck/12 -&amp;gt; 48MHz/12 = 4MHz */&lt;BR /&gt;Chip_TIMER_PrescaleSet(DEMODULATOR_TIMER, 11);&lt;BR /&gt;/* Falling edge */&lt;BR /&gt;Chip_TIMER_CaptureFallingEdgeEnable(DEMODULATOR_TIMER, DEMODULATOR_TIMER_CAPTNUM);&lt;BR /&gt;/* Enable INT */&lt;BR /&gt;Chip_TIMER_CaptureEnableInt(DEMODULATOR_TIMER, DEMODULATOR_TIMER_CAPTNUM);&lt;/P&gt;&lt;P&gt;Chip_TIMER_MatchEnableInt(DEMODULATOR_TIMER, DEMODULATOR_TIMER_MATCHNUM);&lt;/P&gt;&lt;P&gt;Chip_TIMER_ClearMatch(DEMODULATOR_TIMER, DEMODULATOR_TIMER_MATCHNUM);&lt;/P&gt;&lt;P&gt;Chip_TIMER_SetMatch(DEMODULATOR_TIMER, DEMODULATOR_TIMER_MATCHNUM, DEMODULATOR_TIMER_MC_VALUE);&lt;/P&gt;&lt;P&gt;/* Start timer */&lt;BR /&gt;Chip_TIMER_Enable(DEMODULATOR_TIMER);&lt;BR /&gt;/* Turn on int */&lt;BR /&gt;NVIC_SetPriority(DEMODULATOR_TIMER_IRQ, 5);&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ( DEMODULATOR_TIMER_IRQ);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* IRQ Handler*/&lt;/P&gt;&lt;P&gt;void DEMODULATOR_TIMER_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;if (Chip_TIMER_CapturePending(DEMODULATOR_TIMER, DEMODULATOR_TIMER_CAPTNUM))&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;Chip_TIMER_ClearCapture(DEMODULATOR_TIMER, DEMODULATOR_TIMER_CAPTNUM);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (Chip_TIMER_MatchPending(DEMODULATOR_TIMER, DEMODULATOR_TIMER_MATCHNUM))&lt;BR /&gt; {&amp;nbsp;&lt;BR /&gt; Chip_TIMER_ClearMatch(DEMODULATOR_TIMER, DEMODULATOR_TIMER_MATCHNUM);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interrupt occur but for match compare ONLY.&lt;/P&gt;&lt;P&gt;With my oscilloscope I can see in PIO3_3 the input square wave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 06:49:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604935#M23569</guid>
      <dc:creator>walterbuttazzo</dc:creator>
      <dc:date>2016-09-09T06:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: LpcOpen Input Capture lpc111x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604936#M23570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="287407" data-username="walterbuttazzo" href="https://community.nxp.com/people/walterbuttazzo"&gt;Walter Buttazzo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your sharing, and I'll use the codes above to create a project.&lt;/P&gt;&lt;P&gt;And I'll inform you ASAP I work it out.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:22:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604936#M23570</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-09-13T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: LpcOpen Input Capture lpc111x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604937#M23571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="287407" data-objecttype="3" href="https://community.nxp.com/people/walterbuttazzo"&gt;Walter Buttazzo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please have a try with the codes below.&lt;/P&gt;&lt;P&gt;/* Pin Setting */&lt;/P&gt;&lt;P&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO3_3, IOCON_FUNC2);&lt;/P&gt;&lt;P&gt;//Chip_GPIO_SetPinDIRInput(LPC_GPIO, 3, 3);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 09:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604937#M23571</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-09-13T09:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: LpcOpen Input Capture lpc111x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604938#M23572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same behavior. Enter in ISR Handler, but for&amp;nbsp;Match ONLY, never for Capture&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 11:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604938#M23572</guid>
      <dc:creator>walterbuttazzo</dc:creator>
      <dc:date>2016-09-13T11:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: LpcOpen Input Capture lpc111x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604939#M23573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="287407" data-username="walterbuttazzo" href="https://community.nxp.com/people/walterbuttazzo"&gt;Walter Buttazzo&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;It seems so weird, and I was wondering if you can share the values of CT16B0/1 registers.&lt;BR /&gt;It would be easily to figure out some wrong with the CT16B0/1's configuration.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2016 09:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604939#M23573</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-09-18T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: LpcOpen Input Capture lpc111x</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604940#M23574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ping,&amp;nbsp;but I created a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no example in example list for Input Capture, that's why I think this function with LpcOpen is not tested.&lt;/P&gt;&lt;P&gt;As workaround I used that Pin as external interrupt pin.&lt;/P&gt;&lt;P&gt;So, I start a normal timer just as a counter end it fires an interrupt on match compare.&lt;/P&gt;&lt;P&gt;As external interrupt, instead of using that timer I use pin.&lt;/P&gt;&lt;P&gt;It works, That's all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only disadvantage for this&amp;nbsp;method is I use 2 resources for one target, but to be honest, I don't care :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS&lt;/P&gt;&lt;P&gt;Just one question, are you testing it with hardware or you are just reading the code?&lt;/P&gt;&lt;P&gt;Because reading the code for me everything is Ok, but practically doesn't work :smileysad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 10:24:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LpcOpen-Input-Capture-lpc111x/m-p/604940#M23574</guid>
      <dc:creator>walterbuttazzo</dc:creator>
      <dc:date>2016-09-19T10:24:43Z</dc:date>
    </item>
  </channel>
</rss>

