<?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のトピックHow can I change the state of SCT upper timer by using an event on the lower?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-change-the-state-of-SCT-upper-timer-by-using-an-event/m-p/665932#M26639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to produce a signal from SCT2 which changes from 650Hz to 1000Hz and back at a rate of 5Hz. I set the timer to be non-unified. I set the lower counter to give an output event and change of state at 5Hz and the upper to give 650/1000Hz, depending on state. What I didn't realise is that the states for upper and lower seem to be independent so this didn't work. I then wondered if I could connect the output from the lower timer event to the input of the upper timer but I can't find any way of doing this. The chip is LPC1549 and the movable functions do not include SCTIN so I can't fudge it by connecting an input and an output to the same physical pin.&lt;/P&gt;&lt;P&gt;One more requirement is not to use interrupts or have any regular processor involvement. It should be set and forget.&lt;/P&gt;&lt;P&gt;Has anybody any ideas about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2017 11:11:25 GMT</pubDate>
    <dc:creator>waterdragon900</dc:creator>
    <dc:date>2017-05-03T11:11:25Z</dc:date>
    <item>
      <title>How can I change the state of SCT upper timer by using an event on the lower?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-change-the-state-of-SCT-upper-timer-by-using-an-event/m-p/665932#M26639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to produce a signal from SCT2 which changes from 650Hz to 1000Hz and back at a rate of 5Hz. I set the timer to be non-unified. I set the lower counter to give an output event and change of state at 5Hz and the upper to give 650/1000Hz, depending on state. What I didn't realise is that the states for upper and lower seem to be independent so this didn't work. I then wondered if I could connect the output from the lower timer event to the input of the upper timer but I can't find any way of doing this. The chip is LPC1549 and the movable functions do not include SCTIN so I can't fudge it by connecting an input and an output to the same physical pin.&lt;/P&gt;&lt;P&gt;One more requirement is not to use interrupts or have any regular processor involvement. It should be set and forget.&lt;/P&gt;&lt;P&gt;Has anybody any ideas about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 11:11:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-change-the-state-of-SCT-upper-timer-by-using-an-event/m-p/665932#M26639</guid>
      <dc:creator>waterdragon900</dc:creator>
      <dc:date>2017-05-03T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the state of SCT upper timer by using an event on the lower?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-change-the-state-of-SCT-upper-timer-by-using-an-event/m-p/665933#M26640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin Burn,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you define the UNIFY =0, and control two 16-bit counter, actually, you can consider it is two independent 16bit timer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you want to out put the 5HZ and 650Hz to 1000Hz wave in the same output pin in the different time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could you give more details about it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you want to out put it in the same pin, maybe you can change the SCT configuration when the time is reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 09:01:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-change-the-state-of-SCT-upper-timer-by-using-an-event/m-p/665933#M26640</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-05T09:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the state of SCT upper timer by using an event on the lower?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-change-the-state-of-SCT-upper-timer-by-using-an-event/m-p/665934#M26641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your response.&lt;/P&gt;&lt;P&gt;I don’t need to have a physical output from the 5Hz counter. I just need the logical 5Hz signal to toggle the second counter between 650 Hz and 1000Hz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I &lt;STRONG&gt;do&lt;/STRONG&gt; need a physical pin output from the 650/1000Hz counter.&lt;/P&gt;&lt;P&gt;I can’t really think of any other details to give other than those I already posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In summary, I suppose, all I am asking is how to connect one counter’s output to another counter’s input and create an event with it. I have already successfully run the two non-unified counters and proven that my code works.&lt;/P&gt;&lt;P&gt;It’s just connecting between the two  that is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t mind using two SCTs in unified mode if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Colin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 07:21:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-change-the-state-of-SCT-upper-timer-by-using-an-event/m-p/665934#M26641</guid>
      <dc:creator>waterdragon900</dc:creator>
      <dc:date>2017-05-09T07:21:05Z</dc:date>
    </item>
  </channel>
</rss>

