<?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>Deadtime in Lpc1768</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/34567/deadtime-in-lpc1768</link><description> 
Hi, 
Iam facing problem in MCPWM. 

 
Iam able to generate MCPWM on A0,B0 (P1.19,P1.22) pins. but
&amp;lt;deadtime&amp;gt; is not generating in between A0 and B0 . 
I want to include deadtime I read datasheet everything is correct but
it is not generating. 

 
Please</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Deadtime in Lpc1768</title><link>https://community.arm.com/thread/93809?ContentTypeID=1</link><pubDate>Sun, 09 Oct 2016 09:43:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0db6195f-31ba-4419-b6ab-4c3df24312a5</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You seem to face some issues reading the instructions how to post
source code.&lt;/p&gt;

&lt;p&gt;
For some reason you put all your focus on writing
&amp;quot;&amp;lt;/deadtime&amp;gt;&amp;quot; instead of usig the pre tags for the actual code.
And in the second attempt you dropped the comments in the code.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deadtime in Lpc1768</title><link>https://community.arm.com/thread/65061?ContentTypeID=1</link><pubDate>Sun, 09 Oct 2016 08:00:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:01af44a0-8922-4beb-a9ce-0c9bc9ba2f8d</guid><dc:creator>gavi prakash</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
Iam facing problem in MCPWM.&lt;/p&gt;

&lt;p&gt;
Iam able to generate MCPWM on A0,B0 (P1.19,P1.22) pins. but
&amp;lt;/deadtime&amp;gt; is not generating in between A0 and B0 .&lt;br /&gt;
I want to include deadtime I read datasheet everything is correct but
it is not generating.&lt;/p&gt;

&lt;p&gt;
Please check my code and help me.&lt;/p&gt;

&lt;p&gt;
#include &amp;quot;LPC17xx.h&amp;quot;&lt;/p&gt;

&lt;p&gt;
int main (void) {&lt;/p&gt;

&lt;p&gt;
int i=0,j=0; SystemInit();&lt;/p&gt;

&lt;p&gt;
LPC_SC-&amp;gt;PCONP |= (1&amp;lt;&amp;lt;17);&lt;br /&gt;
LPC_PINCON-&amp;gt;PINSEL3 |= (1&amp;lt;&amp;lt;12)|(1&amp;lt;&amp;lt;6);
LPC_GPIO1-&amp;gt;FIODIR |= (1&amp;lt;&amp;lt;19)|(1&amp;lt;&amp;lt;22);&lt;br /&gt;
LPC_MCPWM-&amp;gt;MCCCP =
(1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;3);
LPC_MCPWM-&amp;gt;MCCON_SET |=(1&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;31)|(1&amp;lt;&amp;lt;29);
LPC_MCPWM-&amp;gt;MCTIM0 = 0;&lt;br /&gt;
LPC_MCPWM-&amp;gt;MCPER0 = 1000; LPC_MCPWM-&amp;gt;MCPW0 = 600;
LPC_MCPWM-&amp;gt;MCDEADTIME = 0x100 ; for(i=0;i&amp;lt;10000;i++)&lt;br /&gt;
for(j=0;j&amp;lt;1000;j++);&lt;br /&gt;
LPC_MCPWM-&amp;gt;MCCON_SET |= (1&amp;lt;&amp;lt;0); while(1) {
LPC_MCPWM-&amp;gt;MCPER0 = 500; LPC_MCPWM-&amp;gt;MCPW0 = 150;
for(i=0;i&amp;lt;10000;i++) for(j=0;j&amp;lt;1000;j++);&lt;br /&gt;
LPC_MCPWM-&amp;gt;MCPER0 = 1000; LPC_MCPWM-&amp;gt;MCPW0 = 300;&lt;/p&gt;

&lt;p&gt;
for(i=0;i&amp;lt;10000;i++) for(j=0;j&amp;lt;1000;j++); } }&lt;/p&gt;

&lt;p&gt;
ThankYou&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>