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 Line for ICSP programming the 18F8722

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sandy wilson



Joined: 25 Feb 2004
Posts: 28

View user's profile Send private message

MCLR Line for ICSP programming the 18F8722
PostPosted: Thu Oct 23, 2008 4:20 am     Reply with quote

Hello,

Maybe some body can help me with this. It is not strictly CCS programming but any help greatfully received.

When using ICSP should the MCLR line be connected to the Power On Reset RC circuit by a diode or a resistor. If you look at the info on Microchips site for ICSP it says to use a diode. If you look at the data sheet for the 18F8722 it says to use a resistor in the range 1k - 10k.

Any suggestions?

Thanks in advance sandyw.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Oct 23, 2008 10:36 am     Reply with quote

Hello,

I've seen some applications circuit with diodes, that won't generate a power-on reset. They are erroneous to my opinion. MCLR is either high-Z or has a weak pull-up, depending on the device family. Your circuit should be able to provide a power on-reset under these conditions and accept 12V at this pin from the ICSP adapter without drawing much current. Many PICs have an internal reset timer and don't need a RC circuit at the MCLR pin. It may be used however at these parts with an external supply voltage monitor/reset device or a manual reset switch.

Regards
Frank
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 23, 2008 12:02 pm     Reply with quote

You didn't say which programmer you're using.

Microchip ICD2:
http://ww1.microchip.com/downloads/en/DeviceDoc/51265e.pdf
Look at the diagrams and text on the right side. They show what to do,
and what not to do.

For CCS, look at their schematic of how to connect the ICD to the PIC:
http://www.ccsinfo.com/faq.php?page=icd_connection


Note that ICD2 uses a 10K pullup, but CCS wants a 47K pullup.
sandy wilson



Joined: 25 Feb 2004
Posts: 28

View user's profile Send private message

PostPosted: Fri Oct 24, 2008 2:35 am     Reply with quote

Thanks for the help.
It was just what I was looking for.

Now back to the drawing board.


Sandyw
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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