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

Using LM74 Temperature Sensor with a PIC18F4525

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



Joined: 25 Jun 2007
Posts: 2

View user's profile Send private message

Using LM74 Temperature Sensor with a PIC18F4525
PostPosted: Wed Jul 25, 2007 5:12 am     Reply with quote

I'm using a National Semiconductor Temperature Sensor LM74 using the Microwire interface to a PIC18F4525, using the following pins:

TEMP_CLK - PIN_E2
TEMP_DATA - PIN_E1
TEMP_CS - PIN_E0

I'd like to read the temperature at regular intervals to control 2 Fans that will run at nominal and high speed. If the temperature is between 40 to 60 degrees C for example, I will run the Fans at 50% duty cycle. If the Temperature is above 60 degrees C, I will run the fans at 80-90% duty cycle. The code for PWM generation of the Fans is working fine.

Does anyone have any working code using the temperature sensor LM74?

Regards,

Darren
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 25, 2007 11:46 pm     Reply with quote

The LM74 is similar to the Microchip TC77. Here's a software driver
that someone posted. It should get you started.
http://www.ccsinfo.com/forum/viewtopic.php?t=30038&highlight=tc77
DarrenH



Joined: 25 Jun 2007
Posts: 2

View user's profile Send private message

PostPosted: Thu Jul 26, 2007 5:13 am     Reply with quote

Ok thank you, I'll give that a try.

Regards,

Darren
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