<?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: SCimer Input Capture in LPC546xx Interrupt is not getting? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCimer-Input-Capture-in-LPC546xx-Interrupt-is-not-getting/m-p/1416378#M47946</link>
    <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;Thank you sir,&lt;/P&gt;&lt;P&gt;SCTimer Input Capture is working fine.&lt;/P&gt;&lt;P&gt;Tested with 1 mSec to 1000mSec duration.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 02:50:22 GMT</pubDate>
    <dc:creator>TPN_CHN</dc:creator>
    <dc:date>2022-02-21T02:50:22Z</dc:date>
    <item>
      <title>SCimer Input Capture in LPC546xx Interrupt is not getting?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCimer-Input-Capture-in-LPC546xx-Interrupt-is-not-getting/m-p/1401606#M47681</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;i am SCTimer Input capture implemented in LPC54628 EVK Board&lt;/P&gt;&lt;P&gt;following code developed using config tool ( Pins &amp;amp; Peripherals Init ) but interrupt does not occurs why?&lt;/P&gt;&lt;P&gt;Please suggestion where is mistake in my code, please help me sir.&lt;/P&gt;&lt;P&gt;// Pin_mux.c&lt;/P&gt;&lt;P&gt;void BOARD_InitBootPins(void)&lt;BR /&gt;{&lt;BR /&gt;SCTimer_InitPins();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* clang-format off */&lt;BR /&gt;//* FUNCTION ************************************************************************************************************&lt;BR /&gt;*&lt;BR /&gt;* Function Name : SCTimer_InitPins&lt;BR /&gt;* Description : Configures pin routing and optionally pin electrical features.&lt;BR /&gt;*&lt;BR /&gt;* END ****************************************************************************************************************/&lt;BR /&gt;/* Function assigned for the Cortex-M4F */&lt;BR /&gt;void SCTimer_InitPins(void)&lt;BR /&gt;{&lt;BR /&gt;/* Enables the clock for the input muxes. 0 = Disable; 1 = Enable.: 0x01u */&lt;BR /&gt;CLOCK_EnableClock(kCLOCK_InputMux);&lt;BR /&gt;/* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */&lt;BR /&gt;CLOCK_EnableClock(kCLOCK_Iocon);&lt;/P&gt;&lt;P&gt;INPUTMUX-&amp;gt;SCT0_INMUX[0] = ((INPUTMUX-&amp;gt;SCT0_INMUX[0] &amp;amp;&lt;BR /&gt;/* Mask bits to zero which are setting */&lt;BR /&gt;(~(INPUTMUX_SCT0_INMUX_INP_N_MASK)))&lt;/P&gt;&lt;P&gt;/* Input number to SCT0 inputs 0 to 6.&lt;BR /&gt;* : 0x00u. */&lt;BR /&gt;| INPUTMUX_SCT0_INMUX_INP_N(0x00u));&lt;/P&gt;&lt;P&gt;const uint32_t SCT0_IN0 = (/* Pin is configured as SCT0_GPI0 */&lt;BR /&gt;IOCON_PIO_FUNC4 |&lt;BR /&gt;/* Selects pull-up function */&lt;BR /&gt;IOCON_PIO_MODE_PULLUP |&lt;BR /&gt;/* Input function is not inverted */&lt;BR /&gt;IOCON_PIO_INV_DI |&lt;BR /&gt;/* Enables digital function */&lt;BR /&gt;IOCON_PIO_DIGITAL_EN |&lt;BR /&gt;/* Input filter disabled */&lt;BR /&gt;IOCON_PIO_INPFILT_OFF |&lt;BR /&gt;/* Standard mode, output slew rate control is enabled */&lt;BR /&gt;IOCON_PIO_SLEW_STANDARD |&lt;BR /&gt;/* Open drain is disabled */&lt;BR /&gt;IOCON_PIO_OPENDRAIN_DI);&lt;BR /&gt;/* PORT0 PIN24 (coords: M7) is configured as SCT0_GPI0 */&lt;BR /&gt;IOCON_PinMuxSet(IOCON, SCTIMER_INITPINS_SCT0_IN0_PORT, SCTIMER_INITPINS_SCT0_IN0_PIN, SCT0_IN0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Peripheral.c file&lt;/P&gt;&lt;P&gt;const sctimer_config_t SCT0_initConfig = {&lt;BR /&gt;.enableCounterUnify = false,&lt;BR /&gt;.clockMode = kSCTIMER_System_ClockMode,&lt;BR /&gt;.clockSelect = kSCTIMER_Clock_On_Rise_Input_0,&lt;BR /&gt;.enableBidirection_l = true,&lt;BR /&gt;.enableBidirection_h = false,&lt;BR /&gt;.prescale_l = 0U,&lt;BR /&gt;.prescale_h = 0U,&lt;BR /&gt;.outInitState = (uint8_t)(SCT0_OUTPUT_1),&lt;BR /&gt;.inputsync = (uint8_t)(SCT0_INPUTSYNC_0)&lt;BR /&gt;};&lt;BR /&gt;uint32_t SCT0_event[1];&lt;/P&gt;&lt;P&gt;static void SCT0_init(void) {&lt;BR /&gt;SCTIMER_Init(SCT0_PERIPHERAL, &amp;amp;SCT0_initConfig);&lt;BR /&gt;/* Initialization of state 0 */&lt;BR /&gt;SCTIMER_CreateAndScheduleEvent(SCT0_PERIPHERAL, kSCTIMER_InputRiseEvent, 0, kSCTIMER_Input_0, kSCTIMER_Counter_L, &amp;amp;SCT0_event[0]);&lt;BR /&gt;SCTIMER_SetupCounterStartAction(SCT0_PERIPHERAL, kSCTIMER_Counter_L, SCT0_event[0]);&lt;BR /&gt;/* Interrupt vector SCT0_IRQn priority settings in the NVIC. */&lt;BR /&gt;NVIC_SetPriority(SCT0_IRQN, SCT0_IRQ_PRIORITY);&lt;BR /&gt;/* Enable interrupt SCT0_IRQn request in the NVIC. */&lt;BR /&gt;EnableIRQ(SCT0_IRQN);&lt;BR /&gt;SCTIMER_StartTimer(SCT0_PERIPHERAL, kSCTIMER_Counter_L);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/***********************************************************************************************************************&lt;BR /&gt;* Initialization functions&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize components */&lt;BR /&gt;SCT0_init();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/***********************************************************************************************************************&lt;BR /&gt;* BOARD_InitBootPeripherals function&lt;BR /&gt;**********************************************************************************************************************/&lt;BR /&gt;void BOARD_InitBootPeripherals(void)&lt;BR /&gt;{&lt;BR /&gt;BOARD_InitPeripherals();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// main.c file&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;* @file LPC54628_Project_SCT0_IN0.c&lt;BR /&gt;* @brief Application entry point.&lt;BR /&gt;*/&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;#include "board.h"&lt;BR /&gt;#include "peripherals.h"&lt;BR /&gt;#include "pin_mux.h"&lt;BR /&gt;#include "clock_config.h"&lt;BR /&gt;#include "LPC54628.h"&lt;BR /&gt;#include "fsl_debug_console.h"&lt;BR /&gt;/* TODO: insert other include files here. */&lt;/P&gt;&lt;P&gt;/* TODO: insert other definitions and declarations here. */&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* @brief Application entry point.&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;void SCT0_IN0_IRQ(void)&lt;BR /&gt;{&lt;BR /&gt;uint32_t Counter =0;&lt;BR /&gt;SCTIMER_ClearStatusFlags(SCT0, kSCTIMER_Event0Flag);&lt;/P&gt;&lt;P&gt;Counter = SCT0-&amp;gt;CAP[0];&lt;BR /&gt;Counter = 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(void) {&lt;/P&gt;&lt;P&gt;/* Init board hardware. */&lt;BR /&gt;BOARD_InitBootPins();&lt;BR /&gt;BOARD_InitBootClocks();&lt;BR /&gt;BOARD_InitBootPeripherals();&lt;BR /&gt;#ifndef BOARD_INIT_DEBUG_CONSOLE_PERIPHERAL&lt;BR /&gt;/* Init FSL debug console. */&lt;BR /&gt;BOARD_InitDebugConsole();&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;PRINTF("Hello World\n");&lt;/P&gt;&lt;P&gt;/* Force the counter to be placed into memory. */&lt;BR /&gt;volatile static int i = 0 ;&lt;BR /&gt;/* Enter an infinite loop, just incrementing a counter. */&lt;BR /&gt;while(1) {&lt;BR /&gt;i++ ;&lt;BR /&gt;/* 'Dummy' NOP to allow source level single stepping of&lt;BR /&gt;tight while() loop */&lt;BR /&gt;__asm volatile ("nop");&lt;BR /&gt;}&lt;BR /&gt;return 0 ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Advance Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 11:20:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCimer-Input-Capture-in-LPC546xx-Interrupt-is-not-getting/m-p/1401606#M47681</guid>
      <dc:creator>TPN_CHN</dc:creator>
      <dc:date>2022-01-19T11:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: SCimer Input Capture in LPC546xx Interrupt is not getting?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCimer-Input-Capture-in-LPC546xx-Interrupt-is-not-getting/m-p/1402080#M47688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please find the AN11538 that contains some code examples that can help you out on the configuration. Please let me know if this was helpful.&lt;/P&gt;
&lt;P&gt;&lt;A title=" SCTimer/PWM cookbook " href="https://www.nxp.com/docs/en/application-note/AN11538.zip" target="_blank" rel="noopener"&gt; SCTimer/PWM cookbook &lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 21:31:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCimer-Input-Capture-in-LPC546xx-Interrupt-is-not-getting/m-p/1402080#M47688</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2022-01-19T21:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: SCimer Input Capture in LPC546xx Interrupt is not getting?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCimer-Input-Capture-in-LPC546xx-Interrupt-is-not-getting/m-p/1416378#M47946</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;Thank you sir,&lt;/P&gt;&lt;P&gt;SCTimer Input Capture is working fine.&lt;/P&gt;&lt;P&gt;Tested with 1 mSec to 1000mSec duration.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 02:50:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCimer-Input-Capture-in-LPC546xx-Interrupt-is-not-getting/m-p/1416378#M47946</guid>
      <dc:creator>TPN_CHN</dc:creator>
      <dc:date>2022-02-21T02:50:22Z</dc:date>
    </item>
  </channel>
</rss>

