Oscillator stops when touching with a wire


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1

    Default Oscillator stops when touching with a wire

    Good evening all,

    I've made a RS485 network of 16 remote devices (16F886) and 1 master (18F2620) all running Picbasic pro. Everything runs perfectly, however, when i touch the ground or one of the inputs with a non connected wire (to connect an input with the ground for example), the clock stops running (wire is only connected on one side).

    I've tried to change the capacitors of the xtal (changed it between 15pf and 22pf) but the result remains the same.

    PIC's are configured in HS mode.

    Any ideas how to solve this?

    Many thanks !!

    Wilbert

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Wilbert Ingels View Post
    Good evening all,
    I've made a RS485 network of 16 remote devices (16F886) and 1 master (18F2620) all running Picbasic pro. Everything runs perfectly, however, when i touch the ground or one of the inputs with a non connected wire (to connect an input with the ground for example), the clock stops running (wire is only connected on one side).
    I've tried to change the capacitors of the xtal (changed it between 15pf and 22pf) but the result remains the same.
    PIC's are configured in HS mode.
    Any ideas how to solve this?
    Many thanks !!
    Wilbert
    How about decent cap's across Vdd and Vss?
    Do you have a pull up on MCLR?

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    AND
    1.make sure LVP is set to OFF on both
    2.make sure ALL Vss & Vdd are connected.

    If both run @5V, it shouldn't be a Brown-Out reset or... sort of.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Thanks for the replies !

    Just to come back on the below feedback:
    - Caps are used to stabilize power supply (100nf and 10mf) and also every PIC has a 100nf cap on the power supply pin
    - MCLR has a pull-up resistor
    - LVP set to off

    Other ideas what it could be?

    I can post the network drawing (Eagle file) but i'm not sure if i can attach files ...

    Many thanks for helping me with this !!

    Wilbert

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Also the 2 VSS pins are connected ...

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


    Did you find this post helpful? Yes | No

    Default

    How good / stable is you power supply?
    Dave
    Always wear safety glasses while programming.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Some additional information:
    - The processor doesn't reset but stops in my opinion. I've used debug information on a serial port. On each startup, an appropriate message is sent (which i don't receive when this problem occurs). I'm also displaying variables and when the processor continues, he still has the right values.
    - Most of the cases, information on the RS485 network triggers the processor to continue.

Similar Threads

  1. 1 Wire Search Routine
    By Dave in forum Code Examples
    Replies: 3
    Last Post: - 4th March 2016, 07:39
  2. Need Single wire serial LCD converter example
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th December 2009, 02:30
  3. 24c16 vs 24lc256 and serial wire identification
    By inspired4real in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th October 2008, 17:37
  4. Looking for low Wattage heater wire
    By jmgelba in forum Off Topic
    Replies: 1
    Last Post: - 21st November 2005, 18:22
  5. RPM with wire and PIC
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th December 2004, 20:42

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