Shop OBEX P1 Docs P2 Docs Learn Events
New to PASM--help with changing program — Parallax Forums

New to PASM--help with changing program

ThricThric Posts: 109
edited 2010-07-05 23:47 in Propeller 1
The title says it all, I need a little help with changing a program. The program I got from somebody is used to read a RC reciever's output and returns information about the pwm values. Since I have absolutely no experience with PASM I'm wondering if someone could lend me a hand. What I need to do is change the pins that the program scans from the default 0-5 to 11-17. Help with some explanations would be greatly appreciated. I attached the program below.

Thric

Comments

  • TimmooreTimmoore Posts: 1,031
    edited 2010-07-05 23:34
    I did this change a while ago but haven't had a chance to test it but it should do what you want. You call setpins with the mask of the pins you need, they must be contiguous but can be any pin. For P11-17 the mask should be %111111100000000000·assuming pin start at P0.
    ·Are you sure you mean 11-17 thats 7 channels not 6?

    Post Edited (Timmoore) : 7/5/2010 11:39:50 PM GMT
  • ThricThric Posts: 109
    edited 2010-07-05 23:47
    Thank you once again Timmoore! It seems like you always have the answer. Sorry if all these questions are a bother but PASM is so far like thin ice to me!

    Thanks
Sign In or Register to comment.