the ultrasonic SRF04 with pic16f88


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    london
    Posts
    15


    Did you find this post helpful? Yes | No

    Talking thank you so much

    thank you so much. you are a star
    finally everything is working with internal clock and measurements well displayed on the lcd.

    wasn't that easy to understand the data sheet but because of all of you guys, with all your examples and suggestions , i managed to find the right settings.

    again thank you guys
    God bless you all

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tur_bot View Post
    wasn't that easy to understand the data sheet but because of all of you guys, with all your examples and suggestions , i managed to find the right settings.
    Just curious...which bit fixed the problem?
    Invariably, it's usually that one little bit that fixes everything...

  3. #3
    Join Date
    Mar 2008
    Location
    london
    Posts
    15


    Did you find this post helpful? Yes | No

    Default which bit fixed the problem

    Quote Originally Posted by skimask View Post
    Just curious...which bit fixed the problem?
    Invariably, it's usually that one little bit that fixes everything...
    those 6 lines allowed me to use an accurate inside clock and to use all pins as digital input or outputs:

    DEFINE OSC 4
    INTRC_OSC_NOCLKOUT
    INTRC_IO
    OSCCON=%01101000
    ANSEL=%00000000 'this comand disable all adc
    CMCON=%00000111 'this bit disable all comparators


    the two last commands fixed the problem to get just digital inpout and outpout on all 15 pins available, and disabled all adc and comparators.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tur_bot View Post
    the two last commands fixed the problem to get just digital inpout and outpout on all 15 pins available, and disabled all adc and comparators.
    Just like posts #2, #4, #8, #10 said it would...

Similar Threads

  1. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 00:13
  2. Replies: 8
    Last Post: - 7th December 2006, 15:42
  3. PIC16F88 problem with TOGGLE command?
    By russman613 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th September 2006, 23:31
  4. sensor ultrasonic 8051&PIC
    By hd_uni_pro in forum Schematics
    Replies: 1
    Last Post: - 13th September 2006, 12:58
  5. SRF04 Range Finder 16F628 R18iXL Board
    By Spindle in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th June 2005, 02:08

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