<?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>LPCXpresso IDE中的主题 Re: Peripheral register not set with correct values</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577179#M23079</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 Jun 09 06:20:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Zero, I think you should send a check to NXP for all the support you're doing here :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:28:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:28:51Z</dc:date>
    <item>
      <title>Peripheral register not set with correct values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577177#M23077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 256Doofus on Thu Jun 09 06:06:14 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When setting the LPC_TMR32B1-&amp;gt;[SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]PWMC [SIZE=3][COLOR=#000000]to 0x11 it will only be sett to 0x1.[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some suggestion?&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;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;

[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void
[/COLOR][/SIZE][/COLOR][/SIZE][/B][LEFT][SIZE=2][B]Timer_Setup[/B]([/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2])[/SIZE]
[LEFT][SIZE=2]{[/SIZE][/LEFT]
[/LEFT]

[INDENT]
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]volatile[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] temp = 0;[/SIZE]
[LEFT][SIZE=2]LPC_SYSCON-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SYSAHBCLKCTRL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] |= (1&amp;lt;&amp;lt;10);[/SIZE][/LEFT]
 
[LEFT][SIZE=2]LPC_IOCON-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]JTAG_TDO_PIO1_1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp;= ~0x07;[/SIZE]
[SIZE=2]LPC_IOCON-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]JTAG_TDO_PIO1_1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] |= 0x03; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]// Timer1_32 MAT0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f]
[/COLOR][/SIZE][SIZE=2]LPC_IOCON-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]JTAG_nTRST_PIO1_2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp;= ~0x07;[/SIZE][/LEFT]


[LEFT][SIZE=2]LPC_IOCON-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]JTAG_nTRST_PIO1_2[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] |= 0x03; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]// Timer1_32 MAT1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2]LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]PR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 0;[/SIZE]
[SIZE=2]LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]MR0[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 0xffffffff;[/SIZE]
[SIZE=2]LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]MR1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 0xffffffff;[/SIZE]
[SIZE=2]LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]MR3[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = TIME_INTERVAL;[/SIZE]
[SIZE=2]LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]MCR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = (1 &amp;lt;&amp;lt; 10); [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//Reset on MR3: the TC will be reset if MR3 matches it.[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f][/LEFT]
[/COLOR][/SIZE]
[LEFT][SIZE=2]LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]PWMC[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 0x11; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//PWM enable on CT32B1_MAT0 and CT32B1_MAT1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f]
[/COLOR][/SIZE][SIZE=2]temp = LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]PWMC[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//LPC_TMR32B1-&amp;gt;EMR = 0x10100000; //PWM enable on CT32B1_MAT0 and CT32B1_MAT1[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f][/LEFT]

[LEFT][/COLOR][/SIZE][SIZE=2]LPC_TMR32B1-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]TCR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 1; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//Enable Timers[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f][/LEFT]
[/LEFT]

[/COLOR][/SIZE]
[/INDENT][SIZE=2]}[/SIZE]
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
[LEFT][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]LPC_TMR32B1-&amp;gt;PWMC = 0x11; //PWM enable on CT32B1_MAT0 and CT32B1_MAT1[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]0x00000ec6 &amp;lt;Timer_Setup+254&amp;gt;: movw r3, #32768 ; 0x8000[/SIZE]
[SIZE=2]0x00000eca &amp;lt;Timer_Setup+258&amp;gt;: movt r3, #16385 ; 0x4001[/SIZE]
[SIZE=2]0x00000ece &amp;lt;Timer_Setup+262&amp;gt;: mov.w r2, #17[/SIZE]
[SIZE=2]0x00000ed2 &amp;lt;Timer_Setup+266&amp;gt;: str r2, [r3, #116] ; 0x74[/SIZE]
[SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]temp = LPC_TMR32B1-&amp;gt;PWMC;[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]0x00000ed4 &amp;lt;Timer_Setup+268&amp;gt;: movw r3, #32768 ; 0x8000[/SIZE]
[SIZE=2]0x00000ed8 &amp;lt;Timer_Setup+272&amp;gt;: movt r3, #16385 ; 0x4001[/SIZE]
[SIZE=2]0x00000edc &amp;lt;Timer_Setup+276&amp;gt;: ldr r3, [r3, #116] ; 0x74[/SIZE][/LEFT]
[SIZE=2]0x00000ede &amp;lt;Timer_Setup+278&amp;gt;: str r3, [r7, #4][/SIZE]
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577177#M23077</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Peripheral register not set with correct values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577178#M23078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Jun 09 06:17:09 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are we talking about LPC1114?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0x11 is not valid :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to set MAT0 and MAT1 the right value is 0x03 (bit0 + bit1) :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577178#M23078</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Peripheral register not set with correct values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577179#M23079</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 Jun 09 06:20:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Zero, I think you should send a check to NXP for all the support you're doing here :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577179#M23079</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Peripheral register not set with correct values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577180#M23080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 256Doofus on Thu Jun 09 06:21:05 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1343&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But of cource.... I was thinking 0b11....... :o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But why not 0b in C ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577180#M23080</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Peripheral register not set with correct values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577181#M23081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Jun 09 06:33:30 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also write your values binary, but I don't want to see things like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;value32bit = 0b11001100100101010001001000100111; :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my code. Perhaps readable for 8-bit values, but not for 32-bit :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577181#M23081</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Peripheral register not set with correct values</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577182#M23082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 256Doofus on Thu Jun 09 06:37:15 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Se that 0b did come with the 4.3 gcc&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;Integer constants written in binary are now supported as a GCC extension. They consist of a prefix 0b or 0B, followed by a sequence of 0 and 1 digits. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Peripheral-register-not-set-with-correct-values/m-p/577182#M23082</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:28:53Z</dc:date>
    </item>
  </channel>
</rss>

