Menu

Wait Values

Help
2007-09-03
2013-05-30
  • Nobody/Anonymous

    Hello!
    I've recently tried to control a servo using Great Cow Basic and a PIC16F628A. Since at that time I just needed left and right movement, I used pulse values of 1 ms - 2 ms. However, now that I would like to have more specific movement, I was trying to use wait values of 1.2 ms, and 1.5 ms (to create pulse), however Great Cow Basic does not like these values. I remember being told that Great Cow Basic didn't like decimal-place values.

    I was wondering, is there any way to get around it?
    Thank you!
    -Omar

     
    • Nobody/Anonymous

      Haha, whoops. Just figured it out! Sorry about that.
      Seems I've gotten rather dull over the summer break.

      -Omar

       
    • Nobody/Anonymous

      Actually, it seems I was wrong. Please help!
      -Omar

       
    • Nobody/Anonymous

      Use something like, ...PulseOut Rservo,150 10us.

       
    • Nobody/Anonymous

      Gotcha, thanks.
      I've got the servo already working, but just didn't know how to use 1.5 ms or such accurate values in GCB. That helps-- thanks!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.