Author |
Message |
Topic: I2C Master - Slave problem |
elb0m
Replies: 4
Views: 6758
|
Forum: 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
|
Forum: 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
|
Forum: 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 ... |
|