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
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 23, 2004 10:05 pm     Reply with quote

Actually, a few days ago I was checking the Piclist archives, searching
for an answer to his question. I searched for keywords: 16F877, reset,
MCLR, etc., and what I found there suggested that it was a problem
with the LVP fuse being set.

However, I didn't post it because the schematic seemed so screwed
up that who knows what the real problem could be ? For example, he
had a 10 nf cap on the output of his voltage regulator, when it should
have been 10 UF. Then when I said you don't call the Microchipc
bootloader from main(), he just said he's always done it that way.

So, I gave up. One more input from me regarding the LVP fuse
wouldn't have made any difference, I felt.
Haplo



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

View user's profile Send private message

PostPosted: Sun May 23, 2004 10:54 pm     Reply with quote

Actually I think his problem isn't solved yet. There were two instances that he claimed the problem was solved:

Quote:

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


And

Quote:
Yes, thanks everybody, problem solved.
The board is perfect, all works perfectly (included transistors and buzzer , the problem was in the bootloader, it had enabled the LVP and didn�t allow that my programs change it.


Well that looks like it was a software issue. But earlier he had claimed that his hand-wired board works while the PCBs don't. That software issue should have affected both the same...
Helyos



Joined: 22 Oct 2003
Posts: 22

View user's profile Send private message

Yes
PostPosted: Mon May 24, 2004 5:28 am     Reply with quote

Yes, you are rigth. In my hand wired board, it worked, but I remember that in my test board I have pullups in all pins. That was my mistake in my board, I don�t put pullups in all. RB4 was working wrong.
The strange is when I connect the keyb, where I have the pullups connected and it didn�t work neither.
But... NOW WORKS, that�s the important, thanks Laughing
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
Page 4 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