<?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>S12 / MagniV MicrocontrollersのトピックRe: HCS12 PWM</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184327#M6888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;well Sir, it's the probe..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the pull up resistors are all disabled in the Port P&lt;/DIV&gt;&lt;DIV&gt;I am driving a motor through an H-bridge.. and the motor guy told me that this "may" burn his motor.. may it?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thanks a lot..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;bye.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2008 01:37:14 GMT</pubDate>
    <dc:creator>prog_ram</dc:creator>
    <dc:date>2008-01-31T01:37:14Z</dc:date>
    <item>
      <title>HCS12 PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184325#M6886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;I am using the PWM. the problem is that sometimes I get a capacitive (charging/discharging) effects on the edges of the PWM signal.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can anyone please help me in that?&lt;/DIV&gt;&lt;DIV&gt;what would be the reason from not having a regular PWM signal generated from the PWM module?&lt;/DIV&gt;&lt;DIV&gt;thanks.&lt;/DIV&gt;&lt;DIV&gt;here is the code.&lt;/DIV&gt;&lt;DIV&gt;void PWM1_16bit_freq(float freq,float duty)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp; unsigned int total;&lt;BR /&gt;&amp;nbsp; int_val x,y;&lt;BR /&gt;&amp;nbsp; if (!((freq==0.0f)||(duty==0.0f)))&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; PWME.b.b1=1;// disable the channel&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; total=24000/freq;&lt;BR /&gt;&amp;nbsp; x.val=total;&lt;BR /&gt;&amp;nbsp; PWMPER0.byte=x.byteval[0];&lt;BR /&gt;&amp;nbsp; PWMPER1.byte=x.byteval[1];&lt;BR /&gt;&amp;nbsp; y.val=(total * duty)/100;&lt;BR /&gt;&amp;nbsp; PWMDTY0.byte=y.byteval[0];&lt;BR /&gt;&amp;nbsp; PWMDTY1.byte=y.byteval[1];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; PWMPER0.byte=0;&lt;BR /&gt;&amp;nbsp; PWMPER1.byte=0;&lt;BR /&gt;&amp;nbsp; PWMDTY0.byte=0;&lt;BR /&gt;&amp;nbsp; PWMDTY1.byte=0;&lt;BR /&gt;&amp;nbsp; PWME.b.b1=0;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;}&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 00:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184325#M6886</guid>
      <dc:creator>prog_ram</dc:creator>
      <dc:date>2008-01-31T00:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184326#M6887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I will tell you this - it has nothing to do with the code you are showing.&lt;BR /&gt;&lt;BR /&gt;- Did you turn on pull ups ? (Look in the PIM document for this)&lt;BR /&gt;&lt;BR /&gt;- Good chance it's the scope probes. There should be a little screw that tweaks this.&lt;BR /&gt;&lt;BR /&gt;- Could also be the bandwidth of the scope. Even if you are far below the rated bandwidth, squares wave can get a little curvy. Since square wave are rich in 3rd 5th &amp;amp; 7th ( all odd) harmonics, even at 1/10 the rated bandwidth, what you see may be a bit off. Seeing is not always believing.&lt;BR /&gt;&lt;BR /&gt;- Is it driving a circuit ? Is it loading the output?&lt;BR /&gt;&lt;BR /&gt;And last but not least - so what? Is it causing a malfunction in the output circuit?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 01:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184326#M6887</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-01-31T01:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184327#M6888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;well Sir, it's the probe..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the pull up resistors are all disabled in the Port P&lt;/DIV&gt;&lt;DIV&gt;I am driving a motor through an H-bridge.. and the motor guy told me that this "may" burn his motor.. may it?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thanks a lot..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;bye.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 01:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184327#M6888</guid>
      <dc:creator>prog_ram</dc:creator>
      <dc:date>2008-01-31T01:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184328#M6889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For one thing, it's the H Bridge driving the motor, not the HCS12 pins.&lt;BR /&gt;Do you have external pull ups? The rise/fall time depends on the pull ups.&lt;BR /&gt;Too weak of a pull up, and slow rise time too strong slow fall time.&lt;BR /&gt;&lt;BR /&gt;What is the part number of the H-Bridge?&lt;BR /&gt;Does it have built in fly back diodes?&lt;BR /&gt;&lt;BR /&gt;Did the "guy" say exactly why it would burn it?&lt;BR /&gt;What drive voltage are you using vs the rating for the motor?&lt;BR /&gt;Does the motor heat up - beyond the specification?&lt;BR /&gt;(it's pretty normal for a motor to get warm/hot)&lt;BR /&gt;&lt;BR /&gt;You see, it is hard to answer such a question with out all the data.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 01:46:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184328#M6889</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-01-31T01:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184329#M6890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Jim,&lt;/DIV&gt;&lt;DIV&gt;I am using TC4424 H-bridge, and it's said in the manual that it has some Capacitive effect. However, the square wave distortion was (as you said) from the scope probe itself..&lt;/DIV&gt;&lt;DIV&gt;as for the pull up, I am not using any pull ups along with the H-bridge, I fully control the channels with the Hcs12 ( I may add a pull up&amp;nbsp;later, 10K on the input channel of the H-bridge).&lt;/DIV&gt;&lt;DIV&gt;It doesn't have built-in flyback diodes, but I added them externally. So yes there are flyback diodes.&lt;/DIV&gt;&lt;DIV&gt;the voltages are all within the ranges..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;actually I know nothing about the motor other than the voltage/current needed.. (it's the company policy of that guy!!), all he said that it may BURN!!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;but since we solved the problem (thanks to&amp;nbsp;you)&amp;nbsp;and there is no distortion in the wave, I assume that there should be no problem...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thank you,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 01:57:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184329#M6890</guid>
      <dc:creator>prog_ram</dc:creator>
      <dc:date>2008-01-31T01:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184330#M6891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If a prolonged switching ramp exists, it is more likely to "burn" the H-bridge - there would be increased dissipation during the switching interval.&amp;nbsp; Check the temperature of the device, if you suspect there is a problem.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The switching period should have no detrimental effect on the motor itself.&amp;nbsp; Consider that the motor winding will have considerable inductance, and this will effectively smooth the motor current anyway.&amp;nbsp; The motor current waveform will be&amp;nbsp;triangular,&amp;nbsp;unless the PWM frequency is&amp;nbsp;too low.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;With fast switching, the control of voltage spikes is likely to be more of an issue (for the H-bridge).&amp;nbsp; The flyback diodes may need to be fast&amp;nbsp; recovery or Schottky types.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 09:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184330#M6891</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-01-31T09:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184331#M6892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The only way I could see a slow changing signal damage the motors is if the input was changing slowly enough and the input signal was noisy.&amp;nbsp; This might cause the output of the H-Bridge to oscillate as the signal rises.&amp;nbsp; I'm not sure what effects this oscillation could have on the&amp;nbsp;motor but it wouldn't be desireable.&amp;nbsp; Some H-bridges have a built in hysteresis, as yours does, to prevent this situation.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2008 01:35:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PWM/m-p/184331#M6892</guid>
      <dc:creator>allawtterb</dc:creator>
      <dc:date>2008-02-02T01:35:28Z</dc:date>
    </item>
  </channel>
</rss>

