<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Embedded-Code.com &#187; Miscellaneous</title>
	<atom:link href="http://www.embedded-code.com/source-code/category/miscellaneous/feed" rel="self" type="application/rss+xml" />
	<link>http://www.embedded-code.com/source-code</link>
	<description></description>
	<lastBuildDate>Fri, 27 Jan 2012 10:18:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Texas Instruments TMP100 I2C Temperature Sensor Driver</title>
		<link>http://www.embedded-code.com/source-code/miscellaneous/temperature-sensor-ics/texas-instruments-tmp100-i2c-temperature-sensor-driver</link>
		<comments>http://www.embedded-code.com/source-code/miscellaneous/temperature-sensor-ics/texas-instruments-tmp100-i2c-temperature-sensor-driver#comments</comments>
		<pubDate>Fri, 14 Oct 2011 15:07:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Temperature Sensor IC's]]></category>
		<category><![CDATA[Temperature Sensors]]></category>

		<guid isPermaLink="false">http://www.embedded-code.com/source-code/?p=324</guid>
		<description><![CDATA[[product_image:/images/products/product_free_driver.png] [ProductType:1] (0=normal, 1=quick/free project (must be 1 char) [product_attributes_end] [product_section_start:product_page_section_overview.png] The Texas Instruments TMP100 is an I2C Bus temperature sensor device. It provides accurate temperture measurement at the PCB for embedded designs. [product_section_start:product_info_include_free_driver_top_box] [product_section_start:product_page_section_details.png] This driver provides the following functions: SET CONFIGURATION BYTE temperature_set_config (BYTE config) Returns 1 if configuration was set sucessfully, 0 [...]]]></description>
			<content:encoded><![CDATA[<p>[product_image:/images/products/product_free_driver.png]<br />
[ProductType:1] (0=normal, 1=quick/free project (must be 1 char)<br />
[product_attributes_end]<br />
<span id="more-324"></span></p>
<p>[product_section_start:product_page_section_overview.png]</p>
<p>The Texas Instruments TMP100 is an I2C Bus temperature sensor device. It provides  accurate temperture measurement at the PCB for embedded designs.</p>
<p>[product_section_start:product_info_include_free_driver_top_box]</p>
<p>[product_section_start:product_page_section_details.png]</p>
<p>This driver provides the following functions:</p>
<p><span class="code_function_title">SET CONFIGURATION</span><br />
<span class="code_function_definition">BYTE temperature_set_config (BYTE config)</span><br />
Returns 1 if configuration was set sucessfully, 0 if not<br />
config:<br />
OS/ALERT | R1 | R0 | F1 | F0 | POL | TM | 1=Shutdown</p>
<p>R1:0		Resolution			Convertsion Time (typ)<br />
00			9 Bits (0.5°C)		40ms<br />
01			10 Bits (0.25°C)	80ms<br />
10			11 Bits (0.125°C)	160ms<br />
11			12 Bits (0.0625°C)	320ms</p>
<p><span class="code_function_title">READ TEMPERATURE</span><br />
<span class="code_function_definition">BYTE read_temperature (SIGNED_WORD *temperature)</span><br />
Returns 1 if temperature was read sucessfully, 0 if not<br />
temperature:<br />
Returned 12 bit temperature reading is x0.0625ºC (16 bits per 1ºC).  0&#215;0000 = 0ºC</p>
<p>&nbsp;</p>
<p>Please view the sample source code files for full information regarding the driver.</p>
<p>[product_section_start:product_page_section_compilers.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15" align="left" valign="middle"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><img src="/images/compilers/ansi_c_compiler.jpg" border="0" alt="" width="140" height="40" /></div>
</td>
<td class="main"></td>
<td class="main">
<div>This source code product is written in C and has been designed to be used with any ANSI compliant C compiler on any platform. Direct compatibility has been tested with the compilers and processors / microcontrollers listed below. Using the driver with other ANSI compliant C compilers and devices should not present significant problems.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C18 MPLAB C Compiler for PIC18 family of 8 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C30 MPLAB C Compiler for PIC24 and dsPIC family of 16 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C32 MPLAB C Compiler for PIC32 family of 32 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_page_section_project_files.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Generic_Header_File/EC/main.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download our generic header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Temperature_Sensors/Texas%20Instruments%20TMP100/temp-tmp100.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .h header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Temperature_Sensors/Texas%20Instruments%20TMP100/temp-tmp100.c" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .c code file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Temperature_Sensors/Texas%20Instruments%20TMP100/TMP100.pdf" target="_blank"><img src="/images/icons/download_datasheet.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download TMP100 datasheet</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_info_include_free_driver]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.embedded-code.com/source-code/miscellaneous/temperature-sensor-ics/texas-instruments-tmp100-i2c-temperature-sensor-driver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maxim DS1337 I2C Real Time Clock Driver</title>
		<link>http://www.embedded-code.com/source-code/miscellaneous/real-time-clock-ics/maxim-ds1337-i2c-real-time-clock-driver</link>
		<comments>http://www.embedded-code.com/source-code/miscellaneous/real-time-clock-ics/maxim-ds1337-i2c-real-time-clock-driver#comments</comments>
		<pubDate>Fri, 11 Feb 2011 18:31:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Real Time Clock IC's]]></category>

		<guid isPermaLink="false">http://www.embedded-code.com/source-code/?p=180</guid>
		<description><![CDATA[[product_image:/images/products/product_free_driver.png] [ProductType:1] (0=normal, 1=free/quick project (must be 1 char) [product_attributes_end] [product_section_start:product_page_section_overview.png] The Dallas Maxim DS1337 is a I2C serial bus real time clock.. It provides low power time keeping for embedded designs with two alarm output pins. [product_section_start:product_info_include_free_driver_top_box] [product_section_start:product_page_section_details.png] This driver provides the following functions: SET REAL TIME CLOCK TIME BYTE rtc_set_time (BYTE alarms_enabled, BYTE [...]]]></description>
			<content:encoded><![CDATA[<p>[product_image:/images/products/product_free_driver.png]<br />
[ProductType:1] (0=normal, 1=free/quick project (must be 1 char)<br />
[product_attributes_end]<br />
<span id="more-180"></span></p>
<p>[product_section_start:product_page_section_overview.png]</p>
<p>The Dallas Maxim DS1337 is a I2C serial bus real time clock.. It provides low power time keeping for embedded designs with two alarm output pins.</p>
<p>[product_section_start:product_info_include_free_driver_top_box]</p>
<p>[product_section_start:product_page_section_details.png]</p>
<p>This driver provides the following functions:</p>
<p><span class="code_function_title">SET REAL TIME CLOCK TIME</span><br />
<span class="code_function_definition">BYTE rtc_set_time (BYTE alarms_enabled, BYTE hours, BYTE minutes, BYTE seconds, BYTE day, BYTE date, BYTE month, BYTE year)</span><br />
The fields are converted from binary to BCD before being sent to the RTC<br />
alarms_enabled	0 = alarms disabled, bit0 = alarm 1 enable, bit1 = alarm 2 enable, bit2 = alarms trigger INTA &amp; INTB (0=both trigger INTA)<br />
hours			0 &#8211; 23<br />
minutes			0 &#8211; 59<br />
seconds			0 &#8211; 59<br />
day				1 &#8211; 7<br />
date			1 &#8211; 31<br />
month			1 &#8211; 12<br />
year			0 &#8211; 99</p>
<p><span class="code_function_title">GET REAL TIME CLOCK TIME</span><br />
<span class="code_function_definition">BYTE rtc_get_time (BYTE *hours, BYTE *minutes, BYTE *seconds, BYTE *day, BYTE *date, BYTE *month, BYTE *year)</span><br />
All fields are converted to binary values<br />
hours			0 &#8211; 23<br />
minutes			0 &#8211; 59<br />
seconds			0 &#8211; 59<br />
day				1 &#8211; 7<br />
date			1 &#8211; 31<br />
month			1 &#8211; 12<br />
year			0 &#8211; 99</p>
<p><span class="code_function_title">SET REAL TIME CLOCK ALARM</span><br />
<span class="code_function_definition">BYTE rtc_set_alarm (BYTE alarm_id, BYTE alarms_enabled, BYTE hours, BYTE minutes, BYTE seconds, BYTE date_day)</span><br />
The fields are converted from binary to BCD before being sent to the RTC<br />
alarm_id		1 &#8211; 2<br />
alarms_enabled	0 = alarms disabled, bit0 = alarm 1 enable, bit1 = alarm 2 enable, bit2 = alarms trigger INTA &amp; INTB (0=both trigger INTA)<br />
hours			0 &#8211; 23<br />
minutes			0 &#8211; 59<br />
seconds			0 &#8211; 59 (not available for alarm 2)<br />
date_day		1 &#8211; 31 (dates) or 101 &#8211; 107 (days)<br />
Set any value to 0xff to be ignored in the alarm comparison<br />
Note: After an alarm is activated the INT pin will remain driven low until rtc_clear_alarms() is called</p>
<p><span class="code_function_title">CLEAR REAL TIME CLOCK ALARMS</span><br />
<span class="code_function_definition">BYTE rtc_clear_alarms (void)</span><br />
When an enabled alarm trips the alarm flags must be cleared using this function to reset the INT pin(s).</p>
<p>Please view the sample source code files for full information regarding the driver.</p>
<p>[product_section_start:product_page_section_compilers.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15" align="left" valign="middle"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><img src="/images/compilers/ansi_c_compiler.jpg" border="0" alt="" width="140" height="40" /></div>
</td>
<td class="main"></td>
<td class="main">
<div>This source code product is written in C and has been designed to be used with any ANSI compliant C compiler on any platform. Direct compatibility has been tested with the compilers and processors / microcontrollers listed below. Using the driver with other ANSI compliant C compilers and devices should not present significant problems.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C18 MPLAB C Compiler for PIC18 family of 8 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C30 MPLAB C Compiler for PIC24 family of 16 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C32 MPLAB C Compiler for PIC32 family of 32 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_page_section_project_files.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Generic_Header_File/EC/main.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download our generic header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/RTC/Maxim_DS1337-EC/rtc-ds1337.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .h header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/RTC/Maxim_DS1337-EC/rtc-ds1337.c" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .c code file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/RTC/Maxim_DS1337-EC/DS1337.pdf" target="_blank"><img src="/images/icons/download_datasheet.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download DS1337 datasheet</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_info_include_free_driver]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.embedded-code.com/source-code/miscellaneous/real-time-clock-ics/maxim-ds1337-i2c-real-time-clock-driver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microchip TCN75 I2C Temperature Sensor Driver</title>
		<link>http://www.embedded-code.com/source-code/miscellaneous/temperature-sensor-ics/microchip-tcn75-i2c-temperature-sensor-driver</link>
		<comments>http://www.embedded-code.com/source-code/miscellaneous/temperature-sensor-ics/microchip-tcn75-i2c-temperature-sensor-driver#comments</comments>
		<pubDate>Mon, 05 Apr 2010 13:06:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Temperature Sensor IC's]]></category>
		<category><![CDATA[Temperature Sensors]]></category>

		<guid isPermaLink="false">http://www.embedded-code.com/source-code/?p=144</guid>
		<description><![CDATA[[product_image:/images/products/product_free_driver.png] [ProductType:1] (0=normal, 1=quick/free project (must be 1 char) [product_attributes_end] [product_section_start:product_page_section_overview.png] The Microchip TCN75 is an I2C Bus temperature sensor device. It provides accurate temperture measurement at the PCB for embedded designs. [product_section_start:product_info_include_free_driver_top_box] [product_section_start:product_page_section_details.png] This driver provides the following functions: READ TEMPERATURE BYTE read_temperature (SIGNED_WORD *temperature) Returns 1 if temperature was read sucessfully, 0 if [...]]]></description>
			<content:encoded><![CDATA[<p>[product_image:/images/products/product_free_driver.png]<br />
[ProductType:1] (0=normal, 1=quick/free project (must be 1 char)<br />
[product_attributes_end]<br />
<span id="more-144"></span></p>
<p>[product_section_start:product_page_section_overview.png]</p>
<p>The Microchip TCN75 is an I2C Bus temperature sensor device. It provides  accurate temperture measurement at the PCB for embedded designs.</p>
<p>[product_section_start:product_info_include_free_driver_top_box]</p>
<p>[product_section_start:product_page_section_details.png]</p>
<p>This driver provides the following functions:</p>
<p><span class="code_function_title">READ TEMPERATURE</span><br />
<span class="code_function_definition">BYTE read_temperature (SIGNED_WORD *temperature)</span><br />
Returns 1 if temperature was read sucessfully, 0 if not<br />
temperature =<br />
Temperature reading x0.5ºC (0&#215;0000 = 0ºC)</p>
<p>Please view the sample source code files for full information regarding the driver.</p>
<p>[product_section_start:product_page_section_compilers.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15" align="left" valign="middle"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><img src="/images/compilers/ansi_c_compiler.jpg" border="0" alt="" width="140" height="40" /></div>
</td>
<td class="main"></td>
<td class="main">
<div>This source code product is written in C and has been designed to be used with any ANSI compliant C compiler on any platform. Direct compatibility has been tested with the compilers and processors / microcontrollers listed below. Using the driver with other ANSI compliant C compilers and devices should not present significant problems.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C18 MPLAB C Compiler for PIC18 family of 8 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C30 MPLAB C Compiler for PIC24 family of 16 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C32 MPLAB C Compiler for PIC32 family of 32 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_page_section_project_files.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Generic_Header_File/EC/main.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download our generic header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Temperature_Sensors/Microchip_TCN75-EC/temp-tcn75.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .h header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Temperature_Sensors/Microchip_TCN75-EC/temp-tcn75.c" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .c code file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Temperature_Sensors/Microchip_TCN75-EC/TCN75.pdf" target="_blank"><img src="/images/icons/download_datasheet.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download TCN75 datasheet</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_info_include_free_driver]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.embedded-code.com/source-code/miscellaneous/temperature-sensor-ics/microchip-tcn75-i2c-temperature-sensor-driver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maxim DS1307 I2C Real Time Clock Driver</title>
		<link>http://www.embedded-code.com/source-code/miscellaneous/real-time-clock-ics/maxim-ds1307-i2c-real-time-clock-driver</link>
		<comments>http://www.embedded-code.com/source-code/miscellaneous/real-time-clock-ics/maxim-ds1307-i2c-real-time-clock-driver#comments</comments>
		<pubDate>Mon, 05 Apr 2010 13:02:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Real Time Clock IC's]]></category>

		<guid isPermaLink="false">http://www.embedded-code.com/source-code/?p=142</guid>
		<description><![CDATA[[product_image:/images/products/product_free_driver.png] [ProductType:1] (0=normal, 1=free/quick project (must be 1 char) [product_attributes_end] [product_section_start:product_page_section_overview.png] The Dallas Maxim DS1307 is a I2C serial bus real time clock. It provides low power time keeping for embedded designs. [product_section_start:product_info_include_free_driver_top_box] [product_section_start:product_page_section_details.png] This driver provides the following functions: SET REAL TIME CLOCK TIME BYTE rtc_set_time (BYTE *seconds, BYTE *minutes, BYTE *hours, BYTE *day, [...]]]></description>
			<content:encoded><![CDATA[<p>[product_image:/images/products/product_free_driver.png]<br />
[ProductType:1] (0=normal, 1=free/quick project (must be 1 char)<br />
[product_attributes_end]<br />
<span id="more-142"></span></p>
<p>[product_section_start:product_page_section_overview.png]</p>
<p>The Dallas Maxim DS1307 is a I2C serial bus real time clock. It provides low power time keeping for embedded designs.</p>
<p>[product_section_start:product_info_include_free_driver_top_box]</p>
<p>[product_section_start:product_page_section_details.png]</p>
<p>This driver provides the following functions:</p>
<p><span class="code_function_title">SET REAL TIME CLOCK TIME</span><br />
<span class="code_function_definition">BYTE rtc_set_time  (BYTE *seconds, BYTE *minutes, BYTE *hours, BYTE *day, BYTE *date, BYTE *month, BYTE *year)</span><br />
The fields are converted from binary to BCD before being sent to the RTC<br />
All fields are 0 &#8211; #, except day, date and month, which are 1 &#8211; #<br />
Pointers are used for comanilty with rtc_get_time<br />
Uses 24 hour clock mode</p>
<p><span class="code_function_title">GET REAL TIME CLOCK TIME</span><br />
<span class="code_function_definition">BYTE rtc_get_time (BYTE *seconds, BYTE *minutes, BYTE *hours, BYTE *day, BYTE *date, BYTE *month, BYTE *year)</span><br />
Returns<br />
1 if sucessful, 0 if not.<br />
All fields are converted to binary values.<br />
All fields are 0 &#8211; #, except day, date and month, which are 1 &#8211; #<br />
Uses 24 hour clock mode</p>
<p>Please view the sample source code files for full information regarding the driver.</p>
<p>[product_section_start:product_page_section_compilers.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15" align="left" valign="middle"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><img src="/images/compilers/ansi_c_compiler.jpg" border="0" alt="" width="140" height="40" /></div>
</td>
<td class="main"></td>
<td class="main">
<div>This source code product is written in C and has been designed to be used with any ANSI compliant C compiler on any platform. Direct compatibility has been tested with the compilers and processors / microcontrollers listed below. Using the driver with other ANSI compliant C compilers and devices should not present significant problems.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C18 MPLAB C Compiler for PIC18 family of 8 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C30 MPLAB C Compiler for PIC24 family of 16 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="15"></td>
<td width="10"></td>
<td></td>
</tr>
<tr>
<td width="140" height="50" align="center" valign="middle">
<div><a href="http://www.microchip.com/" target="_blank"><img src="/images/compilers/microchip_small_logo.gif" border="0" alt="" width="37" height="39" /></a></div>
</td>
<td class="main"></td>
<td class="main">
<div>Tested with the Microchip C32 MPLAB C Compiler for PIC32 family of 32 bit microcontrollers. Free version of the compiler available from Microchip.</div>
</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_page_section_project_files.png]</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/Generic_Header_File/EC/main.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download our generic header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/RTC/Maxim_DS1307-EC/rtc-ds1307.h" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .h header file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/RTC/Maxim_DS1307-EC/rtc-ds1307.c" target="_blank"><img src="/images/icons/download_file.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download driver .c code file</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td height="6"></td>
<td></td>
</tr>
<tr>
<td width="60" align="left" valign="middle">
<div><a href="http://dl.dropbox.com/u/20637505/_Programming/C_Lib/RTC/Maxim_DS1307-EC/DS1307.pdf" target="_blank"><img src="/images/icons/download_datasheet.png" border="0" alt="" width="36" height="36" /></a></div>
</td>
<td class="main">Download DS1307 datasheet</td>
</tr>
</tbody>
</table>
<p>[product_section_start:product_info_include_free_driver]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.embedded-code.com/source-code/miscellaneous/real-time-clock-ics/maxim-ds1307-i2c-real-time-clock-driver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

