Joined: 30 Aug 2007 Posts: 144 Location: South Africa
RC6 & RC7 normal I/O problem
Posted: Tue Oct 30, 2007 2:23 pm
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
Posted: Tue Oct 30, 2007 3:02 pm
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
Posted: Tue Oct 30, 2007 3:41 pm
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
Posted: Tue Oct 30, 2007 4:02 pm
The code uses the serial port in a large number of places:
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