wpua


Closed Thread
Results 1 to 8 of 8

Thread: wpua

  1. #1
    xnihilo's Avatar
    xnihilo Guest

    Default wpua

    wpua=%000001
    Will enable pin0 as input with internal weak pull up set (provided individual wpu are set via option_reg).

    i sometimes get false trigger that I can't identify. Is it possible that internal wpu are not enough?
    Should i add external 10k wpu to make sure i don't get false triggers??

    Thanks

  2. #2
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Nobody has any idea if it is better to use external weak pull ups instead of enabbling pic internal WPU?

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Have you tested this with the external pull-up? My only preference to external VS internal is that I control
    current consumption, and, if needed, I can use a stronger pull-up.
    Last edited by Bruce; - 3rd November 2008 at 23:21.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Have you tested this with the external pull-up? My only preference to external VS internal is that I control
    current consumption, and, if needed, I can use a stronger pull-up.
    Not tested, it takes more place on the PCB if I use external WPU. I was just wondering if using external WPU would reduce the risks of unwanted triggering of the interrupt on portA change. As you say, I may choose a stronger pull up...

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    A stronger external pull-up may help, but it's hard to say without knowing more about your
    hardware setup, PIC type, code, etc..
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    A stronger external pull-up may help, but it's hard to say without knowing more about your
    hardware setup, PIC type, code, etc..

    -> This is a big project actually.
    The main board features a PIC16F690. On each porta pins A0 to A4 I connected a TSOP4840 IR sensor demodulator at 40KHz with its 10UF capa and 100 ohms resistor (almost what's recomended in the DS).
    When a PWM signal at 40KHz arrives on the sensors, the DATA lead of the TSOP pulls the PIC pin to GND so the PIC can receive the incming signal and decode the 16 bits.
    I was just wondering if the internal WPU of the pic are good enough to prevent a false triggering... I didn't find the value of the internal WPU in the PIC DS.

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I've done quite a few IR apps with Vishay IR modules, and I've never needed any additional
    pull-ups for anything less than 40kHz carrier freq.

    The internal pull-up built into the IR module has always been sufficient, BUT, you can
    improve pusle-forming with a stronger external pull-up for high-speed applications.

    Doesn't really apply to your app, but just FYI.

    Our Fyre-Fly high-speed IR transceiver module used an external pull-up of ~2.2K for
    improved pulse-forming at higher data rates.

    Some of the lower frequency IR modules may be influenced by ambient light sources, so
    you may want to look into better shielding. Red filters help, and recessing the IR module
    back into an enclosure to help block ambient lighting helps too, but you want a very stable
    and clean DC power supply as well to reduce false triggering. Shoot for <20mV peak-to-
    peak noise or hash on your power supply rails for solid operation.

    A few more tips;

    Modulate your carrier as close as possible to the center band-pass frequency of your IR
    module for best range.

    Use an IR LED with a wave-length as close as possible to the peak spectral sensitivity
    region of your IR module.

    Block as much ambient light as possible with filters.

    Make sure to locate your IR module as far as possible from your PIC, oscillator, and use a
    star configuration for power. A star power route is just separate traces directly from your
    regulator + output to each IC.

    Then make your lower layer a solid copper pour, connected to ground, and route each
    ground connection from each IC directly to the ground plane with a short trace to a via.

    If you do add an external pull-up, make sure it doesn't exceed the current capacity of your
    IR module when active.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  8. #8
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks for the answers.
    Bruce, I'm doing all the things to tell but using the light filters. What kind of filter should I user, and where can I find that?

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