How to generate 40MHz pulse with PWM command for my ultrasonic transmitter..please


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    3

    Default How to generate 40MHz pulse with PWM command for my ultrasonic transmitter..please

    cORRECTION....i want to use command PWM to generate 40KHz (NOT 40mHZ) pulse for my ultrasonic transmitter but i cannot find the way..I use Port E for the ultrasonic transmitter..I hope anyone can help me with code examples ... maybe suggest another way to generate that pulse... Thank you..
    Last edited by chenko; - 21st September 2008 at 07:55. Reason: MISTAKE

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by chenko View Post
    i want to use command PWM to generate 40MHz pulse for my ultrasonic transmitter bit i cannot find the way..I use Port E for the ultrasonic transmitter..I hope anyone can help me with code examples that may help me... maybe suggest another way to generate that pulse... Thank you..
    40Mhz eh?
    Probably 40Khz...
    What have you tried so far? Can you blink an LED? If you can blink an LED, all you have to do is make it blink at 40khz and you're set.
    What kind of hardware do you have?
    What kind of software are you using?
    What kind of programming have you done?
    You don't give a lot of information to work with ya know.
    There's a bunch of different ways to generate a 40khz pulse stream...Not a lot of ways to generate a 40Mhz pulse stream using a PIC.

  3. #3
    Join Date
    Sep 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default more info

    I used PIC 16F877A in my project..My project is Smart System of Ultrasonic Car parking...The purpose of the project is try to detect the distance between car and obstacle then display the range on the LCD..I used PIC Basic Pro for the coding..I want to generate 40Khz (not 40Mhz like I state before) because that is my frequency of ultrasonic transmitter
    Last edited by chenko; - 21st September 2008 at 07:57. Reason: correction

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by chenko View Post
    I used PIC 16F877A in my project..My project is Smart System of Ultrasonic Car parking...The purpose of the project is try to detect the distance between car and obstacle then display the range on the LCD..I used PIC Basic Pro for the coding..I want to generate 40Mhz because that is my frequency of ultrasonic transmitter
    Are you sure about that 40Mhz?
    Are you sure 40Mhz falls in the range of an ultrasonic transmitter?

  5. #5
    Join Date
    Sep 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default my mistake..

    yup..you're correct...only 40kHz..i was mistaken by look to the other datasheet..thank you.. can you help me with the coding to generate that 40kHz..??

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

Similar Threads

  1. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  2. PWM Pulse Amplitude on 16F877
    By jrudd in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th June 2009, 07:24
  3. Pulsin within subroutine
    By Wesley in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 10th January 2009, 23:05
  4. Replies: 3
    Last Post: - 13th September 2008, 17:40
  5. How to generate sine PWM using 16f877
    By kvrajasekar in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th September 2008, 08:40

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