CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 13 matches
CCS Forum Index
Author Message
  Topic: i2c one master 2 slaves
Oblivion

Replies: 8
Views: 20092

PostForum: General CCS C Discussion   Posted: Thu Dec 09, 2010 6:21 am   Subject: i2c one master 2 slaves
But Proteus simply cannot be trusted to work for every situation.
Here is a thread, where he has to upgrade to Proteus vs. 7.6
to make an i2c slave project work correctly:
http://www.ccsinfo.com ...
  Topic: i2c one master 2 slaves
Oblivion

Replies: 8
Views: 20092

PostForum: General CCS C Discussion   Posted: Thu Dec 09, 2010 1:16 am   Subject: i2c one master 2 slaves
Thanks for your reply...

Master code:
#include <18f452.h>

#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, parity=N, xmi ...
  Topic: i2c one master 2 slaves
Oblivion

Replies: 8
Views: 20092

PostForum: General CCS C Discussion   Posted: Wed Dec 08, 2010 7:18 am   Subject: i2c one master 2 slaves
Thanks for your concern, temtronic...

Of course i have LEDs and a LCD on my project but i didn't post those codes here to simplify my problem. I can see the results on both LEDs, LCD and proteus's ...
  Topic: i2c one master 2 slaves
Oblivion

Replies: 8
Views: 20092

PostForum: General CCS C Discussion   Posted: Wed Dec 08, 2010 6:25 am   Subject: i2c one master 2 slaves
Hi all... I have a master (18F452) and two slave (18F877A) chips. When I use the i2c communication with one master and one slave individually, it works perfectly (thanks to forum). But when i try to u ...
  Topic: Slave response on I2C net between PICs
Oblivion

Replies: 14
Views: 23151

PostForum: General CCS C Discussion   Posted: Fri Nov 12, 2010 8:43 am   Subject: Slave response on I2C net between PICs
After a week i finally make it....


In slave

.....
if((state >= 0x80)&&(state <= 0x87)) // Master is requesting data from slave
.....


I changed the code like this. And n ...
  Topic: Slave response on I2C net between PICs
Oblivion

Replies: 14
Views: 23151

PostForum: General CCS C Discussion   Posted: Wed Nov 10, 2010 7:23 am   Subject: Slave response on I2C net between PICs
Thank you for your concern...

I wished you won't say something like that... I am trying the codes with different pics but i keep failing. I checked the hardware at least for 100 times. I guess i ha ...
  Topic: Slave response on I2C net between PICs
Oblivion

Replies: 14
Views: 23151

PostForum: General CCS C Discussion   Posted: Tue Nov 09, 2010 4:42 am   Subject: Slave response on I2C net between PICs
Thanks for your concern...

I am using 16F877a and my clock is 20M. These are the only differences... I tested it in proteus but as i realized and as you said proteus is not reliable, so i tested in ...
  Topic: Slave response on I2C net between PICs
Oblivion

Replies: 14
Views: 23151

PostForum: General CCS C Discussion   Posted: Mon Nov 08, 2010 9:50 am   Subject: Slave response on I2C net between PICs
Hello... I have the same master and slave codes shown above. But the master can read from the slave only for once. After the first turn it always reads "1". I guess i cannot trigger the inte ...
  Topic: 18F6722 INT_RDA2 problem
Oblivion

Replies: 5
Views: 8809

PostForum: General CCS C Discussion   Posted: Mon Oct 18, 2010 2:39 am   Subject: 18F6722 INT_RDA2 problem
Thanks for your answer Wayne_;

I was doubting that can be the mistake too. You are right. The compiler just executes the directives and ignoring the C codes at the beginning.

...
  Topic: 18F6722 INT_RDA2 problem
Oblivion

Replies: 5
Views: 8809

PostForum: General CCS C Discussion   Posted: Fri Oct 15, 2010 2:05 pm   Subject: 18F6722 INT_RDA2 problem
Thanks for your concern...

If you don't use
streams, the last #use rs232() statement is the one that is in effect for
all code that comes after that line.
Because of "#define MODBUS_SERIA ...
  Topic: 18F6722 INT_RDA2 problem
Oblivion

Replies: 5
Views: 8809

PostForum: General CCS C Discussion   Posted: Fri Oct 15, 2010 8:30 am   Subject: 18F6722 INT_RDA2 problem
Hello all... I am trying to use 2 UARTs on 18F6722. I can use INT_RDA and INT_RDA2 separately. But i cannot use them together. I define a modbus interrupt source and i want to change it in the runtime ...
  Topic: Need help with Pic16F877 Modbus communication
Oblivion

Replies: 3
Views: 5562

PostForum: General CCS C Discussion   Posted: Fri Sep 24, 2010 12:06 am   Subject: Need help with Pic16F877 Modbus communication
Thanks for your concern...

Why should I use MODBUS_INT_RDA instead of MODBUS_INT_EXT ? I guess I didn't understand that part yet. Also when I directly write MODBUS_INT_RDA instead of MODBUS_INT_EXT ...
  Topic: Need help with Pic16F877 Modbus communication
Oblivion

Replies: 3
Views: 5562

PostForum: General CCS C Discussion   Posted: Thu Sep 23, 2010 7:13 am   Subject: Need help with Pic16F877 Modbus communication
Hello everyone. I am new in this forum...
I searched the forum as much as i can for my problem but yet i cannot solve it. So if anyone helps me with this, i'll be gratefull...
I want to communicate ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group