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 support@ccsinfo.com

18F67K40 MCLR

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



Joined: 13 Jul 2017
Posts: 135
Location: IZMIR

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

18F67K40 MCLR
PostPosted: Fri Nov 29, 2019 2:02 am     Reply with quote

In the 18F67K40 processor, I want to use the MCLR input as input or output. Does this create a problem?
_________________
Es
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Fri Nov 29, 2019 2:28 am     Reply with quote

It can only be used as an input. From data sheet "RG5 is an input only pin".

It does also bring some issues.
First (obviously), if you want to perform ICSP to program the chip the
circuitry attached will need to be disconnected to do this.
Second, this pin does not have any protection on being taken above Vdd.
This is because during programming it is pulled up. If the circuit attached
ever allows it to go above Vdd, the chip can enter programming mode.
So the circuit you attach must provide protection against this.
For example, I've used the MCLR pin as a keyboard input on one circuit.
Had a protection diode to Vdd, and a jumper to disconnect this for
programming. Done like this it has happily/reliably worked.
temtronic



Joined: 01 Jul 2010
Posts: 9081
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Nov 29, 2019 6:03 am     Reply with quote

I dedicate the ICSP pins for ONLY ICSP operation. Since I use the 18F46K22 for my projects, big or small, I've never run out of I/O pins yet. Last project though I used all but 2 !
As Mr. T says , if you do use it, you MUST protect it !
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