<?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: LPC1549 how to implement a 32-bit millisecond timer? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-how-to-implement-a-32-bit-millisecond-timer/m-p/608797#M23740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need that timestamp for a capture event? If so, you could use the SCT event to trigger a DMA transfer from a millisecond counter that you created by other means.&lt;/P&gt;&lt;P&gt;The simplest way to create that would be to use e.g. the RIT to create a millisecond interrupt and just increase a 32bit value there. If you need a more accurate approach, the RTC can be configured to 1kHz "high resolution" timing. I haven't really looked into the details though. I kinda think that in 1ms mode, the timer is only 16bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last but not least it should be possible to use an SCT input as clock source through CONFIG.CLKMODE (0x2 SCT input). Then you could use another SCT channel to create a 1kHz signal and route it to your SCT input used as clock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 15:39:35 GMT</pubDate>
    <dc:creator>volkeroth</dc:creator>
    <dc:date>2016-10-06T15:39:35Z</dc:date>
    <item>
      <title>LPC1549 how to implement a 32-bit millisecond timer?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-how-to-implement-a-32-bit-millisecond-timer/m-p/608796#M23739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to make timer which increments every millisecond for timestamping purposes, unfortunately the SCT prescalers are only 8 bit and can only use system clock as the source so it's not possible to use a single SCT without setting sysclock super low. I was wondering if you could chain two SCT's together to implement it? The documentation mentions chaining but I have no idea how to go about doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 08:22:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-how-to-implement-a-32-bit-millisecond-timer/m-p/608796#M23739</guid>
      <dc:creator>anmolthind</dc:creator>
      <dc:date>2016-10-06T08:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1549 how to implement a 32-bit millisecond timer?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-how-to-implement-a-32-bit-millisecond-timer/m-p/608797#M23740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need that timestamp for a capture event? If so, you could use the SCT event to trigger a DMA transfer from a millisecond counter that you created by other means.&lt;/P&gt;&lt;P&gt;The simplest way to create that would be to use e.g. the RIT to create a millisecond interrupt and just increase a 32bit value there. If you need a more accurate approach, the RTC can be configured to 1kHz "high resolution" timing. I haven't really looked into the details though. I kinda think that in 1ms mode, the timer is only 16bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last but not least it should be possible to use an SCT input as clock source through CONFIG.CLKMODE (0x2 SCT input). Then you could use another SCT channel to create a 1kHz signal and route it to your SCT input used as clock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 15:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1549-how-to-implement-a-32-bit-millisecond-timer/m-p/608797#M23740</guid>
      <dc:creator>volkeroth</dc:creator>
      <dc:date>2016-10-06T15:39:35Z</dc:date>
    </item>
  </channel>
</rss>

