<?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: LPC11u68 SYSCON PRESETCTRL not setting in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724777#M29306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean. It was a stupid typo&lt;/P&gt;&lt;P&gt;!= (not equal) instead of&lt;/P&gt;&lt;P&gt;|= (or and assign).&lt;/P&gt;&lt;P&gt;thanks for pointing that out. I was just blinded by similarity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 May 2018 12:44:38 GMT</pubDate>
    <dc:creator>svensavic</dc:creator>
    <dc:date>2018-05-13T12:44:38Z</dc:date>
    <item>
      <title>LPC11u68 SYSCON PRESETCTRL not setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724775#M29304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a peculiar issue with writing a driver for LPC11U68. I want to use SCT0 and for that I need to set or rather unset the reset bit for SCT0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000;"&gt;#define _BV(pin) (1U &amp;lt;&amp;lt; (pin))&lt;/PRE&gt;&lt;PRE style="color: #000000;"&gt;uint32_t before = LPC_SYSCON-&amp;gt;PRESETCTRL;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
if (a_chn &amp;lt; 10)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; LPC_SYSCON-&amp;gt;PRESETCTRL != _BV(9); //SCT0 reset disable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; LPC_SYSCON-&amp;gt;PRESETCTRL != _BV(10); //SCT1 reset disable &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= _BV(31); //enable SCT0_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
uint32_t after = LPC_SYSCON-&amp;gt;PRESETCTRL;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Funny enough before == after == 0x00. For some reason PRESETCTRL doesnt accept any input. While, SYSAHBCLKCTRL sets the bit without any problems. Is there something I need to enable prior to changing the &lt;SPAN&gt;PRESETCTRL&lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2018 14:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724775#M29304</guid>
      <dc:creator>svensavic</dc:creator>
      <dc:date>2018-05-06T14:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11u68 SYSCON PRESETCTRL not setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724776#M29305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sven,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think your problem is caused by your code:&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;LPC_SYSCON-&amp;gt;PRESETCTRL != _BV(10); //SCT1 reset disable 
LPC_SYSCON-&amp;gt;PRESETCTRL != _BV(9); //SCT0 reset disable&amp;nbsp;&amp;nbsp;
 Please rewrite it like this:
&lt;PRE style="color: #000000;"&gt;LPC_SYSCON-&amp;gt;PRESETCTRL &amp;amp;= ~(_BV(10)); //SCT1 reset disable
&lt;PRE style="color: #000000;"&gt;LPC_SYSCON-&amp;gt;PRESETCTRL &amp;amp;= ~(_BV(9)); //SCT0 reset disable&amp;nbsp;
It's totally your code written problem.

&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&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>Wed, 09 May 2018 07:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724776#M29305</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-05-09T07:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11u68 SYSCON PRESETCTRL not setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724777#M29306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean. It was a stupid typo&lt;/P&gt;&lt;P&gt;!= (not equal) instead of&lt;/P&gt;&lt;P&gt;|= (or and assign).&lt;/P&gt;&lt;P&gt;thanks for pointing that out. I was just blinded by similarity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2018 12:44:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724777#M29306</guid>
      <dc:creator>svensavic</dc:creator>
      <dc:date>2018-05-13T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11u68 SYSCON PRESETCTRL not setting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724778#M29307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sven,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are welcome!&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have question about this topic, just let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If your question is solved, please help me to mark the correct answer, just to close this case, thank you!&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>Mon, 14 May 2018 01:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11u68-SYSCON-PRESETCTRL-not-setting/m-p/724778#M29307</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-05-14T01:45:19Z</dc:date>
    </item>
  </channel>
</rss>

