Strange behaviour from PIC16F877 on TMR0


Results 1 to 19 of 19

Threaded View

  1. #3
    Join Date
    Aug 2006
    Location
    Italy
    Posts
    72


    Did you find this post helpful? Yes | No

    Default Schematic here and some info more

    Quote Originally Posted by mister_e
    Woohaa i try to figure out but there's too much 'maybe this or that' in my mind.
    Can you post your whole code and schematic?
    Thank you, mister_e.
    Tonight I've found that absolutely there is not the software that cause this so strange behaviour. Since the board is under control of another one that drive 2 bigger motors in PWM (24Vdc, anytime separated from the power of the logic but this 24Vdc are the same that power the tiny motors where I loose pulses), I've found the following:
    If I let one of this bigger motor to use a little bit more power (just because I'm trying to move the shaft with my hand and the PID controllers try to oppose to my strenght) THEN the strange behaviour start happening. If I turn off one of these motors, the "strangeness" do not happen.
    Seems that there is some kind of disturbance that is picked-up by the micro.
    I've putted so many caps and grounded any unused pin as you can see... what can I do more?
    Also, when I start missing pulses on TMR0 (RA4) seems that I pick-up many other "ghost" pulses on RB0...

    Thank you for your time.
    Attached Images Attached Images  

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