HSERVO [pin\pos\speed]
pin = pin number to generate servo signal on
pos = position to move servo arm too. range ±12000. position is in clock cycles(1/16000000 of a second,.0625us), centered at 1500us
speed = how fast to move to new position. Must already be at a known position to use. First time using HSERVO should use a speed of 0. Speed of 0 means move to position immediately.
So… I don’t get it. does the position is centered at HSERVO[PIN\0\speed] being 0 actually 1500 us, 1200 - 2500 us??? is that what it is??? or is it the position telling the servo to rotate certain amount of degrees instead of moving to a position?
First thing I should mention is that the “pos” parameter depends on which processor you are using. What you show here is for the Basic Atom Pro 28 and the like, which run at 16mhz. The values are different for the Arc32 and the like that run at 20mhz.
Yes a value of pos=0 will actually generate a servo pulse of 1500us. The range they mentioned of ±12000 is not absolute, but just gives you a servo pulse range of 750-2250us
As mentioned in the other thread if you pass in -24000 on a BAP28 to hservo, it will turn off the pulse for that servo (-30000 on an Arc32).