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

RC6 & RC7 normal I/O problem

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



Joined: 30 Aug 2007
Posts: 144
Location: South Africa

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

RC6 & RC7 normal I/O problem
PostPosted: Tue Oct 30, 2007 2:23 pm     Reply with quote

I have been running into some trouble using rc6 and rc7 as normal I/O pins. I have set all the triss values as needed but i still am not able to use those pins as normal I/O pins. Is it possible as the data sheet says or do i need to do other adjustments as well?
It is for a 16F886 pic.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 30, 2007 3:02 pm     Reply with quote

Make sure you don't specify those pins in a #use rs232() statement.
If you do, it will turn on the hardware UART, which uses those pins.
Gerhard



Joined: 30 Aug 2007
Posts: 144
Location: South Africa

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

PostPosted: Tue Oct 30, 2007 3:41 pm     Reply with quote

Could you please look at the code at the folowing website. I see that they have set the Xmit in the defines file but i cant see where it has been used so i am thinking of removing it. The pic is still the same 16f886 conected to a cc1000 but not through the rx and tx pins.
http://www.mohag.net/ccscc1000code
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 30, 2007 4:02 pm     Reply with quote

The code uses the serial port in a large number of places:
Code:
GetSerial();
PutSerial();
printf();
getc();
kbhit();
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