<?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: Problems with ADC and PWM in Kinetis KE06Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571172#M34115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reduced the PWM period from 750 us to 40 us, the noise diminished greatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though, it would be nice to know why this happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 23:38:07 GMT</pubDate>
    <dc:creator>leonardomoreno</dc:creator>
    <dc:date>2016-08-29T23:38:07Z</dc:date>
    <item>
      <title>Problems with ADC and PWM in Kinetis KE06Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571171#M34114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm introducing myself to the Kinetis family and so far it has proven to be great por my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as a note, I don't have a Deep knowledge around the operating fundamentals of this kind of boards. So still working with interrupts and timer units is a bit confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm currently having a problem while Reading temperature through the ADC while having an PWM output in other pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I'm doing is Reading the temperatura of 2 external thermistors through the ADC. With that I haven't had any problem and also the signal has almost no noise (after being filtered with an RC circuit and using an OPAMP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm Reading the temperature continously using the Measure(TRUE) and GetValue() methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the same time I'm controlling an external IBT-2 H-Bridge using two pins with PWM (both pins share the same Timer Unit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not having any problems in the signal when I have a duty cycle in any of the PWM's of zero or full (0 or 65535 with function SetRatio16() ). However when I send a signal of 20,000, 30,000, 40,000 or anything near this values, the ADC signal turns incredibly noisy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The H-Bridge is controlling a Peltier Cell at 14 V and máximum current demand of about 5 Amps (It's rated for Max 26 V and 43 Amps and PWM of 25 KHz)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My pwm period is 750 us so that's around 1 KHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to do with the H-bridge, since if I send a PWM of any value while reading the temperature while disconnecting the external power source that feeds the Peltier Cell, no noise arises.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been battling with this for some time now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone have had this kind of problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 22:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571171#M34114</guid>
      <dc:creator>leonardomoreno</dc:creator>
      <dc:date>2016-08-29T22:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ADC and PWM in Kinetis KE06Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571172#M34115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reduced the PWM period from 750 us to 40 us, the noise diminished greatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though, it would be nice to know why this happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 23:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571172#M34115</guid>
      <dc:creator>leonardomoreno</dc:creator>
      <dc:date>2016-08-29T23:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ADC and PWM in Kinetis KE06Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571173#M34116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your noise issue, I think you do not isolate the MCU GND and the power GND, you connect the MCU ground and Power ground together, I think the noise results from the mcu analog ground.&lt;/P&gt;&lt;P&gt;From hardware connection, you should connect the GND of the temperature sensor close to analog ground of mcu. If you can not change the PCB design, I suppose if you sample the temperature sensor voltage at the instant that PWM rising/falling edge occurs, the noise may be large. Can you sample the temperature at the center of PWM signal? at the instant, the noise voltage is stable.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:32:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571173#M34116</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-08-30T09:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with ADC and PWM in Kinetis KE06Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571174#M34117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the recommendation. I will try both of them. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 14:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-ADC-and-PWM-in-Kinetis-KE06Z/m-p/571174#M34117</guid>
      <dc:creator>leonardomoreno</dc:creator>
      <dc:date>2016-08-30T14:41:42Z</dc:date>
    </item>
  </channel>
</rss>

