Need advice for creating nS time delay


Closed Thread
Results 1 to 29 of 29

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    Where is this 1µs? Did I missed it?

    As I understood, the sensor will respond only when the MC enters Z-state.

    Ioannis

    P.S. Oh I got it. But Alain, this is settling time, not bit width time.
    Last edited by Ioannis; - 11th December 2007 at 11:47.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    P.S. Oh I got it. But Alain, this is settling time, not bit width time.
    Hi, Ioannis

    looks the sensor output is seen by the PIC like a small capacitor ...and this capacitor is discharged by the low state of the pic pin ... not by the sensor itself.

    this is a little confusing in the datasheet as the settling time is called as bitwidth time !!!

    That explains why Ingvar's program works well ...

    INPUT Datapin 'Let PIR control the Datapin

    PIRdata.0(i) = Datapin 'Sample the datapin

    surely need more than 1µs to be done !!! ...


    Thanks, Ingvar ... we've learnt something !

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Default

    Alain, surely that was obvious ....... Nah, must admit that it wasn't all that clear in the datasheet.

    I figure the PIR must be driving the output with resistors since there would otherwise often be a collision when the MCU drives the pin. No good. Driving via resistors will always be sensitive to capacitance on the lead and therefore a settlingtime will be needed. I figured it had to be this way since they specified tbit as "Data bit settling time" with a 10pF load.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    It is kind like the 1-wire of Dallas devices. They are active low with pull up resistors, so that collisions can be avoided.

    Ioannis

  5. #5
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Actually, I had to use 10K resistor to GND.

    Without it, PIR's internal resistor is not good enough (at least for my circuit), and pin takes a free walk.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 07:57
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. Memory Space of the PIC16F84...
    By Tear in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st July 2005, 19:55
  4. Problem with saving to EEPROM...
    By Tear in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st July 2005, 00:10
  5. Linx RF -> HSERIN time delay / time critical app...
    By batee in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th October 2004, 15:04

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