Author |
Message |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Mon Mar 25, 2013 10:20 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
I finally lost interest when the JPG showed proteus screen shots...
I immediately follow the forum rules and ignore any threads containing screenshots of proteus.
I'm blown away this thread ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Mon Mar 25, 2013 7:53 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
++++++++++++++++++++++++
jayanthd banned for Piracy.
See forum rule #9:
http://www.ccsinfo.com/forum/viewtopic.php?t=26245
9. No pirating
- Forum Moderator
++++++++++++++++++++++++
Yes ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Mon Mar 25, 2013 1:58 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
Speaks for itself.
Mike
What? I said that if I use only one slave at a time it works without problem but if I use both slaves then master reads data from both the slaves and displays correctly ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sun Mar 24, 2013 9:38 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
Ok. I got it working. Here is a screenshot of my project working.
I will soon post the code after fine tuning my project.
http://www.pixhost.org/show/3166/16411281_i2c_working.jpg
htt ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sun Mar 24, 2013 3:26 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
My Master code works but Ttelmah's master code hangs the slave. I am using Ttelmah's slave ISR.
The problem is my master code gives the value -3.99 which is wrong value and the value never changes. ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sun Mar 24, 2013 2:12 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
I found on this page
MASTER
* 16f887 bytes */
/* Change it per chip */
#byte PIC_SSPBUF=0x13
#byte PIC_SSPADD=0x93
#byte PIC_SSPSTAT=0x94
#byte PIC_SSPCON=0x14
#byte PIC_SSPCON2=0x91 ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 5:20 pm Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
To add to the mentioned problems there is still the TRIS setting problem: set_tris_a(0xFF);
set_tris_d(0x00);
output_a(0x00);Setting port A to be all input is fine, t ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 4:17 pm Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
@jerimiah
See my last post. I have written a new ISR for Slave.
See this document page no. 13 http://www.eti.pg.gda.pl/katedry/ksg/dydaktyka/dla_studentow//i2c.pdf
It tells if device want to ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 4:03 pm Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
I'm not an I2C expert, but I am unsure (in reference to the master code) if a NACK can be sent multiple times before a stop condition. I've not seen a device operate where you do
start
read(NACK)
... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 3:49 pm Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
@Ttelmah
Have you just tried the examples you have been pointed to?
What examples? Who pointed to them?
Have you ever actually written a program that works?
Yes. You can see in this thread wh ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 3:26 pm Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
@jeremiah
This is my latest code. Lcd is working now but data received by master is wrong and after receiving data 2 times it is not receiving data again.
Master Code
#include <16F887.h> ... |
Topic: interrupt int_rda not working |
jayanthd
Replies: 5
Views: 8946
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 3:15 pm Subject: Re: interrupt int_rda not working |
How are you sending data to UART? Only if you send some data like say 'A' serial interrupt occurs and printf is executed. |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 12:26 pm Subject: Re: Typos |
Finally what is the solution to my problem? |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 11:05 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
so the mistake you posted which i commented on, magically disappeared from your post...
anyways.. the .h file tells you what are the allowed parameters for your pic and how to use them.. read that ... |
Topic: I2C Example needed *** Locked *** jayanthd banned for piracy |
jayanthd
Replies: 65
Views: 93048
|
Forum: General CCS C Discussion Posted: Sat Mar 23, 2013 10:59 am Subject: I2C Example needed *** Locked *** jayanthd banned for piracy |
@ckielstra
I will read that book again...
Ok. Thank you everyone. Can somebody tell what is the solution to my two problems .i.e.,
1. Slave's lcd not printing the value of temp when i2c is us ... |
|