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

1-wire not working on other port than B0

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



Joined: 07 Sep 2003
Posts: 17

View user's profile Send private message

1-wire not working on other port than B0
PostPosted: Tue May 04, 2004 2:59 am     Reply with quote

Question I read dallas 1-wire devices on a PIC16F877 with the CCS touchl.c example program. Everything's OK, but if I configure it to read on any other port than BO e.g. B7, I cannot read the device? Any suggestions on what to try?

Thanx

Levett
lucky



Joined: 12 Sep 2003
Posts: 46
Location: South Coast - England

View user's profile Send private message Visit poster's website

Touch driver
PostPosted: Tue May 04, 2004 4:13 am     Reply with quote

Hi Levett,

You need to modify both the TOUCH_PIN & TOUCH_PIN_BIT in the touch.c driver file. For an 18F452 using pin B7 the following would be used:

#define TOUCH_PIN PIN_B7
#bit TOUCH_PIN_BIT = 0xF81.7
_________________
Lucky
www.mpic3.com - MPIC3 player project, Forum, Downloads, Online Shop
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