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

using RA4 and RA5 as I/O pins

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







using RA4 and RA5 as I/O pins
PostPosted: Fri Jun 08, 2007 1:41 pm     Reply with quote

Hi, I'm using the PIC16F648A and trying to use all the pins (port a and port b) as outputs, but RA4 and RA5 don't work.
I think its probably because I've set the wrong fuses somewhere, so I was hoping someone can tell me what I've done wrong.

I'm not sure about RA4 but I'd expect RA5 to work since I'm using NOMCLR

Here is what I have up untill the main program

Code:

#include<16F648A.h>
#fuses NOWDT, PUT, NOPROTECT, NOBROWNOUT, NOMCLR, NOLVP, INTRC_IO, NOCPD
#use delay(clock=4000000)

struct pins{
   int8 a:8;
   int8 b:8;
}port, dir;

#BYTE port = 0x05
#BYTE dir  = 0x85

dir.a = 0;
dir.b = 0;


I've tried it on more than one PIC so I know its not just a faulty chip

PCWH Compiler
IDE Version 3.40
PCB Version 3.180
PCM Version 3.180
PCH Version 3.180

Thanks for any help
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jun 08, 2007 1:59 pm     Reply with quote

Quote:

I'm using the PIC16F648A and trying to use all the pins (port a and
port b) as outputs, but RA4 and RA5 don't work.

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=24661&start=37

Also, look in Table 3-2, Pinout Description, in the 16F648A data sheet.
It describes what each pin can do (including limitations).
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