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

i2c DS1621 stress !!!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
coconico



Joined: 31 Aug 2004
Posts: 7

View user's profile Send private message

i2c DS1621 stress !!!
PostPosted: Tue Aug 31, 2004 9:00 am     Reply with quote

I can send a good config to my DS1621 but the read function don't function good. It return a bad value and give no ack after the read blocks.

What can I do???

Pleas help me ...
jds-pic



Joined: 17 Sep 2003
Posts: 205

View user's profile Send private message

Re: I2C DS1621 STRESS!!!
PostPosted: Tue Aug 31, 2004 1:32 pm     Reply with quote

coconico wrote:
I can send a good config to my DS1621 but the read function don't function good. It return a bad value and give no ack after the read blocks.

What can I do???

Pleas help me ...


the DS1621 operates very much the same as the DS1624;
see my code for the latter here in the library section:
http://www.ccsinfo.com/forum/viewtopic.php?t=19526

jds-pic
Mark Weir



Joined: 11 Sep 2003
Posts: 51
Location: New Zealand

View user's profile Send private message

DS1621 Stress
PostPosted: Tue Aug 31, 2004 1:46 pm     Reply with quote

You may find that the problem comes back to the DS1621 device.
These have a tendency to lock up the I2C bus intermittently.
I have spent many hours chasing a similar problem recently using DS1621 and a 16F877A. The application would run perfectly for hours and then just lock up. I obtained some information from the Dallas Technical people stating known lock up issues with this device.

There are a number of other similar devices you could try, DS1631, DS1721, MAX7500. It depends on your requirements.

The only other thing is to check that nothing else is interfering with the bus traffic. Are there any AC devices in the area? it could be noise.

Cheers
Mark
HELL_FIRE_
Guest







PostPosted: Sun Dec 16, 2007 5:10 pm     Reply with quote

HI guys

With which one function I can replace BITEST function in CCS Compiler? I want to use compiler which did not support this function and to compile with him DS1624 driver code. Please help me Crying or Very sad
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Dec 16, 2007 5:40 pm     Reply with quote

Do you even have the CCS compiler ? CCS has had the bit_test()
function for years. But anyway, here is a bit_test() function:

Put these lines above the #include line for the ds1624 driver.
(Referring to the driver by jds-pic in the Code Library).
Code:
int8 const bitmask_table[] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};

#define bit_test(var, mybit) (!!(var & bitmask_table[mybit]))
CorosanD



Joined: 23 Jul 2007
Posts: 3

View user's profile Send private message

PostPosted: Wed Jan 02, 2008 10:30 am     Reply with quote

Thank you very much Smile
aloisjidra
Guest







Re: DS1621 Stress
PostPosted: Wed Mar 18, 2009 4:54 pm     Reply with quote

Hi
I would like to ask you to help with max 7500 thermo i2c sensor.
I could not find command for this sensor. I mean for example start conversion, read data and so
Thank for your answer
Best regards
Alois


Mark Weir wrote:
You may find that the problem comes back to the DS1621 device.
These have a tendency to lock up the I2C bus intermittently.
I have spent many hours chasing a similar problem recently using DS1621 and a 16F877A. The application would run perfectly for hours and then just lock up. I obtained some information from the Dallas Technical people stating known lock up issues with this device.

There are a number of other similar devices you could try, DS1631, DS1721, MAX7500. It depends on your requirements.

The only other thing is to check that nothing else is interfering with the bus traffic. Are there any AC devices in the area? it could be noise.

Cheers
Mark
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group