<?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: Having problem using PWM to control a futaba servo motor in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145414#M3899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Marc,&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;I would assume that the angular rotation limit is dictated by the design of the servo unit - you would need to check the specified limits for the model you are using.&amp;nbsp; Ultimately you are likely to reach a mechanical stop.&amp;nbsp; If the current rotation is somewhat less than the specified limit, you could try slightly reducing the minimum pulse period, and slightly increasing the maximum pulse period - nothing too drastic - and see if the amount of rotation increases, and remains linear.&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;To achieve rotation of 180 degrees, I presume you will need to select a servo model that is capable of this rotation.&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>Fri, 02 Mar 2007 15:20:58 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2007-03-02T15:20:58Z</dc:date>
    <item>
      <title>Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145407#M3892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using a MC9S12DP256C with an E-clock of 8MHz, the servo motor requires a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;period of 20ms(50Hz) with a minimum pulse of 0.5ms and a max pulse of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.5ms. The problem is that when I hook it up to the motor it just kinda&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;squirms rapidly, I ckecked it out with a scope and found that the period&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;coming out is something like 2.5Hz. I can't seem to see where my code or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;calculations went wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I divided the 8Mhz clock by 64 to get 125kHz, then divided that by 50Hz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to get that I need a 2500 period. That can fit into the period register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if I concactinate channel 0 and 1. However it doesnt seem to be working&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;out for some reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//start of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$HC12&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;; Test program for servos&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PWEN: equ $00A0 ; PWM enable register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWPER0: equ $00B4 ; PWM period channel for channel 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWPER1: equ $00B5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWPER2: equ $00B6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWCLK: equ $00A2 ; PWM clocks and concatenate (used to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;concat ch0 and ch1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWDTY0: equ $00BC ; PWM duty cycle for channel 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWDTY1: equ $00BD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWDTY2: equ $00BE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWPOL: equ $00A1 ; PWM clock select and polarity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWSCAL0:equ $00A8 ; PWM Scale register 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWPRCLK:equ $00A3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWCAE: equ $00A4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWCTL: equ $00A5 ; PWM control register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org $08FA&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #%00010000,PWCTL ; concate 0 and 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$00,PWCLK ; clock select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$02,PWPOL ; Polarity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #%00000110,PWPRCLK; Set up an initial frequency&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$00,PWCAE ; Left-Aligned&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$00,PWSCAL0 ; Do not further scale clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$02,PWEN ; Enable PWM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$09,PWPER0 ; Set channel 0 period&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$C3,PWPER1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;middle: MOVB #$49,PWDTY0 ; Set channel 0 duty cycle -(straight&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ahead)-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$3D,PWDTY1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ldaa #$FF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JSR delay ;32ms delay&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$00,PWEN ; Disable PWM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;right: MOVB #$2B,PWDTY0 ; Set channel 0 duty cycle -(right&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;turn)-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$F1,PWDTY1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$02,PWEN ; Enable PWM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ldaa #$FF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JSR delay ;32ms delay&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MOVB #$00,PWEN ; Disable PWM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BRA middle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;delay: LDX #$F0FF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay1: DEX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BNE delay1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DBNE A,delay&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RTS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//end of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 10:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145407#M3892</guid>
      <dc:creator>cramis1</dc:creator>
      <dc:date>2007-02-19T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145408#M3893</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;I think your problem may be that the 16-bit values in the PWM duty registers (11249 or 18749)&amp;nbsp;exceed the value in the PWM period registers (2499).&amp;nbsp; If my understanding of the data sheet is correct, this will result in a continuous high level at the PWM output. (for polarity bit = 1).&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;But since you are disabling the PWM channel after a timeout period (32ms), this may be what you are actually observing.&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;For 0.5 ms ON period, I would suspect the 16-bit duty register setting should be 63 (2500*0.5/20), and for 2.5 ms&amp;nbsp;the setting ahould be 313.&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>Mon, 19 Feb 2007 13:54:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145408#M3893</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-02-19T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145409#M3894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for the help but it still doesnt seem to be working, the motor just seems to squirm there even if I put those new values in for the duty.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 10:03:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145409#M3894</guid>
      <dc:creator>cramis1</dc:creator>
      <dc:date>2007-02-22T10:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145410#M3895</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;I would assume that your servo motor device actually requires a number of 20 millisecond cycles to stabilize to the set position.&amp;nbsp; However, you apparently provide a delay of only 32 milliseconds (less than two cycles) before changing the setting.&amp;nbsp; Try increasing this delay to&amp;nbsp;one second, or more.&amp;nbsp; You might also try just changing the duty cycle register value, without disabling and re-enabling the PWM channel - this might avoid timing discontinuity of the output waveform (gaps between pulses shorter than 20 ms at the transition).&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, 22 Feb 2007 12:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145410#M3895</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-02-22T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145411#M3896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks again for the reply, I put in two second delays for it to establish a position however It still just squirms there unfortunetly. Maybe I'll write my calculations here and if possible you can tell me if you see anything wrong with them.&lt;BR /&gt;&lt;BR /&gt;I am using an 8MHZ E-clock which I divided by 64 to get 125000HZ&lt;BR /&gt;I want a 50ms period for the motor so my period register will be:&lt;BR /&gt;0.050=(1/125000)*2*PWMPERx&lt;BR /&gt;which gives PWMPERx=3125&lt;BR /&gt;&lt;BR /&gt;Then for the duty register I want 0.5ms out of 20 ms period which is a duty of 2.5%&lt;BR /&gt;so 0.025=PWMDTY/3125&lt;BR /&gt;PWMDTY=78&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Marc&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 03:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145411#M3896</guid>
      <dc:creator>cramis1</dc:creator>
      <dc:date>2007-03-02T03:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145412#M3897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Marc,&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;Actually, I&amp;nbsp;could previously see no problem with your original calculation of&amp;nbsp;a PWMPER value of 2499, for a PWM period of 20 ms.&amp;nbsp; However, there now seems to be some&amp;nbsp;ambiguity whether the period should be 20 ms or 50 ms, and you&amp;nbsp;now use a different method of calculation.&amp;nbsp; If you really&amp;nbsp;need a 50 ms period, I would have expected a PWMPER value of 6249. &amp;nbsp;I also note that you are&amp;nbsp;basing your duty cycle calculation on a 20 ms period, rather that the 50 ms.&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;I might suggest you confirm the PWM period requirement from the data sheet for the servo device.&amp;nbsp; I would also suggest that you examine the PWM output you are actually getting, using an oscilloscope.&amp;nbsp; This will quickly confirm whether your calculations are correct.&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 you are presenting the correct timing, but the servo&amp;nbsp;remains unstable, this may indicate a faulty servo.&amp;nbsp; Do you have any independent means of checking the operation of the servo?&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;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 08:50:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145412#M3897</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-03-02T08:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145413#M3898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks, I seem to have it working, looks like it was a simple mistake of mixing up 50Hz and 50ms, doh.&lt;BR /&gt;&lt;BR /&gt;But I have one more question maybe you can help me out with, between the positions at 0.5ms period and 2.5ms period (the max and min) there is only about 50 degrees of rotation, if I wanted to get that up to 180 degrees, how could I make it do sucessive rotations?&lt;BR /&gt;&lt;BR /&gt;Thanks Again,&lt;BR /&gt;Marc&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 10:42:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145413#M3898</guid>
      <dc:creator>cramis1</dc:creator>
      <dc:date>2007-03-02T10:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem using PWM to control a futaba servo motor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145414#M3899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Marc,&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;I would assume that the angular rotation limit is dictated by the design of the servo unit - you would need to check the specified limits for the model you are using.&amp;nbsp; Ultimately you are likely to reach a mechanical stop.&amp;nbsp; If the current rotation is somewhat less than the specified limit, you could try slightly reducing the minimum pulse period, and slightly increasing the maximum pulse period - nothing too drastic - and see if the amount of rotation increases, and remains linear.&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;To achieve rotation of 180 degrees, I presume you will need to select a servo model that is capable of this rotation.&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>Fri, 02 Mar 2007 15:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Having-problem-using-PWM-to-control-a-futaba-servo-motor/m-p/145414#M3899</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-03-02T15:20:58Z</dc:date>
    </item>
  </channel>
</rss>

