newbie Q - edge detection?


Results 1 to 16 of 16

Threaded View

  1. #1
    RMCRAVEN's Avatar
    RMCRAVEN Guest

    Default newbie Q - edge detection?

    Hello

    I'm looking through the PB Pro manual, trying to work out how to detect a rising edge on a port input (for a PIC such as a 16F628, for example).

    I want to detect edges rather than levels - rising and falling - on inputs and generate output pulses which occur as a result. The inputs will be (0V-->+5V) or (+5V-->0V) transitions, derived from TTL or CMOS input pulses or clocks etc.

    By the way, I realise that there'll be some propagation delay through the PIC due to machine cycles etc. but that's not a problem - a few us in a few tens of ms is a small per cent delay. I should also note that I realise that I can differentiate the input with hardware in order to provide a narrow pulse and measure it with PULSEIN etc - I want to see if it can all be done in firmware though.

    Can anyone suggest how to build a routine in PBPro? I can't see from the commands in front of me how to go about it (I am assured it is possible in ASM but that's a bit ambitious for me at the moment).

    Cheers for any pointers - I'm having fun at the moment downloading example .BAS files and compiling them to the hex and ASM results, in an atttempt to relate the assembler listing to the basic source.

    RMC, England
    Last edited by RMCRAVEN; - 29th September 2006 at 22:49.

Similar Threads

  1. mS Timer
    By whmeade10 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th September 2020, 12:12
  2. Newbie making an ignition timer
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 5th August 2012, 17:45
  3. RC Servo decoding/encoding using 12F683
    By ScaleRobotics in forum Code Examples
    Replies: 13
    Last Post: - 14th September 2010, 00:49
  4. Phase failure detection
    By ardhuru in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th January 2007, 00:53
  5. Auto Baud Rate Detection
    By mytekcontrols in forum Serial
    Replies: 10
    Last Post: - 31st October 2005, 02:17

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