<?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 56F8355 Processor Expert PWMA_PMOUT in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56F8355-Processor-Expert-PWMA-PMOUT/m-p/899867#M7590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the CoderWarrrior for 56F8355 DSP under processor expert -&amp;gt; Components -&amp;gt; Timers -&amp;gt; ExcPWM.PWM bean I have the following setting for PWMA_PMOUT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81631iDA1A0682C50F08EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When code is compiled this bean generates code under ExcPWM.c. The function ExcPWM_Init value for PWMA_PMOUT does not match the value assigned in bean for initial values. 48730 vs 16191. Any idea why these two are different. I want to set the "Out Control" for channel "0" (bit 0)to disable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Generated code&lt;/P&gt;&lt;P&gt;void ExcPWM_Init(void)&lt;BR /&gt;{&lt;BR /&gt; RatioStore = (word)655U; /* Store initial value of the ratio */&lt;BR /&gt; /* PWMA_PMICCR: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,ICC2=0,ICC1=0,ICC0=0 */&lt;BR /&gt; setReg(PWMA_PMICCR,0); /* Set up Internal Correction Control Register */&lt;BR /&gt; /* PWMA_PMDISMAP1: DISMAP=0 */&lt;BR /&gt; setReg(PWMA_PMDISMAP1,0); /* Set up PWM Disable Mapping Register 1 */&lt;BR /&gt; /* PWMA_PMDISMAP2: DISMAP=0 */&lt;BR /&gt; setReg(PWMA_PMDISMAP2,0); /* Set up PWM Disable Mapping Register 2 */&lt;BR /&gt; /* PWMA_PMOUT: PAD_EN=0,??=0,OUTCTL=63,??=0,??=0,OUT=63 */&lt;BR /&gt;setReg(PWMA_PMOUT,16191); /* Set up Output Control Register */&lt;BR /&gt; setReg(PWMA_PMDEADTM,0); /* Set up Dead-Time Register */&lt;BR /&gt; /* PWMA_PMCCR: ENHA=0,nBX=0,MSK=63,??=0,??=0,VLMODE=0,??=0,SWP45=0,SWP23=0,SWP01=0 */&lt;BR /&gt; setReg(PWMA_PMCCR,16128); /* Set up PWM Chanel Control Register */&lt;BR /&gt; /* PWMA_PMCFG: ??=0,DBG_EN=0,WAIT_EN=0,EDG=1,??=0,TOPNEG45=0,TOPNEG23=0,TOPNEG01=0,??=0,BOTNEG45=0,BOTNEG23=0,BOTNEG01=0,INDEP45=1,INDEP23=1,INDEP01=1,WP=0 */&lt;BR /&gt; setReg(PWMA_PMCFG,4110); /* Set up PWM configure register */&lt;BR /&gt; setReg(PWMA_PMCNT,0); /* Reset counter */&lt;BR /&gt; EnEvent = TRUE; /* Enable events */&lt;BR /&gt; EnUser = TRUE; /* Enable device */&lt;BR /&gt; setReg(PWMA_PWMVAL0,300); /* Store initial value to the duty-compare register */&lt;BR /&gt; setReg(PWMA_PWMCM,30000); /* and to the period register */&lt;BR /&gt; SetPV((byte)1); /* Set prescaler register according to the selected high speed CPU mode */&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2019 18:51:19 GMT</pubDate>
    <dc:creator>satyaakkina369</dc:creator>
    <dc:date>2019-05-17T18:51:19Z</dc:date>
    <item>
      <title>56F8355 Processor Expert PWMA_PMOUT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56F8355-Processor-Expert-PWMA-PMOUT/m-p/899867#M7590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the CoderWarrrior for 56F8355 DSP under processor expert -&amp;gt; Components -&amp;gt; Timers -&amp;gt; ExcPWM.PWM bean I have the following setting for PWMA_PMOUT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81631iDA1A0682C50F08EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When code is compiled this bean generates code under ExcPWM.c. The function ExcPWM_Init value for PWMA_PMOUT does not match the value assigned in bean for initial values. 48730 vs 16191. Any idea why these two are different. I want to set the "Out Control" for channel "0" (bit 0)to disable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Generated code&lt;/P&gt;&lt;P&gt;void ExcPWM_Init(void)&lt;BR /&gt;{&lt;BR /&gt; RatioStore = (word)655U; /* Store initial value of the ratio */&lt;BR /&gt; /* PWMA_PMICCR: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,ICC2=0,ICC1=0,ICC0=0 */&lt;BR /&gt; setReg(PWMA_PMICCR,0); /* Set up Internal Correction Control Register */&lt;BR /&gt; /* PWMA_PMDISMAP1: DISMAP=0 */&lt;BR /&gt; setReg(PWMA_PMDISMAP1,0); /* Set up PWM Disable Mapping Register 1 */&lt;BR /&gt; /* PWMA_PMDISMAP2: DISMAP=0 */&lt;BR /&gt; setReg(PWMA_PMDISMAP2,0); /* Set up PWM Disable Mapping Register 2 */&lt;BR /&gt; /* PWMA_PMOUT: PAD_EN=0,??=0,OUTCTL=63,??=0,??=0,OUT=63 */&lt;BR /&gt;setReg(PWMA_PMOUT,16191); /* Set up Output Control Register */&lt;BR /&gt; setReg(PWMA_PMDEADTM,0); /* Set up Dead-Time Register */&lt;BR /&gt; /* PWMA_PMCCR: ENHA=0,nBX=0,MSK=63,??=0,??=0,VLMODE=0,??=0,SWP45=0,SWP23=0,SWP01=0 */&lt;BR /&gt; setReg(PWMA_PMCCR,16128); /* Set up PWM Chanel Control Register */&lt;BR /&gt; /* PWMA_PMCFG: ??=0,DBG_EN=0,WAIT_EN=0,EDG=1,??=0,TOPNEG45=0,TOPNEG23=0,TOPNEG01=0,??=0,BOTNEG45=0,BOTNEG23=0,BOTNEG01=0,INDEP45=1,INDEP23=1,INDEP01=1,WP=0 */&lt;BR /&gt; setReg(PWMA_PMCFG,4110); /* Set up PWM configure register */&lt;BR /&gt; setReg(PWMA_PMCNT,0); /* Reset counter */&lt;BR /&gt; EnEvent = TRUE; /* Enable events */&lt;BR /&gt; EnUser = TRUE; /* Enable device */&lt;BR /&gt; setReg(PWMA_PWMVAL0,300); /* Store initial value to the duty-compare register */&lt;BR /&gt; setReg(PWMA_PWMCM,30000); /* and to the period register */&lt;BR /&gt; SetPV((byte)1); /* Set prescaler register according to the selected high speed CPU mode */&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 18:51:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56F8355-Processor-Expert-PWMA-PMOUT/m-p/899867#M7590</guid>
      <dc:creator>satyaakkina369</dc:creator>
      <dc:date>2019-05-17T18:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: 56F8355 Processor Expert PWMA_PMOUT</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56F8355-Processor-Expert-PWMA-PMOUT/m-p/899868#M7591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that this is a PE bug, You set the PAD_EN as 1, set the OUTCTL bits as 6b'111110, set the OUT bits as 6b'111111,&lt;/P&gt;&lt;P&gt;the PMOUT register will be 16b' 1011 1110 0011 1111, it is 0xBE3F, in decimal 48703. In the case, you have to write the PMOUT reg yourself.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81652i7C07D94461E80532/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 09:50:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/56F8355-Processor-Expert-PWMA-PMOUT/m-p/899868#M7591</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-05-20T09:50:21Z</dc:date>
    </item>
  </channel>
</rss>

