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

i2c and port b in 16f78
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Wed Feb 08, 2006 3:27 pm     Reply with quote

Just a little FYI,

The statements:

if(INPUT(S8)==0) slave_buffer[2]=88;

and

if(!INPUT(S8)) slave_buffer[2]=88;

will give you the same results. The last one will simply result in less code and quicker evaluation time.

Ronald
karun211



Joined: 06 Feb 2006
Posts: 8

View user's profile Send private message

PostPosted: Wed Feb 08, 2006 11:28 pm     Reply with quote

1. If you are reading other pins on Port B, which ones are they ?

2. Do you guarantee that there is no ICD2 or ICD or anything similar
plugged into your board ?

what i meant by saying pins on port B is that, i tested all the pins in port B individually and the i2c bus is killed every time. I posted all the code and nothing is left out.

Iam not using any ICD2 or ICD with the pic.

thanks for your support.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Feb 09, 2006 12:43 pm     Reply with quote

For me to work on this problem, I need a much more simplified
test program. If that can't be done then I probably can't help.
I don't have that much time, lately.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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