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

PIC16F1847 MCLR pin

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



Joined: 06 Feb 2006
Posts: 468
Location: Bali

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

PIC16F1847 MCLR pin
PostPosted: Sat Jun 10, 2017 8:53 pm     Reply with quote

Hi

I have a problem to understand what is correct regarding pin A5, MCLR pin.
In the data sheet page 13 is written regarding RA5 "General purpose I/O."
In the data sheet page 122 is written "...RA5 is an input only"
Can someone tell me what is correct?

Best wishes
Joe
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jun 10, 2017 11:02 pm     Reply with quote

On page 46 in the MCLRE section, it says:
Quote:
MCLR/VPP pin function is digital input.


On page 77, it says:
Quote:
7.4.2 MCLR DISABLED
When MCLR is disabled, the pin functions as a general purpose input and the internal weak pull-up is under software control.


On page 119, it says:
Quote:
12.3.1 DATA REGISTER
The exception is RA5, which is input only and its TRIS bit will always read as ‘1’.


On page 120 it says:
Quote:
TRISA5: RA5 Port Tri-State Control bit. This bit is always ‘1’ as RA5 is an input only.


In other words, they made a mistake when they said it's an i/o pin.
But everywhere else they say it's input only. You could tell them
about the documentation error if you want to. This page has a link
to email their technical document team:
http://www.microchip.com/about-us/contact-us
gjs_rsdi



Joined: 06 Feb 2006
Posts: 468
Location: Bali

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

PostPosted: Sat Jun 10, 2017 11:13 pm     Reply with quote

Thank you for the answer PCM programmer Smile

Best wishes
Joe
temtronic



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

View user's profile Send private message

PostPosted: Sun Jun 11, 2017 5:00 am     Reply with quote

Maybe it's because I've been in this since PICs had quartz windows and Assembler was THE programming language but 'i/o' means a pin that is used for input or output or both, unlike say a POWER pin that well, is only used to supply power to the PIC.
These days PICs have more FUSES than instructions ! Some even have more peripherals available than anyone could ever use, all in a package smaller than your fingernail !!.
That's why it is very,very important to read every one of the 500+ pages in the 'datasheet'.

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19217

View user's profile Send private message

PostPosted: Sun Jun 11, 2017 12:00 pm     Reply with quote

Absolutely.
In the general pin description, you have the power pins, any special control /voltage pins, and then the I/O pins. You have to look at the data sheet to know what the individual I/O capabilities of each pin are.

However the line in the data sheet listing this as a 'general purpose I/O', is undoubtedly wrong... Sad
gjs_rsdi



Joined: 06 Feb 2006
Posts: 468
Location: Bali

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

PostPosted: Sun Jun 11, 2017 2:34 pm     Reply with quote

I agree that:
Quote:
...very important to read every one of the 500+ pages in the 'datasheet'

and I always read carefully the data sheet. It is not difficult as I am working just with 18F26K22, 18F46K22 and 16F1847.
I just wanted to be sure as the line stating I/O contradicts all the other statements about the pin.
Better to ask a question from people that have better knowledge than me than making a stupid design Smile

Best wishes
Joe
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