Author |
Message |
Topic: i2c write more then ones |
Zulander
Replies: 2
Views: 3906
|
Forum: General CCS C Discussion Posted: Mon Apr 30, 2007 8:13 pm Subject: i2c write more then ones |
Hi need to know I if I could send/ receive more then one time and i2c_write to the master and slave. I have tired this, and it is working perfectly for the one time i2c_write however when I write more ... |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2007 10:16 am Subject: Problem Found !!! |
Hello,
After a good weekend and looking at the code with a fresh eyes, I've found the problem, it is very stupid, I've changed the clock of the master which was at #use delay(clock=4000000) t ... |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Fri Mar 16, 2007 8:10 pm Subject: I2c MASTER/SLAVE Again ! |
The printf statement uses "%x" as the format specifier.
Ahh yes, my fault i should have double checked for the printf which was HEX and not DEC,
How did that get turned into "change ... |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Fri Mar 16, 2007 2:32 pm Subject: I2c MASTER/SLAVE Again ! |
Hi,
I don't understand why you are reading 42 ?
i2c_write('B');
isn't 42 a *, we should get 66 for B
p.s: i went from 4.7 to 1k resistor and i have updated the compiler version to 4. ... |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Fri Mar 16, 2007 1:22 pm Subject: I2c MASTER/SLAVE Again ! |
//slave.h
#include <16F690.h>
#device adc=8
#FUSES NOWDT //No Watch Dog Timer
#FUSES NOPROTECT //Code not protected from reading
#FUSES BROWNOUT ... |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Fri Mar 16, 2007 12:45 pm Subject: I2c MASTER/SLAVE Again ! |
So, I got my communication to work but, the data is not synchronizing.
I am sending 0x0C using i2c_write(0x0C);
And I am reading D7
am i using the wrong switch ?
it's really wired, I've used ... |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Thu Mar 15, 2007 6:10 am Subject: I2c MASTER/SLAVE Again ! |
OK, let me try what you suggested and ill get back to you |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Wed Mar 14, 2007 8:51 pm Subject: I2c MASTER/SLAVE Again ! |
is there a reason why you're using an
external R-C oscillator
Yes, i have used it for testing and i have removed it and i am no longer using it !
For the Master PIC, you have not specified an ... |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Wed Mar 14, 2007 5:56 pm Subject: I2c MASTER/SLAVE Again ! |
What's your compiler version ?
The compiler version is 4.023 |
Topic: I2c MASTER/SLAVE Again ! |
Zulander
Replies: 16
Views: 15685
|
Forum: General CCS C Discussion Posted: Wed Mar 14, 2007 4:56 pm Subject: I2c MASTER/SLAVE Again ! |
Hi, guys
I am having a problem with I2c master and slave communication. I�ve searched the whole forum for master slave example I�ve tried all of them, my master can�t see to read the data form the S ... |
Topic: I2C and broadcasting |
Zulander
Replies: 1
Views: 3742
|
Forum: General CCS C Discussion Posted: Thu Mar 01, 2007 7:48 pm Subject: I2C and broadcasting |
Hi,
I would like to know if I could be broadcasting a i2c_write during a loop? To be clear, I am running 3 ic�s as slaves and one master. The problem that I am facing is that sometime one or all thre ... |
Topic: I have a Question regarding i2c lines, |
Zulander
Replies: 2
Views: 4116
|
Forum: General CCS C Discussion Posted: Sun Dec 24, 2006 7:30 am Subject: I have a Question regarding i2c lines, |
Well PCM programmer,
I don�t have any ICs yet, it was a general question what I was thinking I wasn�t sure. For how I have two but I might have more. I don�t know! Is their away I can calculate it ?
... |
Topic: I have a Question regarding i2c lines, |
Zulander
Replies: 2
Views: 4116
|
Forum: General CCS C Discussion Posted: Sat Dec 23, 2006 11:00 pm Subject: I have a Question regarding i2c lines, |
Hi,
Do I need to put a pull-up resistor from each device that is on a circuit or I can put one pull-up resistor for the whole circuit? |
Topic: Read i2c bytes |
Zulander
Replies: 5
Views: 7530
|
Forum: General CCS C Discussion Posted: Mon Dec 04, 2006 8:16 pm Subject: PIC |
This is my screen shot of the control setting that i am going to be reading the 8 bytes of data:
http://www3.brinkster.com/zulander/images/tmc.jpg |
|