<?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 i.MX25 3-Stack board WinCE BSP PWM Problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX25-3-Stack-board-WinCE-BSP-PWM-Problem/m-p/238018#M19322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;I use WinCE BSP with the i.MX25 3-Stack board. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;The PWM used to drive the backlight on the i.MX25 3-Stack board is the PWM function within LCD Controller &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;instead of the PWM referenced in Chapter 37 of i.MX25 Reference Manual. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;As the frequency of PWM within LCD Controller is too high(200KHz) or too low(110Hz) (We need 300Hz). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;We use the PWM referenced in Chapter 37 of i.MX25 Reference Manual. We Set the PWM output frequency with &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;200Hz, used IPG_CLK32K as the source clock, it work prefect. But when We Set the GPIO3 GPIO[19] output high, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;the PWM output a Waveform with random Duty. The registers of PWM seems set right (See Below), Can Anyone help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;me ？ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;INFO: PWM REG Value &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;CR : 00030001 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;SR : 00000001 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;IR : 00000000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;SAR: 0000001e &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PR : 000000a0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;CNR: 00000000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;GPIO3_GPIO[19]---&amp;gt;IOMUXC_SW_MUX_CTL_PAD_POWER_FAIL = 0xb0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;GPIO3_GPIO[19]---&amp;gt;IOMUXC_SW_MUX_CTL_PIN_POWER_FAIL = 0x05 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM1---&amp;gt;IOMUXC_SW_MUX_CTL_PAD_PWM = 0xa0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM1---&amp;gt;IOMUXC_SW_MUX_CTL_PIN_PWM = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM4---&amp;gt;IOMUXC_SW_MUX_CTL_PAD_CONTRAST = 0xc0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM4-&amp;gt;IOMUXC_SW_MUX_CTL_PIN_CONTRAST = 0x4 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 02:17:16 GMT</pubDate>
    <dc:creator>zhoulishan</dc:creator>
    <dc:date>2013-09-18T02:17:16Z</dc:date>
    <item>
      <title>i.MX25 3-Stack board WinCE BSP PWM Problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX25-3-Stack-board-WinCE-BSP-PWM-Problem/m-p/238018#M19322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;I use WinCE BSP with the i.MX25 3-Stack board. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;The PWM used to drive the backlight on the i.MX25 3-Stack board is the PWM function within LCD Controller &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;instead of the PWM referenced in Chapter 37 of i.MX25 Reference Manual. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;As the frequency of PWM within LCD Controller is too high(200KHz) or too low(110Hz) (We need 300Hz). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;We use the PWM referenced in Chapter 37 of i.MX25 Reference Manual. We Set the PWM output frequency with &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;200Hz, used IPG_CLK32K as the source clock, it work prefect. But when We Set the GPIO3 GPIO[19] output high, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;the PWM output a Waveform with random Duty. The registers of PWM seems set right (See Below), Can Anyone help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;me ？ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;INFO: PWM REG Value &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;CR : 00030001 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;SR : 00000001 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;IR : 00000000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;SAR: 0000001e &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PR : 000000a0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;CNR: 00000000 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;GPIO3_GPIO[19]---&amp;gt;IOMUXC_SW_MUX_CTL_PAD_POWER_FAIL = 0xb0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;GPIO3_GPIO[19]---&amp;gt;IOMUXC_SW_MUX_CTL_PIN_POWER_FAIL = 0x05 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM1---&amp;gt;IOMUXC_SW_MUX_CTL_PAD_PWM = 0xa0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM1---&amp;gt;IOMUXC_SW_MUX_CTL_PIN_PWM = 0x0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM4---&amp;gt;IOMUXC_SW_MUX_CTL_PAD_CONTRAST = 0xc0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: x-small;"&gt;PWM4-&amp;gt;IOMUXC_SW_MUX_CTL_PIN_CONTRAST = 0x4 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 02:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX25-3-Stack-board-WinCE-BSP-PWM-Problem/m-p/238018#M19322</guid>
      <dc:creator>zhoulishan</dc:creator>
      <dc:date>2013-09-18T02:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX25 3-Stack board WinCE BSP PWM Problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX25-3-Stack-board-WinCE-BSP-PWM-Problem/m-p/238019#M19323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The PWM driver enables the 3-Stack System to provide the following software and hardware support:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;1. Supports duty cycle modulation&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;2. Supports varying output intervals&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;3. Supports two power management modes, full on and full off&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;The PWM driver outputs the toggling signal whose frequency and duty cycle can be modulated by programming the appropriate registers, please check your correct configuration for the IOMUX, The i.MX25 platform contains four PWM modules. PWM1 is conflicted with the interrupt from the Debug board. Therefore, this PWM can be used if the Debug board is not attached. PWM2 is used for USB OTG. PWM3 is used for USB OTG. PWM4 is conflicted with the LCD and CAN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Information about Wince Usage and unit test code please check the MX25 Wince BSP reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 16:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX25-3-Stack-board-WinCE-BSP-PWM-Problem/m-p/238019#M19323</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2013-10-07T16:53:26Z</dc:date>
    </item>
  </channel>
</rss>

