Encoder/Motor control


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    G8RPI's Avatar
    G8RPI Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,
    A quick and dirty way of doinig this is to use PULSIN. If the value returned is zero then there was no pulse. Note that PULSIN will take .65 seconds to time out if there is no pulse, this can be reduced by using the DEFINE PULSIN_MAX
    A value of 1000 will time out in 0.01S (assuming a 4MHz clock).

    HTH,
    Robert G8RPI.

  2. #2
    mc33033's Avatar
    mc33033 Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Robert, I think I'm getting there. I've used pulsin successfully now to detect movement after wasting a lot of time by not putting CMCON=7 at the head of the file :-(

    Thanks again!

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts