This is a line from a program for a servo controler. In the program the veriable·for pw is a "word" please remember I am new at this. · ch·· VAR·· byte · pw· VAR·· word · ra·· VAR··· byte
·· Serial data transmission is done one BYTE at a time.· Since you're trying to send a Word, you must send it one BYTE at a time.· In this case, LOWBYTE then HIGHBYTE.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Chris Savage Parallax Tech Support csavage@parallax.com
Comments
Define a word $F0 or....
%1111111100000000
The high byte is %11111111
The low byte is %00000000
k
····· walt
···· serout sdat, baud+$800, [noparse][[/noparse]"!sc", ch, ra, pw.LOWBYTE, pw.HIGHBYTE, cr]
This is a line from a program for a servo controler. In the program the veriable·for pw is a "word" please remember I am new at this.
· ch·· VAR·· byte
· pw· VAR·· word
· ra·· VAR··· byte
·· Serial data transmission is done one BYTE at a time.· Since you're trying to send a Word, you must send it one BYTE at a time.· In this case, LOWBYTE then HIGHBYTE.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com