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 12 matches
CCS Forum Index
Author Message
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 10:47 am   Subject: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
Someone can tell me how to try:

a. Send from the slave two bytes together;
b. Send from the slave half_byte;

Let me explain:

If the analog values are:

// Each analog port
//AN0,AN1,AN2,A ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 10:19 am   Subject: I'm using this driver

////////////////////////////////////////////////////////////////////////////////
/// DS1307.C ///
/// Driver for ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 10:16 am   Subject: Ttelmah
Work with one or two analog values works fine.
Either if i set the analogs to 0 or ie i put the lm35dz temp sensor in all ports they works fine too! the problem shows up when there's no sensors in th ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 10:15 am   Subject: temtronic
Work with one or two analog values works fine.
Either if i set the analogs to 0 or ie i put the lm35dz temp sensor in all ports they works fine too! the problem shows up when there's no sensors in th ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 9:46 am   Subject: Ttelmah
Trying disable INT_SSP...
NOPE....

Same way!!!
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 9:41 am   Subject: Thanks Ttelmah
I'm trying right now the code without INT_RDA, and about the battery, i'm using CR2032 LITHIUM 3V.

Ops.: Same problem again!

the output is:

30/10/03 04
14:17:12

//and the right analog val ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 9:18 am   Subject: temtronic
the whole system never crashs, the ds1307 just keep changing values!!!
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 9:17 am   Subject: temtronic
doesn't matter if i put one or two slaves the results are the same.
even if i try long delays before each call

ex.

//call all analog data + digital input from slaveA
delay_ms(500);
sl ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sun Jan 08, 2012 8:44 am   Subject: Ttelmah
Thanks for yours replays guys, in fact when i run 18f4550 and ds1307 alone there is no such problem.

Even when i use stressing the bus without no delays for testing, there's no problem.


Everyt ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sat Jan 07, 2012 9:45 pm   Subject: NOPE
Crying or Very sad
Same problem here!!!
The output is:

20/17/32 01
08:06:60

and the analog datas

124-24-91-120-50-79-87-76-255 (here is ok) from the slave

I'm thinking that maybe, because the anal ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sat Jan 07, 2012 8:16 pm   Subject: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
Of course!!!

I've already tested the 18f4550 and ds1307 togheter and works fine!!!
I send you my code.

Master:

#include <18F4550.h> // Definicao dos registros do Microcontrolador
#use ...
  Topic: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
andretrilegal

Replies: 19
Views: 26785

PostForum: General CCS C Discussion   Posted: Sat Jan 07, 2012 1:37 pm   Subject: I2C + 18F4550 + 2 slave 16F877A + DS1307 changing date,time.
Hi guys!

I have a very strange problem!!!

I'm working with one 18f4550 and two slaves 16f877a and works as a charm!!!!
The master (18f4550), asks all analog port values from both, and works o ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group