servos on a 20x2

sid

Senior Member
I have just discovered the hard way that the 20x2 only supports the servo function on the B ports and NOT on the C ports :eek:

However this particular piece of information seems to be lacking in any of the spec sheets for the 20x2. Or its very well hidden.
It is possible that I have missed the relevant line of instruction, but if not perhaps Rev ed could add this to their list of instructions to up date
 

eclectic

Moderator
I have just discovered the hard way that the 20x2 only supports the servo function on the B ports and NOT on the C ports :eek:

However this particular piece of information seems to be lacking in any of the spec sheets for the 20x2. Or its very well hidden.
It is possible that I have missed the relevant line of instruction, but if not perhaps Rev ed could add this to their list of instructions to up date
Err I hate to say this, but
Manual 2 p. 211 (v.7.5)
"On M2 and X2 parts the servo commands only function on portB (B.0 to B.7)"

Ec
 

sid

Senior Member
Err I hate to say this, but
Manual 2 p. 211 (v.7.5)
"On M2 and X2 parts the servo commands only function on portB (B.0 to B.7)"

Ec
The fact that I was working from manual 2 Version 7.0 06/2010 probably has something to do with it then. But you have to admit, you have to look for it!,
still lesson learned, perhaps others can avoid my mistake.
 

Bill.b

Senior Member
servos on port c

high all

it is posible to run a servo from port C as shown below
then numbers for then pulsout will very depending on then
operation frequency. this program was run o the 18m2


'servo operation from port c

Symbol SERVO1 =c.0
Symbol SERVOLeft = 75
Symbol SERVORight = 300
Symbol SERVOCent = 150
main:
for b1 = 1 to 20
pulsout SERVO1,SERVOCent
pause 20
next
pause 2000
for b1 = 1 to 20
pulsout SERVO1,SERVOleft
pause 20
next
pause 3000
for b1 = 1 to 20
pulsout SERVO1,SERVOright
pause 20
next
pause 5000
goto main
 

westaust55

Moderator
Although not the SERVO specific functions Sid was looking for and also using more program space, I am sure that Sid will be glad of a "solution" if finding out the hard way involved an already constructed PCB.
 

sid

Senior Member
high all

it is posible to run a servo from port C as shown below
then numbers for then pulsout will very depending on then
operation frequency. this program was run o the 18m2


'servo operation from port c

Symbol SERVO1 =c.0
Symbol SERVOLeft = 75
Symbol SERVORight = 300
Symbol SERVOCent = 150
main:
for b1 = 1 to 20
pulsout SERVO1,SERVOCent
pause 20
next
pause 2000
for b1 = 1 to 20
pulsout SERVO1,SERVOleft
pause 20
next
pause 3000
for b1 = 1 to 20
pulsout SERVO1,SERVOright
pause 20
next
pause 5000
goto main
Thanks Bill
 
Top