Strange behaviour from PIC16F877 on TMR0


Results 1 to 19 of 19

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Maybe better if using opto-coupler instead... just too keep power and logic away. Harder to light a led than introducing a noise wich will be amplified later. Well that's what i did as now.

    Quote Originally Posted by mikebar
    I had a look to the link you posted. Sound interesting, but exactly in which way you perform the points:

    - i'll ensure the PIC Vdd line is correctly filtered
    those usual 0.1uF and 10-47uF tantalum as close as possible of the PIC and as many 0.1uF as you have IC... one on each.. still as close as possible.

    Bigger cap (47-220uF) + 0.1 uF close to the driver ics...

    - i'll screen the PIC and controller section properly to avoid incoming noise and spikes
    Proper ground plane design, ground routing, Power lines routing and size against regular signals. Maybe use a grounded metal cabinet to fit it.

    - i'll insert a bead on the PIC gnd line
    When i deal with multiple Gnds (analog, power, digital) i often add bead core on most of them, usually 1 on analog, 1 on digital.

    Do a search for bead core, ground loop, ground plane, ground boucing and i'm sure you may learn a lot of it. It's long to explain and i'm sure i'll mess and miss something. There's pro and cons on each methods... same for ground plane. Sometimes they're usefull, sometimes not. If they're done correctly they're usefull, case not... it will cause you more bugs than benefits.

    EDIT: oh i forgot... never leave unused pins floating... tie them somewhere, VDD, VSS via resistor or not. Leaving them floating but setting them to output do nothing good. At least never pass my tests in cars applications.
    Last edited by mister_e; - 17th August 2006 at 05:17.
    Steve

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

Similar Threads

  1. Strange Behaviour - Simple code+DT_INT+16F676
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th February 2010, 18:53
  2. Strange Serout Behaviour
    By bluesmoke in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th August 2009, 04:12
  3. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 04:52
  4. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 15:10
  5. strange int behaviour
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2005, 15:41

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