<?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: Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961047#M38100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand how to set the timer interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In rit.c, 1Hz interval is defined as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#define RIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_CoreSysClk)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;/* Set timer period for Compare register. */&lt;BR /&gt; RIT_SetTimerCompare(RIT, RIT_SOURCE_CLOCK);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The function RIT_SetTimerCompare() is defined in drivers/fsl_rit.c. That will set the timer counter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we want to set the interval to 1/2Hz, we write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;/* Set timer period for Compare register. */&lt;BR /&gt;RIT_SetTimerCompare(RIT, RIT_SOURCE_CLOCK / 2);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, to 2Hz,&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;/* Set timer period for Compare register. */&lt;BR /&gt;RIT_SetTimerCompare(RIT, RIT_SOURCE_CLOCK * 2);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Oct 2019 01:26:03 GMT</pubDate>
    <dc:creator>yasokada</dc:creator>
    <dc:date>2019-10-12T01:26:03Z</dc:date>
    <item>
      <title>Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961042#M38095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Environment:&lt;/P&gt;&lt;P&gt;- OS: Ubuntu 18.04 LTS&lt;/P&gt;&lt;P&gt;- Board: LPCXpresso54628&lt;/P&gt;&lt;P&gt;- IDE: MCUXpresso IDE v11.0.1 [Build 2563] [2019-09-01]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I examined rit.c from SDK example. With the code, I confirmed that the LED is toggled in one second interval.&lt;/P&gt;&lt;P&gt;However, I cannot understand how the one second interval is configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related sentences in [rit.c] may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. #define RIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_CoreSysClk)&lt;/P&gt;&lt;P&gt;B. CLOCK_EnableClock(kCLOCK_Gpio3);&lt;/P&gt;&lt;P&gt;C. RIT_SetTimerCompare(RIT, RIT_SOURCE_CLOCK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;Q1. What is the kCLOCK_Gpio3 (and others, such as kCLOCK_Gpio0)?&amp;nbsp; I found no explanations on documents.&lt;/P&gt;&lt;P&gt;Q2. Why is kCLOCK_Gpio3 used in this example? (Related to kCLOCK_CoreSysClk?)&lt;/P&gt;&lt;P&gt;Q3. How do they produce one second interval?&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 00:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961042#M38095</guid>
      <dc:creator>yasokada</dc:creator>
      <dc:date>2019-10-09T00:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961043#M38096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="349147" data-username="yasokada" href="https://community.nxp.com/people/yasokada"&gt;Yas Okada&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Q1. What is the kCLOCK_Gpio3 (and others, such as kCLOCK_Gpio0)?&amp;nbsp; I found no explanations on documents.&lt;/P&gt;&lt;P&gt;-&amp;gt;&amp;nbsp; These are Clock gate names used for CLOCK_EnableClock/CLOCK_DisableClock.&lt;/P&gt;&lt;P&gt;kCLOCK_Gpio3 stand for GPIO3 (17).&amp;nbsp; You can have a&amp;nbsp; look the register of "AHB Clock Control register" in UM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2. Why is kCLOCK_Gpio3 used in this example? (Related to kCLOCK_CoreSysClk?)&lt;/P&gt;&lt;P&gt;-&amp;gt; Because the LED function used the port3_14, need enable the clock of GPIO3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Init LED. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED_INIT();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q3. How do they produce one second interval?&lt;/P&gt;&lt;P&gt;-&amp;gt; Have a look at&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Init rit module */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RIT_Init(RIT, &amp;amp;ritConfig);&lt;/P&gt;&lt;P&gt;and related register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 08:14:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961043#M38096</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-10-10T08:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961044#M38097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About Q1 and Q2, I understand that. I will read related documents (although I have no idea which documents is appropriate to read).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About Q3, I will read the document again. (I read once, but it is not clear how to make "one second interval").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.&lt;/P&gt;&lt;P&gt;In my opinion, LPC provides various documents detailed written, but no good document for the beginners, such as QuickStart Guide". That's why I have difficulty in studying LPC MCU after studying several MCUs such as MSP430, STM32 and others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 23:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961044#M38097</guid>
      <dc:creator>yasokada</dc:creator>
      <dc:date>2019-10-10T23:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961045#M38098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For readers of this topic, I leave information on the documents to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In UM11305.pdf (Rev 2.1) page 10, I found&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; User LEDs&lt;/P&gt;&lt;P&gt;&amp;gt; P2-2 (D9), P3-3 (D11), and P3-14 (D12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that D12 uses P3-14.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 03:33:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961045#M38098</guid>
      <dc:creator>yasokada</dc:creator>
      <dc:date>2019-10-11T03:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961046#M38099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello OKada,&lt;/P&gt;&lt;P&gt;You can find the Datasheet , User manual of this chip ,&amp;nbsp; the board user manual and also some other Application note&amp;nbsp;&lt;/P&gt;&lt;P&gt;from:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc54000-cortex-m4-/power-efficient-microcontrollers-mcus-with-advanced-peripherals-based-on-arm-cortex-m4-core:LPC546XX?tab=Documentation_Tab" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc54000-cortex-m4-/power-efficient-microcontrollers-mcus-with-advanced-peripherals-based-on-arm-cortex-m4-core:LPC546XX?tab=Documentation_Tab"&gt;LPC546XX Microcontroller (MCU) Family | NXP&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 08:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961046#M38099</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-10-11T08:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961047#M38100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand how to set the timer interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In rit.c, 1Hz interval is defined as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#define RIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_CoreSysClk)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;/* Set timer period for Compare register. */&lt;BR /&gt; RIT_SetTimerCompare(RIT, RIT_SOURCE_CLOCK);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The function RIT_SetTimerCompare() is defined in drivers/fsl_rit.c. That will set the timer counter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we want to set the interval to 1/2Hz, we write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;/* Set timer period for Compare register. */&lt;BR /&gt;RIT_SetTimerCompare(RIT, RIT_SOURCE_CLOCK / 2);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, to 2Hz,&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;/* Set timer period for Compare register. */&lt;BR /&gt;RIT_SetTimerCompare(RIT, RIT_SOURCE_CLOCK * 2);&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2019 01:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961047#M38100</guid>
      <dc:creator>yasokada</dc:creator>
      <dc:date>2019-10-12T01:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interval of RIT (Repetitive Interrupt Timer) SDK example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961048#M38101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Q2. Why is kCLOCK_Gpio3 used in this example? (Related to kCLOCK_CoreSysClk?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the description on the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px; margin: 0px 0px 20px;"&gt;UM10912 Rev 1.8 - 28 April 2017&lt;BR /&gt;Chapter 11: LPC546xx General Purpose I/O (GPIO)&lt;BR /&gt;11.3 Basic configuration&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px; margin: 0px 0px 20px;"&gt;&amp;gt; For the GPIO port registers, enable the clock to each GPIO port in the AHBCLKCTRL0 register (Table 137).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2019 02:28:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Interval-of-RIT-Repetitive-Interrupt-Timer-SDK-example/m-p/961048#M38101</guid>
      <dc:creator>yasokada</dc:creator>
      <dc:date>2019-10-12T02:28:39Z</dc:date>
    </item>
  </channel>
</rss>

