TMR0 stops working


Closed Thread
Results 1 to 26 of 26

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Default

    It happens even if i run the clock from a battery.
    It sometimes locks up when i plug in the cellphone charger adapter.
    Will decoupling capacitors or line filters help?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    If you don't have decoupling capacitors, it could be a problem.

    I usually put a .1uF (100nf) across the power rails for every 2-3 chips.
    Some people say 1 cap per chip, but I think that's a little more than necessary.

    You shouldn't need RF sheilding.
    <br>
    DT

  3. #3
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Post

    Decoupling capacitors don't seem to help . . .
    Using the 16F628A with MCLR disabled while programming solves the problem (for now)...

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi shahidali55,
    If your display is large and has long wires , it may well be acting as an antenna, try decoupling caps on each output line going to it, as well as any inputs, also try hooking all ground connections to a single ground connection, as ground loops often cause electronic circuits to oscillate, That is what they used to do in high end audio gear.
    HTH
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Default

    Hello Joe,
    My display is large and there are a lot of long wires running around and there are 2 ground loops.
    How should i add decoupling capacitors to the output and input pins ?

    I have attached a few photos of the complete clock and PCB side. . .
    (They may take a while to download)
    Attached Images Attached Images      

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi shahidali55,
    On the perfboard I would probably run a buss wire lengthwise under the pic and from each pin I would add .o1uf or even .001 uf capacitors to the buss wire which is hooked up to ground, I think you are getting RF into the chip from the outputs, RF is funny, it sort of crawls on the outside of conductors and does funny things. AS for things like cellphone chargers emitting RF I guess it depends upon which country's emission standards they meet or fail to meet. You might try using 2 bypass caps, 1 from each leg of the Mains power to ground right at the outlet. Ferrite beads are useful to trap RFI on wires on the circuit board. Be sure they are made for that high of a voltage,otherwise they pop like firecrackers Some links on RFI:

    http://www.edn.com/archives/1995/010595/01df1.htm
    http://www.eham.net/articles/12139
    Last edited by Archangel; - 29th January 2008 at 08:02.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Post

    16F628A has been running stable for 10 days now.(Tried doing all sorts of things to make it reset, but its immunity is really good).
    So i guess the only solution is to stick with the 16F628A . . .
    Last edited by shahidali55; - 8th February 2008 at 16:46.

Similar Threads

  1. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 04:52
  2. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 11:48
  3. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 15:10
  4. using TMR0 as a counter..
    By sirvo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th July 2007, 02:56
  5. Strange behaviour from PIC16F877 on TMR0
    By mikebar in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 19th August 2006, 01:31

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