<?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 Re: PWM functionality in KV4x in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/PWM-functionality-in-KV4x/m-p/1227732#M6676</link>
    <description>&lt;P&gt;Thank you, that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 06:57:05 GMT</pubDate>
    <dc:creator>soaring_sun</dc:creator>
    <dc:date>2021-02-08T06:57:05Z</dc:date>
    <item>
      <title>PWM functionality in KV4x</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/PWM-functionality-in-KV4x/m-p/1227412#M6673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a fresher to eclipse series of micro and would like if someone helps me out with the PWM functionality. I have been referring to the datasheet and the TRM of the micro-controller&amp;nbsp;MKV42F256VLL16. (I have attached them to this thread)&lt;/P&gt;&lt;P&gt;I have installed MCUXpresso IDE and have found an example project regarding the same. But when I compare the PWM registers mentioned in the manual and the example project, I just am not able to relate one to another.&lt;/P&gt;&lt;P&gt;1. There is an internal function, "BOARD_InitPins();" which initializes PORTA pins for sw0. Is this necessary/mandatory function for all programs? (This initialization is not present in the example project. Only the required pins are used.)&lt;/P&gt;&lt;P&gt;2. Using the functions, how will I be able to set the compare values to the registers? (Though I understand I could manually set them, I'm thinking using the inbuilt functions would be easier for me.)&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;If I'm using the inbuilt functions, should I be changing them according to the settings that I require? If the settings that are used in the inbuilt function are not what I need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll apologize beforehand if my question looks silly, but I'm desperate for learning them better. I'll look forward to your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 09:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/PWM-functionality-in-KV4x/m-p/1227412#M6673</guid>
      <dc:creator>soaring_sun</dc:creator>
      <dc:date>2021-02-06T09:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: PWM functionality in KV4x</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/PWM-functionality-in-KV4x/m-p/1227719#M6674</link>
      <description>&lt;P&gt;Hi soaring_sun,&lt;/P&gt;
&lt;P&gt;1. No, it's not mandatory. Just initialize required pin in&amp;nbsp;&lt;SPAN&gt;BOARD_InitPins(). Of course you can initialize them in any place you like. Keeping unused pin in default state is no problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. In the example project, you can see that it use&amp;nbsp;PWM_UpdatePwmDutycycle() to change PWM duty.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. Yes, of course.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 06:42:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/PWM-functionality-in-KV4x/m-p/1227719#M6674</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-02-08T06:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: PWM functionality in KV4x</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/PWM-functionality-in-KV4x/m-p/1227732#M6676</link>
      <description>&lt;P&gt;Thank you, that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 06:57:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/PWM-functionality-in-KV4x/m-p/1227732#M6676</guid>
      <dc:creator>soaring_sun</dc:creator>
      <dc:date>2021-02-08T06:57:05Z</dc:date>
    </item>
  </channel>
</rss>

