Leaves the mainloop???


+ Reply to Thread
Results 1 to 40 of 46

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,827


    Did you find this post helpful? Yes | No

    Default Re: Leaves the mainloop???

    You never said that you have a lab and tools to check signals. Also never showed the signal out of the PIC.

    Asking if you have access to a tool is rude comment?

    Being aggressive while we try here to help you does not really help at all.

    After all, even if you received my comment as rude one, consider that we are spending time on this forum trying to help others. We may be located in countries too far away from mother america and our language may not be english. Do you really speak Greek?

    Wish well recover and leave all the health problems in the past. But that does not make us rude people.

    So, if you really want our help, as Alain said, please do give some details that we can understand your problem.

    For one, you may show us the output pin of that PIC reseting as you suspect. Is it really reseting?

    Ioannis

    P.S. I am very happy that I am member of this extremelly helpful forum, for the wonderful giving people I happend to meat here and believe that there are no many forums with the quality we have here.
    Last edited by Ioannis; - 2nd June 2023 at 08:45.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default Re: Leaves the mainloop???

    Hi, Ioannis,

    How are you ???

    For one, you may show us the output pin of that PIC reseting as you suspect. Is it really reseting?
    That could be done just checking the dedicated bits of the processor, then powering small LEDS showing what happened.

    BUT that needs some more datasheet reading, and I do think our friend has to be led to Pic datasheet § 8.13 ... just for that checking.

    It's a long way from idea to working device ... but you already know that

    Best Regards
    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,827


    Did you find this post helpful? Yes | No

    Default Re: Leaves the mainloop???

    Hi Alain.

    All good! Thanks for your concern. Hope and wish for you too.

    Well, pescador said that with the (strange) load he places on the output, the PIC seems to reset. So, that is why I asked for an oscilloscope to see what actually the PIC does on that pin while trying to change the state. It may reveal more that way, for example:

    1. Previous state
    2. New state
    3. How long the new state is output
    4. Is it overloaded as initially was suspected?
    5. Is it tristated?

    Ioannis
    Last edited by Ioannis; - 2nd June 2023 at 10:36.

  4. #4
    Join Date
    Apr 2016
    Location
    Plainfield, Illinois
    Posts
    73


    Did you find this post helpful? Yes | No

    Default Re: Leaves the mainloop???

    Quote Originally Posted by Ioannis View Post
    You never said that you have a lab and tools to check signals. Also never showed the signal out of the PIC.

    Asking if you have access to a tool is rude comment?

    Being aggressive while we try here to help you does not really help at all.

    After all, even if you received my comment as rude one, consider that we are spending time on this forum trying to help others. We may be located in countries too far away from mother america and our language may not be english. Do you really speak Greek?

    Wish well recover and leave all the health problems in the past. But that does not make us rude people.

    So, if you really want our help, as Alain said, please do give some details that we can understand your problem.

    For one, you may show us the output pin of that PIC reseting as you suspect. Is it really reseting?

    Ioannis

    P.S. I am very happy that I am member of this extremelly helpful forum, for the wonderful giving people I happend to meat here and believe that there are no many forums with the quality we have here.

    My personality is hurry up and ask questions and get an answer. I need to slow down and think of my questions first and organize them. I want the asnwer in miliseconds - lol.

    no no no - asking me if I had a scope was not rude. I was trying to edit my post and the 30 minute limit hit and my post didnt mean to infer that - sorry for that. I thought the rude remarks came from someone else and if you read the thread you can see from who. On top of all that I'm asked if I had a scope and I took it the wrong way. Email and texts and forums can suck sometimes because you cant hear tone.

    currently I still do not know whats up. I brought my circuit to my EE friends at work and they think the load is a resistive load where it really should be an inductive load (service vehicle lights etc) - they are thinking the for the first turn on its shorting my supply for a very short time, resetting the PIC. The supply I use has 15 amps capability, so IMO its beefy enough. I aslo put a larger cap across the 5V with no luck.

    The circuit works under 1 amp so that might be true of load dumping the supply > 1 amp. The scope I have should catch this, I agree. My next idea was to change the load from resistive to inductive.

    And read more ideas here on this forum.
    My dad never liked you...

Similar Threads

  1. Time taken to do mainloop
    By Gerald in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th March 2023, 14:16
  2. Outside the Mainloop
    By pescador in forum General
    Replies: 10
    Last Post: - 26th April 2016, 17:34

Members who have read this thread : 10

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