|
|
View previous topic :: View next topic |
Author |
Message |
*Tom* Guest
|
using RA4 and RA5 as I/O pins |
Posted: Fri Jun 08, 2007 1:41 pm |
|
|
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
|
|
Posted: Fri Jun 08, 2007 1:59 pm |
|
|
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). |
|
|
|
|
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
|