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

Search found 3 matches
CCS Forum Index
Author Message
  Topic: Problem with hardware i2c pic16f877a
tn88test

Replies: 5
Views: 9914

PostForum: General CCS C Discussion   Posted: Wed Feb 27, 2013 10:11 pm   Subject: Problem with hardware i2c pic16f877a
Why are you doing this ? CCS has built-in hardware i2c routines, which
can be enabled with this statement:

#use i2c(master, sda=PIN_C4, scl=PIN_C3, FORCE_HW)

Then use the i2c routine ...
  Topic: Problem with hardware i2c pic16f877a
tn88test

Replies: 5
Views: 9914

PostForum: General CCS C Discussion   Posted: Wed Feb 27, 2013 2:12 am   Subject: Problem with hardware i2c pic16f877a
I used PCWHD version 4.104

I have change my code as you suggested. I can see the SEN, PEN bits are cleared by hardware, but SSPIF is not set to 1. My program still stuck at while(!SSPIF);

void W ...
  Topic: Problem with hardware i2c pic16f877a
tn88test

Replies: 5
Views: 9914

PostForum: General CCS C Discussion   Posted: Tue Feb 26, 2013 9:45 pm   Subject: Problem with hardware i2c pic16f877a
I had been successful with software i2c to display timer with ds1307. Now I try with hardware i2c and there is a problem. The i2c bits doesn't automatically cleared by hardware.

example:
My progra ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group