Author |
Message |
Topic: I2C simple communication problem |
[email protected]
Replies: 11
Views: 20153
|
Forum: General CCS C Discussion Posted: Sun Jun 11, 2017 5:40 am Subject: I2C simple communication problem |
I changed the slave code and made it simpler. but SSP interrupt seems to be not firing (responding)
#include <16F877a.h>
#use delay(clock=20000000)
#fuses HS,NOWDT,NOPROTECT,NOL ... |
Topic: I2C simple communication problem |
[email protected]
Replies: 11
Views: 20153
|
Forum: General CCS C Discussion Posted: Sat Jun 10, 2017 10:02 am Subject: I2C simple communication problem |
Yes, but I am writing to another PIC if you re-look to my code:
What will be the range of addresses in my case ? What are the first and last addresses in my buffer ? How to know it if i am connecti ... |
Topic: I2C simple communication problem |
[email protected]
Replies: 11
Views: 20153
|
Forum: General CCS C Discussion Posted: Sat Jun 10, 2017 9:15 am Subject: I2C simple communication problem |
Yes, in the EEPROM there are three bits for addressing, allowing to address up to 8 devices on the i2c bus. But in my case, i have a PIC.
My question in other words is, how to know the register add ... |
Topic: I2C simple communication problem |
[email protected]
Replies: 11
Views: 20153
|
Forum: General CCS C Discussion Posted: Sat Jun 10, 2017 7:52 am Subject: I2C simple communication problem |
Ok, thanks but how to specify a register from the master to be written in the slave. Can you give me an example ? |
Topic: I2C simple communication problem |
[email protected]
Replies: 11
Views: 20153
|
Forum: General CCS C Discussion Posted: Sat Jun 10, 2017 6:40 am Subject: I2C simple communication problem |
Hi,
I am trying to conduct simple i2c communication between 2 PIC16f877A.
The communication seems to be not working:
Master code:
#include <16f877a.h>
#use delay(clock=20 ... |
|