<?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>8-bit MicrocontrollersのトピックRe: PWM Sine Wave Generation</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Sine-Wave-Generation/m-p/128412#M1678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, Roger:&lt;BR /&gt;&lt;BR /&gt;I think the mathematically correct way to look at the output is as a vector. A vector has an amplitude and an angle.&lt;BR /&gt;&lt;BR /&gt;But the practical way of thinking about it is to compare your brushless-motor with a brushed-motor. A brushed-motor does it's own commutation, and all you need to do is provide a voltage or current (torque) command to control it. The amplitude, in your application is analogous to the voltage or current command, and the angle is the only the commutation.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2006 03:17:27 GMT</pubDate>
    <dc:creator>rocco</dc:creator>
    <dc:date>2006-08-28T03:17:27Z</dc:date>
    <item>
      <title>PWM Sine Wave Generation</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Sine-Wave-Generation/m-p/128411#M1677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the process of generating a sine wave to drive a 3-phase motor (via a 6-MOSFET or IGBT bridge), and using the V/Hz ramp technique, we can see that the V/Hz ramp process (reference. AN1857, AN1664, etc.) has two output variables: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amplitude and Table_inc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These two variables are the input for the next process, the PWM Generation Process (Pwmcalc.c) , which, for phase A (for example), uses a sine wave table for one quadrant (with 3rd harmonic) (variable wavequad), retrieves the Table_value, then SCALES BY AMPLITUDE, and finally, calculates PVAL1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A piece of the code follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Table_value = (wavequad[Quad_ptr&amp;gt;&amp;gt;8]); Pwmmod_wave = (Table_value * Amplitude); /* scale by Amplitude */ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PVAL1 = (Pwmmod_wave&amp;gt;&amp;gt;8) + (PWM_MODULUS/2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is if we actually have the wavequad wave table for one quadrant, why do we have to scale Table_value by amplitude ? Isn't the data in the wave table sufficient for that ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second question follows: where can I find generous litterature about how is Amplitude related to PVALx's value, since PVALx is a register for the PWM module ?!! Can anyone explain that clearly please ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roger Tannous.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Aug 2006 04:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Sine-Wave-Generation/m-p/128411#M1677</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-08-27T04:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Sine Wave Generation</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Sine-Wave-Generation/m-p/128412#M1678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, Roger:&lt;BR /&gt;&lt;BR /&gt;I think the mathematically correct way to look at the output is as a vector. A vector has an amplitude and an angle.&lt;BR /&gt;&lt;BR /&gt;But the practical way of thinking about it is to compare your brushless-motor with a brushed-motor. A brushed-motor does it's own commutation, and all you need to do is provide a voltage or current (torque) command to control it. The amplitude, in your application is analogous to the voltage or current command, and the angle is the only the commutation.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 03:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PWM-Sine-Wave-Generation/m-p/128412#M1678</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-08-28T03:17:27Z</dc:date>
    </item>
  </channel>
</rss>

