Need help with 16f877a.


Closed Thread
Results 1 to 2 of 2
  1. #1
    Bertrand's Avatar
    Bertrand Guest

    Default Need help with 16f877a.

    Hey guys, i am new to these forums but i can already tell there are a lot of knowledgable people around and i am more than excited to learn more and more every day. So, introductions aside my first question is:
    How to measure the width (duration) of incoming impulse on one of the nodes on PIC 16f877a in milliseconds range ?

    Thx a lot in advance.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Need help with 16f877a.

    Hi. I did this a few years ago with a 12F675.
    START:
    Clear
    PulsIn GPIO.3,1,WIDTH 'LOOKING FOR A HIGH PULSE
    IF WIDTH > 490 AND WIDTH < 510 Then High GPIO.4 'led5 LOOKING FOR 5MS
    IF WIDTH >590 AND WIDTH < 610 Then High GPIO.2 'LED6
    IF WIDTH >690 AND WIDTH < 710 Then High GPIO.1 'LED7
    IF WIDTH >790 AND WIDTH < 810 Then High GPIO.0 'LED8
    IF WIDTH > 1800 AND WIDTH < 2200 Then LET GPIO = 0 'OFF ALL LED'S
    GoTo START

Similar Threads

  1. 16f877a help
    By oreo in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 18th June 2008, 05:50
  2. 16F877a - Please Help
    By tarexpanda in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd April 2007, 08:28
  3. 16f877a
    By alaaodeh in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th February 2007, 23:38
  4. I need help with 16F877A
    By valerij in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th December 2006, 17:05
  5. Need help with 16F877A
    By valerij in forum General
    Replies: 0
    Last Post: - 13th November 2006, 16:26

Members who have read this thread : 1

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