<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PWM LPC2129</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/22992/pwm-lpc2129</link><description> 
Hi. I found initialization code on KEIL website for the PWM on
LPC2129. It uses 12Mhz oscillator. 

 
Here is part of the code: 

 
PWMPR = 0x00000001; //Load prescaler 

 
PWMPCR = 0x0000404; //PWM channel 2 double edge control, output
enabled 
PWMMCR</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: PWM LPC2129</title><link>https://community.arm.com/thread/76041?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2008 00:20:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6fb1b94c-6c12-4a94-8c1d-fd422b23d69a</guid><dc:creator>R A</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,,&lt;br /&gt;
I have read the manuals, i could not get a clue. Because the concept
of a single edge PWM is when MR1 = Time counter resets(from high goes
low), i.e. if MR0 = 100 and MR1 =50, at time conter = 50 PWM1 rests.
What do the ticks mean in the comments i dont know...&lt;/p&gt;

&lt;p&gt;
One more thing do you know how to simulate hardware PWM in Logic
analyzer?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM LPC2129</title><link>https://community.arm.com/thread/51574?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2008 08:50:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ab812457-dbd9-45a4-ac3c-920caea8b1c4</guid><dc:creator>Ron Wedge</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello R A,&lt;/p&gt;

&lt;p&gt;
You said: &amp;quot;I don&amp;#39;t understand how 0xFF in PWMMR0 means 16 ticks ?
Also in PWMMR1 and PWMMR2?&amp;quot;&lt;/p&gt;

&lt;p&gt;
In ARM devices, implementation of peripherals, such as PWM, differ
form vendor to vendor. So this is a NXP specific question, not an ARM
question.&lt;/p&gt;

&lt;p&gt;
You can find the latest NXP documentation for the LPC2129
here:&lt;/p&gt;

&lt;p&gt;

&lt;a href="http://www.standardics.nxp.com/products/lpc2000/all/~LPC2129/#LPC2129"&gt;www.standardics.nxp.com/.../&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
The latest user manual for this device can be found here:&lt;/p&gt;

&lt;p&gt;

&lt;a href="http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2109.lpc2114.lpc2119.lpc2124.lpc2129.lpc2194.lpc2210.lpc2212.lpc2214.lpc2220.lpc2290.lpc2292.lpc2294.pdf"&gt;www.standardics.nxp.com/.../user.manual.lpc2109.lpc2114.lpc2119.lpc2124.lpc2129.lpc2194.lpc2210.lpc2212.lpc2214.lpc2220.lpc2290.lpc2292.lpc2294.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Chapter 16: LPC21xx/22xx Pulse Width Modulator (PWM) Describes how
this device&amp;#39;s PWM works.&lt;/p&gt;

&lt;p&gt;
Section 5.7 &amp;#39;PWM Match Control Register&amp;quot; Describes the what each
of the bits signify.&lt;/p&gt;

&lt;p&gt;
You may also want to use Keil&amp;#39;s peripheral PWM simulation details
as a &amp;#39;crib&amp;#39; sheet:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/dd/vtr/4364/8152.htm"&gt;http://www.keil.com/dd/vtr/4364/8152.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Check with your Local NXP FAE for more details. Or check on the
Yahoo LPC2000 user group for PWM examples:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://groups.yahoo.com/group/lpc2000/"&gt;groups.yahoo.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM LPC2129</title><link>https://community.arm.com/thread/49490?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2008 07:37:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:506aef6a-53e8-44fe-9190-1f3c2e1474b2</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello,&lt;br /&gt;
I don&amp;#39;t know the ARM architecture very well, but why don&amp;#39;t you read
the reference manual for your PLC? The answer must be there, and
available for download from Keil&amp;#39;s website.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>