Author |
Message |
Topic: PIC 18F2220 I2C |
imatshego
Replies: 12
Views: 10530
|
Forum: General CCS C Discussion Posted: Fri May 14, 2010 4:25 am Subject: PIC 18F2220 I2C |
Thank you for a detailed explanation. I see that you did say that the data sheet will give me the address in you previous reply. Sorry my bad.
Going through CCS drivers I see that the ... |
Topic: PIC 18F2220 I2C |
imatshego
Replies: 12
Views: 10530
|
Forum: General CCS C Discussion Posted: Thu May 13, 2010 7:36 am Subject: PIC 18F2220 I2C |
But how do you know what's the address for any device is on the bus? If u have one master and four slaves. how would you know each address of the slaves?
how does one get to that hex address, 0x. ... |
Topic: PIC 18F2220 I2C |
imatshego
Replies: 12
Views: 10530
|
Forum: General CCS C Discussion Posted: Thu May 13, 2010 5:35 am Subject: PIC 18F2220 I2C |
Ok You have lost me. lets say that I have my main.c and ds1307.c.
Would I include the code in the main or do I include another driver?
I2C_WRITE(0x78); //The first byte sent after ... |
Topic: PIC 18F2220 I2C |
imatshego
Replies: 12
Views: 10530
|
Forum: General CCS C Discussion Posted: Thu May 13, 2010 4:53 am Subject: PIC 18F2220 I2C |
Thanks Thelmah I had noticed that myself that code is useless and not very self explanatory.
I have a clear understanding of I2C and devices being used and their connection. If I were to connect ... |
Topic: PIC 18F2220 I2C |
imatshego
Replies: 12
Views: 10530
|
Forum: General CCS C Discussion Posted: Thu May 13, 2010 3:13 am Subject: PIC 18F2220 I2C |
Thanks PCM programmer. I followed the steps and came out ok. I also downloaded data sheets for the pics and going through them.
Another thing that I would like to know is, when using ... |
Topic: PIC 18F2220 I2C |
imatshego
Replies: 12
Views: 10530
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 1:40 am Subject: PIC 18F2220 I2C |
Hi Guys
I am new to CCS and hardware design. I have done some basic C programming on PIC 18F2220 with LCD and 7Segment displays. I would like to up my game by using the same pic but using I2C com ... |
|