Leaves the mainloop???


Closed Thread
Results 1 to 40 of 46

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Cool Re: Leaves the mainloop???

    Hi Pescador,

    Take it easy ...

    Some of us here live thousands miles away from you ... and don't know about the first bit of your programming or electronics design skills ...

    So, the first of all things for us is to understand what you intend to build, how you want to proceed, and what you use to build it ... That implies a full description of the project and the problems encountered.
    That also implies you have read carefully your PBP Manual ( THE Holy Bible ) AND the Pic Datasheet.

    Not so simple and a crystal ball is THE most useful tool for about 90% ( 99% ? ) of the questions sent here ...

    I easily understand it's a headache for you to find what is the real problem and you already have wasted hours scratching your head. We all lived that some day : that is called knowledge.

    That said ...

    a forum is a place where everybody can give an answer, considering everybody have its own fads ... beliefs and so on.
    the answers may be right spot on or sending to la la land.

    That's it and we must cope with that. Or rent highly skilled professionnals ... ( of course Fine advices : you've paid for it !!! )

    Now ... just a bit of my story here ...

    I was a contributor and one of the super Mods here, some years ago ( Yess ... ) , but some new guys ( other mods ) went here, thinking they knew everything and being God's children : kind of "knowledge war" where the strongest shouting was truth ... ( elders here just have a look towards Canada ... )

    I simply preferred to come back to " simple forumer " status ... not having to re-demonstrate that 1+1 = 2 @ each time. Our discussions just led others to ... nowhere.

    That to tell you everywhere somebody thinks he is the unique blessed owner of The Truth ... even believing he just helps !!!


    BTW ... the one asking must also understand he is the unique one who knows what he has done ...

    Back to your electronics problem ( it's NOT a programming problem ... for that you have shown here ...) just think how you can design the Pic supply to withstand some 100th of milliseconds main supply shut down ... without resetting
    and you'll be fine.

    Regards
    Alain " the Frenchie "
    Last edited by Acetronics2; - 2nd June 2023 at 08:21.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    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 09:45.

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


    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 " !!!
    *****************************************

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    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 11:36.

  5. #5
    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, 15:16
  2. Outside the Mainloop
    By pescador in forum General
    Replies: 10
    Last Post: - 26th April 2016, 18:34

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