PWM signal


Closed Thread
Results 1 to 3 of 3

Thread: PWM signal

  1. #1

    Default PWM signal

    Hello everyone,

    A newbie question,

    I have a sensor that produces a PWM signal. What I need to do is calculating the width of the pulse with 16F877. If it is greater than some value pic will HIGH PORTx.x
    Do i need to use a timer interrupt? I'll be glad if you could help me with the code.

  2. #2
    Join Date
    Jul 2008
    Location
    TURKIYE-KONYA
    Posts
    51


    Did you find this post helpful? Yes | No

    Default

    i think this thread will help you.

    http://www.picbasic.co.uk/forum/show...+byte+building

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thanks mehmetOzdemir,

    I am in a dilemma of using a low-pass filter and using timer interrupts.
    Any suggestions?

Similar Threads

  1. PIC16F877A pwm use for IR transmission
    By mcbeasleyjr in forum General
    Replies: 0
    Last Post: - 11th July 2009, 18:51
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. PWM setting PIC16F887
    By Gevo in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th June 2008, 07:24
  4. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  5. Sampling a PWM signal
    By picnaut in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 12th May 2005, 09:08

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