<?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: LPC15xx: Using SCT as a simple timer...</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581150#M20376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Tue Jan 06 04:39:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I corrected a typo in the original post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@ R2D2: Thank's, I have found it before and it is very helpful. But my 'problem' is that LPCOpen doesn't support such simple things (yet). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course it's very easy to implement these functions by myself (or directly with CMSIS), but it should be in the package for general usage and convenience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@ mc:Thank you as well. Of course I read 16.6.7 of the UM where the last sentence 'Software&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can read the counter registers at any time' is missed (and not 15.6.8).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But yes, with fresh eyes there is some more information about reading the register in that chapter(s).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:21:14 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:21:14Z</dc:date>
    <item>
      <title>LPC15xx: Using SCT as a simple timer...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581147#M20373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Mon Jan 05 14:04:04 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen for LPC15xx offers a lot, but nothing I found to use the SCT as a [u]simple[/u] timer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen documentation starts with a missing module 'State Configurable Timer driver'. Just 'State Configurable Timer PWM driver' is there, although the package contains sct_15xx.c and sct15xx.h.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There I miss functions like Chip_SCT_ReadCount, Chip_SCT_ReadCountL and Chip_SCT_ReadCountH. UM10736 talks only about writing this register?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And from my point of view: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The function Chip_SCT_SetCount uses the member COUNT_U&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The function Chip_SCT_SetCountL uses the member COUNT_L&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The function Chip_SCT_SetCountH uses the member COUNT_H&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why isn't 'Chip_SCT_SetCount' not named 'Chip_SCT_SetCountU'?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Corrected typo in the last sentence, so last character is 'U'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581147#M20373</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15xx: Using SCT as a simple timer...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581148#M20374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Jan 05 14:35:58 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: 1234567890&lt;/STRONG&gt;&lt;BR /&gt;LPCOpen for LPC15xx offers a lot, but nothing I found to use the SCT as a [u]simple[/u] timer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&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.lpcware.com%2Fcontent%2Fnxpfile%2Fan11538-sctimerpwm-cookbook" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11538-sctimerpwm-cookbook&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581148#M20374</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15xx: Using SCT as a simple timer...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581149#M20375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Mon Jan 05 15:30:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can read counter see below text from UM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Writing to the COUNT_L, COUNT_H, or unified register is only allowed when the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;corresponding counter is halted (HALT bits are set to 1 in the CTRL register). Software&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can read the counter registers at any time."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See below image from UM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fsystem%2Ffiles%2FLPC1500Sct.PNG" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/system/files/LPC1500Sct.PNG&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581149#M20375</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15xx: Using SCT as a simple timer...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581150#M20376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Tue Jan 06 04:39:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I corrected a typo in the original post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@ R2D2: Thank's, I have found it before and it is very helpful. But my 'problem' is that LPCOpen doesn't support such simple things (yet). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course it's very easy to implement these functions by myself (or directly with CMSIS), but it should be in the package for general usage and convenience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@ mc:Thank you as well. Of course I read 16.6.7 of the UM where the last sentence 'Software&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can read the counter registers at any time' is missed (and not 15.6.8).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But yes, with fresh eyes there is some more information about reading the register in that chapter(s).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581150#M20376</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15xx: Using SCT as a simple timer...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581151#M20377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Tue Jan 06 10:00:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi 1234567890,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your below feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;@ R2D2: Thank's, I have found it before and it is very helpful. But my 'problem' is that LPCOpen doesn't support such simple things (yet). &lt;BR /&gt;Of course it's very easy to implement these functions by myself (or directly with CMSIS), but it should be in the package for general usage and convenience.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We will look into it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581151#M20377</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15xx: Using SCT as a simple timer...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581152#M20378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Jan 06 10:15:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: 1234567890&lt;/STRONG&gt;&lt;BR /&gt;@ R2D2: Thank's, I have found it before and it is very helpful. But my 'problem' is that LPCOpen doesn't support such simple things (yet). &lt;BR /&gt;Of course it's very easy to implement these functions by myself (or directly with CMSIS), but it should be in the package for general usage and convenience.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what you are trying to do...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple timer to toggle a LED without interrupt, a simple time to generate an interrupt (like SysTick) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or are we talking about counter ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581152#M20378</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC15xx: Using SCT as a simple timer...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581153#M20379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Tue Jan 06 13:00:21 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, let me...&amp;nbsp; of course... not necessarily... it's possible that...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's about a counter used as a timer, with constant clock source, free running, without interrupts, just polling until... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, one can name it counter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course it's a shame to waste this peripheral for such simple things, especially because there are more simple timers to rape (RIT, MRT).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC15xx-Using-SCT-as-a-simple-timer/m-p/581153#M20379</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:15Z</dc:date>
    </item>
  </channel>
</rss>

