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 support@ccsinfo.com

External EEPROMS

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



Joined: 30 Dec 2003
Posts: 9

View user's profile Send private message

External EEPROMS
PostPosted: Tue Feb 10, 2004 11:34 am     Reply with quote

I'm using a 18f6620 and the hardware I2C. The eeprom is a 24c65 with the pullups on sda and scl. What i've found is that using the routines in the 24c65 library the 6620 hangs when it enters the i2c_start routine. It is looking for FC5.0 to be cleared. However with the software routines everything works fine. Is there some other registers that need to be changed to get the hardware version to work?

Shouldn't i be able to go from this;

#use i2c(master,sda,scl,slow)

to this;

#use i2c(master,sda,scl,slow,force_hw)

without changing anything else?
Ted Ems



Joined: 30 Dec 2003
Posts: 9

View user's profile Send private message

external eeproms
PostPosted: Tue Feb 10, 2004 12:08 pm     Reply with quote

Simple problem!! I believe this was posted before. You must not have the SETUP_SPI(FALSE) in your program.
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