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

#use fast_io() and i2c

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








#use fast_io() and i2c
PostPosted: Wed Feb 04, 2004 4:10 pm     Reply with quote

#use fast_io() can't be used with i2c?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Thu Feb 05, 2004 6:50 am     Reply with quote

#use fast_io() just tells the compiler not to control the tris register when accessing the I/O. It should not have an affect on I2C.
chava



Joined: 07 Sep 2003
Posts: 56

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

I2C is bi-directional communication
PostPosted: Thu Feb 05, 2004 8:08 am     Reply with quote

Hello
I2C is a bi-directional communication, so the SDA line has to change roll from input to output during the transmition.
you should check if, when you use I2C, the tris is been changed by the program (ie if the compiler generated a code that take care of the tris, inspite of the use fast io directive.)
if not, you should cancel the fast io for the program part which related to the I2C communication

let me nkow if you succeeded
E2D
Chava Jukin
[email protected]
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