View previous topic :: View next topic |
Author |
Message |
blueprint
Joined: 21 Jun 2011 Posts: 12
|
RA3 Output Problem on 16f690 |
Posted: Tue Jun 21, 2011 2:37 am |
|
|
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
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: 9226 Location: Greensville,Ontario
|
|
Posted: Tue Jun 21, 2011 6:54 am |
|
|
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..... |
|
|
|