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: I2C Master - Slave problem
elb0m

Replies: 4
Views: 6758

PostForum: General CCS C Discussion   Posted: Fri Jan 21, 2011 6:37 am   Subject: I2C Master - Slave problem
OK.
I've changed the code as you told me.
Some problems occur though.
Here is the code.


MASTER

#include <16f876A.H>
#device adc=8
#fuses HS, NOWDT, NOBROWNOUT, NOPROTECT, PUT, NOLVP ...
  Topic: I2C Master - Slave problem
elb0m

Replies: 4
Views: 6758

PostForum: General CCS C Discussion   Posted: Thu Jan 20, 2011 10:12 am   Subject: I2C Master - Slave problem
The use #i2c is included in the .h file that I have.
So I must set a flag, in the int_ssp and in the main program check the flag?
Ok I will do that as soon as I get back home!
Didn't understand w ...
  Topic: I2C Master - Slave problem
elb0m

Replies: 4
Views: 6758

PostForum: General CCS C Discussion   Posted: Thu Jan 20, 2011 8:14 am   Subject: I2C Master - Slave problem
Hello.
I want to connect 2 PIC16F876A motors with I2C protocol.
On the breadboard I have 2 resistors 2.2 Kohms, one IC by Philips called PCF8574, 4 Yellow LEDS and the 2 PICS.
I have setup one as a ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group