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

RA3 Output Problem on 16f690

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



Joined: 21 Jun 2011
Posts: 12

View user's profile Send private message

RA3 Output Problem on 16f690
PostPosted: Tue Jun 21, 2011 2:37 am     Reply with quote

Hello All,

I have a problem with RA3(MCLR) pin on 16f690. I want to use that pin as a output line. Therefore, I put that line into the header file:
Code:
#FUSES NOMCLR                   //Master Clear pin used for I/O

However
Code:
output_a(0x08);

does not work. Actually, it works on Proteus 7.6 simulation but it does not work in the real life.

Would you please help me about the problem?
I use PCWHD 4.120.

Thanks,
temtronic



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

View user's profile Send private message

PostPosted: Tue Jun 21, 2011 6:54 am     Reply with quote

Short answer...of course it won't work.

Long answer... according to the datasheet for that PIC, RA3 is an input only pin. I refer to page 6 of the datasheet, top picture.

Once again Proteus is showing WHY it is a piece of JUNK !!! Get rid of it,obviously if it can't simulate a simple basic I/O Pin properly do you actually think it'll work for anything else ????

You've got to READ the datasheet. Yes, it can be dull and dreary but it is FILLED with important information. Even 'minor' details like what pins are used for is covered there.....
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