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

chfr.

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



Joined: 07 Jun 2010
Posts: 50
Location: Banned - spammer

View user's profile Send private message

chfr.
PostPosted: Sat Jan 14, 2012 3:09 am     Reply with quote

sdf
_________________
Banned for spamming his own posts


Last edited by vortexe9000 on Sun Feb 19, 2012 7:43 am; edited 2 times in total
vortexe9000



Joined: 07 Jun 2010
Posts: 50
Location: Banned - spammer

View user's profile Send private message

PostPosted: Sat Jan 14, 2012 10:33 am     Reply with quote

loop
_________________
Banned for spamming his own posts


Last edited by vortexe9000 on Sun Feb 19, 2012 7:14 am; edited 1 time in total
temtronic



Joined: 01 Jul 2010
Posts: 9250
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jan 14, 2012 11:57 am     Reply with quote

hmm....I don't see any bias resistors in the RS485 network.....

hmmm... I don't see any caps for any of the xtals of the PICs....
vortexe9000



Joined: 07 Jun 2010
Posts: 50
Location: Banned - spammer

View user's profile Send private message

PostPosted: Sat Jan 14, 2012 1:38 pm     Reply with quote

jtgation ?
_________________
Banned for spamming his own posts


Last edited by vortexe9000 on Sun Feb 19, 2012 7:15 am; edited 1 time in total
temtronic



Joined: 01 Jul 2010
Posts: 9250
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jan 14, 2012 2:31 pm     Reply with quote

I think you're saying that the DS18B20 takes too long to read the temperature compared to the MODBUS communications speed.

The hires sampling takes almost 1 second.

If that is so you have a few options....

1) reduce the resolution of the DS18B20. That will reduce the time necessary to get a reading BUT....it won't be as accurate. See the datasheet for more information.

2)Have the slave PIC continuously read the DS18B20 and save in a temporary buffer. When the master asks for the temperature, get the 'buffered' value instead of telling the DS18B20 to read and send.

3) Slow down the MODBUS serial interface( may not be possible ?).

In my datalogging units I use the DS18B20 and sample at a 1Hz rate.
vortexe9000



Joined: 07 Jun 2010
Posts: 50
Location: Banned - spammer

View user's profile Send private message

PostPosted: Sat Jan 14, 2012 2:51 pm     Reply with quote

uijjk
_________________
Banned for spamming his own posts
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