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

Error on sending via RS232 after reading temperature
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
otavio_fisica



Joined: 20 Jul 2006
Posts: 29

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Thu Dec 14, 2006 4:55 am     Reply with quote

Hi... I think I found the problem (with your help). I have built the circuit in a proto-board. I was using a power regulator. I think it is damaged. The problem is that when I mesure the output of the power regulator, it gives the 5 V I wanted. And that's because I thought it was perfect. Yesterday, I tried to mesure when it was already in the circuit. The answer: It gave 5V in the beginning and then it would decrease slowly until it gets less than 4V. I think that explains what was hapenning, that is, the pic used to work correctly in the beginning until it started to restart (the led started to blink). Then, it began restarting each time faster (the led started to blink faster), until it did not had enough power to start anytime (because of the brownout reset) and so the led didn't go high any more. I changed the power supply with a battery and I got the problem solved. Now, the output of the batteries do not decrease with time and the pic never restarts, even with the brownout option. It's working perfectly now. I still am trying to see why it sends some garbage to the computer when I turn it on. But I'll try a bit more before posting something here. After this garbage, it's sending the data correctly. See below for example.
Quote:

24.81 - 24.56
24.81 - 24.56
24.81 - 24.56
24.81 - 24.56
24.75 - 24.56
24.81 - 24.56
24.75 - 24.63
24.75 - 24.56
24.75 - 24.63
24.75 - 24.56
24.75 - 24.56
24.88 - 24.63
24.81 - 24.56
24.75 - 24.56
24.75 - 24.63
24.69 - 24.56
24.75 - 24.56
24.75 - 24.56
24.75 - 24.63
24.81 - 24.63
24.81 - 24.63

There are two values because I have built a apparatus with two sensors. And the values are slightly different because I had touched one of them before. I know there's already many things about the DS1621 here in the forum. There's codes and other stuff, but do you think it would be helpfull if I post the code I used? If you think it is, I'll post.

Thank you all that helped me... I really learned a lot with this problem.
Have a good day!!!
Ttelmah
Guest







PostPosted: Thu Dec 14, 2006 9:36 am     Reply with quote

Did you ever 'feel' the regulator when the circuit was running?. That sort of behaviour could be symptomatic of thermal shutdown.
The other thing that can cause this sort of problem is the regulator oscillating. Regulators are very high gain devices, and are easy to get to oscillate. This is why the manufacturers usually specify that there should be a _small_ capacitor, really close to the regulator output legs (this block HF, more than a larger capacitor does).

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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