<?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>LPC MicrocontrollersのトピックRe: Control is not enetring into &amp;quot;void SCT_IRQHandler (void)&amp;quot; in lpcopen v2.01 xpresso sample code of sct.c</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570467#M18167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by seowwoo on Tue Dec 02 22:58:49 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have the same problem. it is a problem on the example code. can anyone help to get it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:11:56 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:11:56Z</dc:date>
    <item>
      <title>Control is not enetring into "void SCT_IRQHandler (void)" in lpcopen v2.01 xpresso sample code of sct.c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570465#M18165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AbhijeetMudgal on Sat Aug 09 09:37:24 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC812 xpresso board in that I am going to use state configurable timer (SCT). To understand this timer I have downloaded sample code from LPCopen v2.01. The link of which is:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc8xx-packages" target="test_blank"&gt;www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc8xx-packages&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that I am using sct.c file which blinks led available on the xpresso board. There are three led's on the board. In the programme I have changed ledbits[] array to 3, which covers these elements [7, 16, 17]. With this code compiles well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I run this code then only two led's at a time are blinking and third led is not blinking. After debugging it is found that the control of the code is not entering into the IRQ handle named as void SCT_IRQHandler (void). I had insered breakpoints in this handler but code is not enetring into this handler at all. I am using LPCXpresso as a debug tool and compiler. I have also tried the same example with Keil compiler but I am getting same observation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am copying the sct.c file below for reference. Please guide me in this regard. Is there any problem in setting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "board.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Private types/enumerations/variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ****************************************************************************/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define TICKRATE_HZ (10)/* 10 ticks per second */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;static volatile uint32_t ticks;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Public types/enumerations/variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ****************************************************************************/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Private functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ****************************************************************************/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * Public functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ****************************************************************************/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @briefHandle interrupt from SysTick timer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @returnNothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void SysTick_Handler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;++ticks;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Board_LED_Toggle(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @briefHandle interrupt from State Configurable Timer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @returnNothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;[color=#c00]void SCT_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;if (ticks % 2) {&lt;BR /&gt;Board_LED_Toggle(2);&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;Board_LED_Toggle(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/* Clear the Interrupt */&lt;BR /&gt;Chip_SCT_ClearEventFlag(LPC_SCT, SCT_EVT_0);&lt;BR /&gt;}&lt;BR /&gt;[/color]&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @briefApplication main program&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @returnNothing (This function will not return)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Generic Initialization */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Board_Init();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Enable SysTick Timer */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SysTick_Config(SystemCoreClock / TICKRATE_HZ);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Custom Initialization */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCT_Init(LPC_SCT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Configure the SCT as a 32bit counter using the bus clock */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCT_Config(LPC_SCT, SCT_CONFIG_32BIT_COUNTER | SCT_CONFIG_CLKMODE_BUSCLK);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* The match/capture REGMODE defaults to match mode */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Set the match count for match register 0 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCT_SetMatchCount(LPC_SCT, SCT_MATCH_0, SystemCoreClock / TICKRATE_HZ);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Set the match reload value */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCT_SetMatchReload(LPC_SCT, SCT_MATCH_0, SystemCoreClock / TICKRATE_HZ);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Enable an Interrupt on the Match Event */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCT_EnableEventInt(LPC_SCT, SCT_EVT_0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Enable the IRQ for the SCT */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(SCT_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while (1) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Board_LED_Toggle(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__WFI();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:11:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570465#M18165</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Control is not enetring into "void SCT_IRQHandler (void)" in lpcopen v2.01 xpresso sample code of sct.c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570466#M18166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Fri Sep 19 15:01:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the SCT ISR is not firing, it is a good idea to double check the SCT registers and find out if the configuration is done correctly. Chapter 10 in the user's manual talks in depth about all the various registers and what each bit represents. It's important to identify what the current mode of operation should be given it's current register configuration, and then move on from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fuser_manual%2FUM10601.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/user_manual/UM10601.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:11:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570466#M18166</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Control is not enetring into "void SCT_IRQHandler (void)" in lpcopen v2.01 xpresso sample code of sct.c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570467#M18167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by seowwoo on Tue Dec 02 22:58:49 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have the same problem. it is a problem on the example code. can anyone help to get it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:11:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570467#M18167</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Control is not enetring into "void SCT_IRQHandler (void)" in lpcopen v2.01 xpresso sample code of sct.c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570468#M18168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Wed Dec 03 01:37:09 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From a quick glance it looks like the setup for the event is missing (enabling it, specifying the conditions for it to occur).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since so far I only used the register interface I don't know how that would be done using LPCOpen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570468#M18168</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Control is not enetring into "void SCT_IRQHandler (void)" in lpcopen v2.01 xpresso sample code of sct.c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570469#M18169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by seowwoo on Thu Dec 04 18:00:10 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you show me how to do it using the register interface?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570469#M18169</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Control is not enetring into "void SCT_IRQHandler (void)" in lpcopen v2.01 xpresso sample code of sct.c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570470#M18170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Mon Dec 08 04:07:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;See this post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fexample-program-periphsct-lpcopen-v213-will-not-work-written" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/example-program-periphsct-lpcopen-v213-will-not-work-written&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570470#M18170</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Control is not enetring into "void SCT_IRQHandler (void)" in lpcopen v2.01 xpresso sample code of sct.c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570471#M18171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Tue Dec 09 03:35:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: starblue&lt;/STRONG&gt;&lt;BR /&gt;See this post:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fexample-program-periphsct-lpcopen-v213-will-not-work-written" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/example-program-periphsct-lpcopen-v213-will-not-work-written&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That post is somewhat related, however seowwoo started a &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/forum/setup-input-capture-sct-lpc812"&gt;new thread &lt;/A&gt;&lt;SPAN&gt;and I answered his problem there.&amp;nbsp; The OP seems to have gone on a vacation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Control-is-not-enetring-into-quot-void-SCT-IRQHandler-void-quot/m-p/570471#M18171</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:11:59Z</dc:date>
    </item>
  </channel>
</rss>

