<?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: systic example / PCXpresso LPC1343 Examples V1.10 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564575#M17637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Thu Jan 21 16:02:40 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As SysTick is (supposed to be) standard to all Cortex-M3 implementations, the registers are also described in the ARMv7-M Architecture Reference Manual (DDI0403 or DDI0405), as well as in Cortex-M3 TRM (DDI0337). The latter descibes the register thus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[31:17]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reserved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[16] COUNTFLAG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Returns 1 if timer counted to 0 since last time this was read. Clears on read by application of any part of the SysTick Control and Status Register. If read by the debugger using the DAP, this bit is cleared on read-only if the MasterType bit in the AHB-AP Control Register is set to 0. Otherwise, the COUNTFLAG bit is not changed by the debugger read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] CLKSOURCE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0 = external reference clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = core clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If no reference clock is provided, it is held at 1 and so gives the same time as the core clock. The core clock must be at least 2.5 times faster than the reference clock. If it is not, the count values are Unpredictable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] TICKINT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = counting down to 0 pends the SysTick handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0 = counting down to 0 does not pend the SysTick handler. Software can use the COUNTFLAG to determine if ever counted to 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[0] ENABLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = counter operates in a multi-shot way. That is, counter loads with the Reload value and then begins counting down. On reaching 0, it sets the COUNTFLAG to 1 and optionally pends the SysTick handler, based on TICKINT. It then loads the Reload value again, and begins counting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0 = counter disabled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:54:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:54:48Z</dc:date>
    <item>
      <title>systic example / PCXpresso LPC1343 Examples V1.10</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564574#M17636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pawel on Thu Jan 21 15:31:33 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to analyze examples for LPC1343. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Register bit 2 in System Timer Control and status register is defined and used in samples but in manual (UM10375_1; Rev. 01.01 — 11 January 2010) I can find only information that this bit is reserved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missed something? When can we expect production ready manual (not draft, without &amp;lt;tbd&amp;gt;)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Pawel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* SysTick Control / Status Register Definitions */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{...}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SysTick_CTRL_CLKSOURCE_Pos 2 /*!&amp;lt; SysTick CTRL: CLKSOURCE Position */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SysTick_CTRL_CLKSOURCE_Msk (1ul &amp;lt;&amp;lt; SysTick_CTRL_CLKSOURCE_Pos) /*!&amp;lt; SysTick CTRL: CLKSOURCE Mask */&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564574#M17636</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: systic example / PCXpresso LPC1343 Examples V1.10</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564575#M17637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Thu Jan 21 16:02:40 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As SysTick is (supposed to be) standard to all Cortex-M3 implementations, the registers are also described in the ARMv7-M Architecture Reference Manual (DDI0403 or DDI0405), as well as in Cortex-M3 TRM (DDI0337). The latter descibes the register thus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[31:17]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reserved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[16] COUNTFLAG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Returns 1 if timer counted to 0 since last time this was read. Clears on read by application of any part of the SysTick Control and Status Register. If read by the debugger using the DAP, this bit is cleared on read-only if the MasterType bit in the AHB-AP Control Register is set to 0. Otherwise, the COUNTFLAG bit is not changed by the debugger read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] CLKSOURCE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0 = external reference clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = core clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If no reference clock is provided, it is held at 1 and so gives the same time as the core clock. The core clock must be at least 2.5 times faster than the reference clock. If it is not, the count values are Unpredictable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] TICKINT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = counting down to 0 pends the SysTick handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0 = counting down to 0 does not pend the SysTick handler. Software can use the COUNTFLAG to determine if ever counted to 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[0] ENABLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = counter operates in a multi-shot way. That is, counter loads with the Reload value and then begins counting down. On reaching 0, it sets the COUNTFLAG to 1 and optionally pends the SysTick handler, based on TICKINT. It then loads the Reload value again, and begins counting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0 = counter disabled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564575#M17637</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: systic example / PCXpresso LPC1343 Examples V1.10</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564576#M17638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pawel on Thu Jan 21 17:03:22 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you igorsk,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in systick_main.c I can find something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if ( !(SysTick-&amp;gt;CTRL &amp;amp; (1&amp;lt;&amp;lt;SysTick_CTRL_CLKSOURCE_Msk)) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* When external reference clock is used(CLKSOURCE in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Systick Control and register bit 2 is set to 0), the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSTICKCLKDIV must be a non-zero value and 2.5 times &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;faster than the reference clock. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When core clock, or system AHB clock, is used(CLKSOURCE &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in Systick Control and register bit 2 is set to 1), the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSTICKCLKDIV has no effect to the SYSTICK frequency. See &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;more on Systick clock and status register in Cortex-M3 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;technical Reference Manual. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSTICKCLKDIV = 0x08;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And first line should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if ( !(SysTick-&amp;gt;CTRL &amp;amp; (1&amp;lt;&amp;lt;SysTick_CTRL_CLKSOURCE_Pos)) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if ( !(SysTick-&amp;gt;CTRL &amp;amp; (SysTick_CTRL_CLKSOURCE_Msk)) )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Pawel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:54:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564576#M17638</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: systic example / PCXpresso LPC1343 Examples V1.10</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564577#M17639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_USA on Mon Jan 25 00:05:25 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: pawel&lt;/STRONG&gt;&lt;BR /&gt;Thank you igorsk,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So in systick_main.c I can find something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if ( !(SysTick-&amp;gt;CTRL &amp;amp; (1&amp;lt;&amp;lt;SysTick_CTRL_CLKSOURCE_Msk)) )&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;And first line should be:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if ( !(SysTick-&amp;gt;CTRL &amp;amp; (1&amp;lt;&amp;lt;SysTick_CTRL_CLKSOURCE_Pos)) )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if ( !(SysTick-&amp;gt;CTRL &amp;amp; (SysTick_CTRL_CLKSOURCE_Msk)) )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Pawel&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Pawel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for noticing this error. The code has been changed to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;if ( !(SysTick-&amp;gt;CTRL &amp;amp; SysTick_CTRL_CLKSOURCE_Msk) )
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be released in the next example bundle update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-NXP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/systic-example-PCXpresso-LPC1343-Examples-V1-10/m-p/564577#M17639</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:54:49Z</dc:date>
    </item>
  </channel>
</rss>

