16F876A Pulsin issues


Results 1 to 16 of 16

Threaded View

  1. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Bobbo

    Try this

    Code:
    ...
    
    PAUSE 2000
    LCDOUT $FE, 1, "Pulse"," "
    
    Main:
        PulsIn Rx,1,P                    'Read in Rx input
        LOW servo
        pulsout servo, P                 'output to a servo connected on B.1
        Toggle PORTB.5
        LCDOUT $FE, $80+7,  # P    'Output to LCD
        LCDOUT $FE, $C0+1,# P           'Testing on the second line
    goto main:
    
    ...
    Servo will follow the input signal ...

    Alain
    Last edited by Acetronics2; - 30th March 2010 at 11:15.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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