CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MCLR doesn�t restart the code (include schematics) Why?
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

jejejeje
PostPosted: Wed May 19, 2004 8:04 am     Reply with quote

jejejeje Yes, it works. That isn�t the problem, forget the transistors Wink
The problem is in MCLR (or that I think Confused
Guest








I'm happy that I'm not the only one :-)
PostPosted: Wed May 19, 2004 5:18 pm     Reply with quote

frankb wrote:
Where is the current limiting resistor between the base of Q1 and RA4? If there is one, I haven't found it anywhere on your schematic. Now you're telling us that although the transistor is drawn incorrectly we should understand how it works anyway. Ohhhhh I need to go put something strong in my coffee. Shocked


This guy has to be taking something strong. If he wants to convince me that a PNP with the collector to V+ can be turned on by an open collector Pin_ A4 I think I'v ehave to also have something stringer in my coffee...

This thread has seen all sort of claims yet I feel we are not getting the truth !

It's a crap schematic ( that's not an insult, it's a statement of FACT) and I feel it has contributed to his problems.

Now has replied and claims it's the MCLR .... well WHAT is wrong with the MCLR on his deisgn.... !&)&&()*&
Guest








Re: Use the data sheet
PostPosted: Wed May 19, 2004 5:27 pm     Reply with quote

Frank,
Well this is a first. He claims to use a symblol because a pins out is wrong and that it's supposed to work anyway..

A resistor would be needed if PIN_A4 could drive some current. All Pin_A4 can do is sink current....

I started of by thinking this guy was serious, know I'm sorry to have wasted this much time on this thread.

He does not take advice, and now comes with a magical statement "it works and the problem is in MCLR" excuse me but please tell us what the problem is.... !
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

And what is the problem???
PostPosted: Thu May 20, 2004 6:17 am     Reply with quote

I want to know, what is the problem?
Do you have any problem with my question?
I have a problem, I ask your help. I�m very serious. I�m asking about a problem with the reset and the MCLR, and you answer me about the transistors. I tell (and repeat) that don�t look the transistors, the transistors aren�t connected, forget them!!!
I repeated that several times, but you insist in the transistors, and anybody solved the problem. Who are serious???
I have this problem, mi circuit if I power up, it works fine (the MCLR has a 10K resistor to 5V), but if I tie MCLR with ground (with a resistor of 100 Ohms as described in datasheet) I do a normal reset it resets but doesn�t restart the execution. I have to power off/on to reset. This only happens in the PCB, if I mount the circuit in a test board (wired) it resets, fine, but in the printed circuit not. Why???
I describe my problem, if you know and want help me you are serious and answer the cuestion or try find solutions asking me more information... (that is I try to do when I want help another persons in the things that I know) but don�t tell me that I am not serious. I�m trying answer all your questions with accuracy to get, with the help of all persons in this forum, get a solutions.
Now... you can help to solve this problem?
Thanks to all for your time and effort.
Guest








Re: And what is the problem???
PostPosted: Thu May 20, 2004 7:03 am     Reply with quote

The fact that so many people have spent time and repeatly told you you MUST HAVE A WIRING PROBLEM shows that we all are serious in trying to help you, many have given good advice, which you seem to ignore.

You tell us yourself the hand wired board WORKS.... Well we cannot debug your PCB, and as I have constantly told you your approach to schematic drawing is you main source of "SELF INFLICTED PROBLEMS" . That is confirmed by your statement that you are wlling to use a transistor symbol that is not correct because of some pinout issue (which I still don't understand).

As several people have tried to tell you, pulling MCLR low WORKS, this is confirmed by YOU in that you tell us your handwired board works OK.... Issue CLOSED.

Time for you to get out the Ohm meter and trace your circuit, we can't do that for you....

Good luck and I hope you find the problem.
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

Guest...
PostPosted: Thu May 20, 2004 7:25 am     Reply with quote

I think you don�t understand this yet...
The PCB Is correct, all connections are good. I took the polymeter and tested all. All is equals than in the hand wired board. I repeat that I don�t understand that, for that reason I ask for help and share my design, if anybody knows or saw something that seems this situation...
Guest








Issue CLOSED
PostPosted: Thu May 20, 2004 4:00 pm     Reply with quote

There is nothing more to say. Issue CLOSED
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

???? jejeje
PostPosted: Thu May 20, 2004 4:48 pm     Reply with quote

Who are you to close an issue, "guest"? Laughing
You must speak only for yourself, if you don�t like read this topic, don�t read it Wink
I�m sure that we can solve this problem without you Wink
Thank you very much for your shallow help
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

Re: Guest...
PostPosted: Thu May 20, 2004 6:56 pm     Reply with quote

Helyos wrote:
I think you don�t understand this yet...
The PCB Is correct, all connections are good. I took the polymeter and tested all. All is equals than in the hand wired board. I repeat that I don�t understand that, for that reason I ask for help and share my design, if anybody knows or saw something that seems this situation...


Helyos -
When you are fresh (or better yet, have another person) check one more time to be sure that there is not an accidental short circuit or open circuit in your board. Don't restrict your testing to just the MCLR pin. Look around a bit more. If the board is only 1 or 2 layers and without solid ground plane, hold it up to a strong light and use at least 5x magnifying lense to look closely at the board. I have seen many boards with manufacturing defects such as an eyelash fell onto the films before the resist was exposed. Likewise I have seen "mousebites" in traces where they over-etched or had an impurity in the copper causing an open circuit. I have seen problems with plated-through holes where because of poor drilling the trace into the pad was cut completely and so never bonded to the hole lining during plating.

Lots of things can go wrong during production. If you got all the boards made at the same time it is likely they all have the same fault. Try lifting out the MCLR pin (if possible) and wire that circuit yourself up in the air, don't use the traces on the printed circuit board. Sad

Just to beat a dead horse, the style you are using for your schematic drawings is a bit hard to follow but it is your style and it would seem that most of the time you are the only one who needs to deal with it.

And if you are forced to intentionally misapply a library element (the infamous transistor) then perhaps it is time to fix the tools or replace them. The "its cheap" or "its free" argument doesn't work well when a tool could potentially cause so much grief and waste your valuable time, even your personal time if this is a hobby project. I try to think how much I would use a particular piece of software or hardware and then figure out its cost over time. Confused

Anyway, stay calm and look for the simple explanations: board production fault (open or short), cold solder joint, wrong resistor value (magnitude errors are pretty common), polarity error (not on a resistor but you get the idea), missing or wrong valued bypass capacitors, wrong IC or IC orientation. You get the idea. Shocked

Happy hunting (by the way I can look at the hardware for you but you would have to ship it to me and this seems just too simple to warrant that action).
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

Thanks
PostPosted: Fri May 21, 2004 8:22 am     Reply with quote

Thanks for your answers and ideas.
I can tell you that I forwarded the nets on the board thousand times, I took the polimeter and tested all points and pines, and all seems correct.
I made the boards in a lab, and I solder all components. It�s very strange that I did the same mistake four times (I made 4 prototypes), but it�s possible. You are right, I will take this with calm... and I will verify all again (the lense is a very good idea) and try hunt the mistake.
Thank you very much.
Best regards
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Fri May 21, 2004 8:33 am     Reply with quote

Actually the fact that all your 4 boards had the same problem suggests that you have a defective batch of boards.
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

Yes...
PostPosted: Fri May 21, 2004 1:37 pm     Reply with quote

Yes, I think that I have a mistake in the design or in any electrical property of any component, in due I posted my electrical design.
I hope you could help me to find the mistake.
Thanks
Guest








PostPosted: Fri May 21, 2004 3:34 pm     Reply with quote

ZZZZZZZZZ......ZZZZZZZZZZ.....ZZZZZZZZZZZ Question
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

Perfect!!!
PostPosted: Sun May 23, 2004 5:31 pm     Reply with quote

Yes, thanks everybody, problem solved.
The board is perfect, all works perfectly (included transistors and buzzer Laughing, the problem was in the bootloader, it had enabled the LVP and didn�t allow that my programs change it.
If you disable it, you never have the same problem that me Smile
Thank you very much
Best regards
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Sun May 23, 2004 5:59 pm     Reply with quote

PCM Programmer did suggest that the problem was in your bootloader...

So how come it didn't show up on your breadboard and only caused problem on the prototype boards?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group