microchipc.com - information about domain
- Server Status: available
- Server IP: 208.94.146.81
- Server Response Time: 246ms
Site title
Program Microchip PIC micros with C - sample source code, FAQ and more
Alexa information
Alexa rank: 904,185
Rank Trend
Bounce Trend
DNS Information
| Host: | Class: | Type: | IP: | TTL: | Target: | Other: |
| microchipc.com | IN | SOA | 86400 | mname: ns0.dnsmadeeasy.com rname: dns.dnsmadeeasy.com serial: 2006010157 refresh: 43200 retry: 3600 expire: 1209600 minimum-ttl: 180 |
||
| microchipc.com | IN | MX | 1800 | mx3.dnsmadeeasy.com | pri: 40 | |
| microchipc.com | IN | MX | 1800 | www.microchipc.com | pri: 10 | |
| microchipc.com | IN | MX | 1800 | mx1.dnsmadeeasy.com | pri: 20 | |
| microchipc.com | IN | MX | 1800 | mx2.dnsmadeeasy.com | pri: 30 | |
| microchipc.com | IN | A | 208.94.146.80 | 3600 | ||
| microchipc.com | IN | A | 208.94.146.81 | 3600 | ||
| microchipc.com | IN | A | 208.94.146.70 | 3600 | ||
| microchipc.com | IN | A | 208.94.146.71 | 3600 | ||
| microchipc.com | IN | NS | 86400 | ns3.dnsmadeeasy.com | ||
| microchipc.com | IN | NS | 86400 | ns1.dnsmadeeasy.com | ||
| microchipc.com | IN | NS | 86400 | ns4.dnsmadeeasy.com | ||
| microchipc.com | IN | NS | 86400 | ns2.dnsmadeeasy.com | ||
| microchipc.com | IN | NS | 86400 | ns0.dnsmadeeasy.com |
Server Location
Site source
Show / hide source
<html><!-- #BeginTemplate "/Templates/template neo.dwt" --><!-- DW6 -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>Program Microchip PIC micros with C - sample source code, FAQ and more</title><!-- #EndEditable -->
<link rel="stylesheet" href="/inc/screen.css" type="text/css">
<LINK REL="SHORTCUT ICON" HREF="http://www.microchipc.com/icon.ico">
<link rel="stylesheet" href="/p7tm/p7tmcoollines.css" type="text/css">
<script type="text/javascript" src="/p7tm/p7tmscripts.js"></script>
</head>
<body onLoad="P7_TMopen()">
<!-- include this function between <body> and </body> of the html document -->
<link rel="stylesheet" type="text/css" href="/inc/screen.css" media="screen" />
<a name="top"></a>
<table width="980" height="90" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="42%" align="left" valign="top" bordercolor="#0000FF"> <font face="Verdana, Arial, Helvetica, sans-serif" size="3"><strong><a href="/"><img src="/images-menu/logo-neo.gif" width="638" height="89" border="0"></a></strong></font></td>
<td width="58%" align="left" valign="top" bordercolor="#0000FF"><br> <table width="240" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td height="32" nowrap="nowrap">
<input type="hidden" name="domains" value="www.microchipC.com"></input>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
</td></tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input name="sitesearch" type="hidden" value="www.microchipC.com">
</input>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Search this site (www.microchipC.com).</font></td>
<td>
<input type="hidden" name="sitesearch" value=""></input></td>
</tr>
</table>
<input type="hidden" name="client" value="pub-5376348223598630"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input></td></tr></table>
</form> </td>
</tr>
<TR>
<TD class=menu1> </TD>
<TD> </TD>
<TD> </TD>
</TR>
</table> </td>
</tr>
<tr>
<td colspan="2" align="left" valign="top" bordercolor="#0000FF">
<div class="c_dotted_line">
<!-- #BeginLibraryItem "/Library/Adsense banner.lbi" --><p>
<script type="text/javascript"><!--
google_ad_client = "pub-5376348223598630";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br><br></p><!-- #EndLibraryItem -->
</div>
</td>
</tr>
</table>
<br>
<table width="985" height="1" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="22%" align="left" valign="top" bordercolor="#0000FF"><link rel="stylesheet" href="/p7tm/p7tmcoollines.css" type="text/css">
<script type="text/javascript" src="/p7tm/p7tmscripts.js"></script>
<body onLoad="P7_TMopen()"><table width="100%" height="1" align="center" cellpadding="0" summary="Layout Table">
<tr valign="top"><td width="220"><div id="p7TMctrl"><p><a href="#" onClick="P7_TMall(0);return false">Expand All</a> | <a href="#" onClick="P7_TMall(1);return false">Collapse All</a></p>
</div>
<div id="p7TMnav">
<div><a href="/index.php">Home</a></div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC Code in C (55)</a>
<div><a href="/sourcecode/">Index</a></div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC16Fx code in C (2)</a>
<div><a href="/sourcecode/#bootloader">PIC16F87x bootloader</a></div>
<div><a href="/sourcecode/#delay16x">Delay routines</a></div>
<div><a href="/sourcecode/#crc">CRC routines in C</a></div>
<div><a href="/sourcecode/#interface">EEPROM, I2C, A/D, D/A</a></div>
<div><a href="/sourcecode/#more">More ...</a></div>
</div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC18Fx code in C (2)</a>
<div><a href="/sourcecode/#delay18x">Delay routines</a></div>
<div><a href="#bootloader">PIC18Fx52 bootloader</a></div>
<div><a href="/sourcecode/#pic18f4550usb">USB code in C</a></div>
<div><a href="/sourcecode/#crc">CRC routines in C</a></div>
<div><a href="/sourcecode/#interface">EEPROM, I2C, A/D, D/A</a></div>
<div><a href="/sourcecode/#more">More ...</a></div>
</div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ dsPIC30Fx code in C (2)</a>
<div><a href="/sourcecode/#dsPIC_hello_world">Hello World</a></div>
<div><a href="/sourcecode/#dsPIC_RC_pulse">RC Pulse</a></div>
<div><a href="/sourcecode/#more">More ...</a></div>
</div>
<div><a href="/sourcecode/#pic18f4550usb">USB code in C</a></div>
<div><a href="/sourcecode/#crc">CRC routines in C</a></div>
<div><a href="/sourcecode/#interface">EEPROM</a></div>
<div><a href="/sourcecode/#i2c">I2C</a></div>
<div><a href="/sourcecode/#interface">A/D</a></div>
<div><a href="/sourcecode/#interface">D/A</a></div>
<div><a href="/sourcecode/#interface">LCD</a></div>
<div><a href="/sourcecode/#mmc">MMC Card</a></div>
<div><a href="/sourcecode/#PulseMon">Pulse Monitor Project</a></div>
<div><a href="/sourcecode/#triac">Triac Controller Project</a></div>
<div><a href="/sourcecode/#logicgate">PIC12C509 logic gate</a></div>
<div><a href="/sourcecode/#phase">Phase Controller Project</a></div>
<div><a href="/sourcecode/#ds1821">Dallas DS1821 Thermostat</a></div>
<div><a href="/sourcecode/#heater">Heater Project</a></div>
<div><a href="/sourcecode/#multitasking">Multitasking</a></div>
<div><a href="/sourcecode/#samsung_ks0713">Samsung KS0713 driver code</a></div>
<div><a href="/sourcecode/">... and 40 other example projects</a></div>
</div>
<div><a href="/HiTechCFAQ/" onClick="P7_TMenu(this);return false">+ PIC C FAQ (68)</a>
<div><a href="/HiTechCFAQ/">Index</a></div>
<div><a href="/HiTechCFAQ/#_Q.__What">Commonly used features?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127565">How to find suppliers?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127566">How to research?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127500">Available datatypes?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127507">Available datatypes?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127508">Switch bits on and off?</a></div>
<div><a href="/HiTechCFAQ/#_Q._How_do_1">Test bits in a variable?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127509">Divide or multiply by two?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127519">Inline code for functions?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127537">How do I use interrupts?</a></div>
<div><a href="/HiTechCFAQ/#speedupint">Speed up interrupts?</a></div>
<div><a href="/HiTechCFAQ/#exactint">Timing exact intervals?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127550">Delay routines?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127551">Measure the time code takes?</a></div>
<div><a href="/HiTechCFAQ/#_Toc475127553">How do I reset the micro?</a></div>
<div><a href="/HiTechCFAQ/">... the other 50 questions</a></div>
</div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC bootloaders (5)</a>
<div><a href="/pic_bootloader_ds30">Universal PIC bootloader</a></div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC16F87x bootloader</a>
<div><a href="/PIC16bootload/">Index</a></div>
<div><a href="/PIC16bootload/#features">Features</a></div>
<div><a href="/PIC16bootload/#DownloadWindows">Download</a></div>
<div><a href="/PIC16bootload/#troubleshooting">Troubleshooting</a></div>
<div><a href="/PIC16bootload/PIC_bootloader_FAQ.php">FAQ</a></div>
<div><a href="/PIC16bootload/#photos">Photos</a></div>
<div><a href="/PIC16bootload/PIC_bootloader_user_testimonials.php">User Testimonials</a></div>
</div>
<div><a href="/sourcecode/#PIC18F1320_bootloader">PIC18F1320 bootloader</a></div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC18x52 bootloader</a>
<div><a href="/PIC18bootload/">Index</a></div>
</div>
<div><a href="/sourcecode/#dspic_bootloader">dsPIC bootloader</a></div>
</div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC Articles (3)</a>
<div><a href="/Hi-Tech_C_speed_optimization/">Hi-Tech C Speed Optimization</a></div>
<div><a href="/Hi-Tech_C_multitask/">Hi-Tech C Multitasking</a></div>
<div><a href="/make_a_solderless_RS232_crossover_cable/">Solderless RS232 Crossover</a></div>
</div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ PIC tips (7)</a>
<div><a href="/PIC_tips/PIC_tips.php">PIC Tips 0</a></div>
<div><a href="/PIC_tips/PIC_tips_1.php">PIC Tips 1</a></div>
<div><a href="/PIC_tips/PIC_tips_2.php">PIC Tips 2</a></div>
<div><a href="/PIC_tips/PIC_tips_3.php">PIC Tips 3</a></div>
<div><a href="/PIC_tips/PIC_tips_4.php">PIC Tips 4</a></div>
<div><a href="/PIC_tips/PIC_tips_5.php">PIC Tips 5</a></div>
<div><a href="/PIC_tips/PIC_tips_6.php">PIC Tips 6</a></div>
</div>
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ Reviews (7)</a>
<div><a href="/reviews/Lupik_Compiler/">Lupik Compiler</a></div>
<div><a href="/reviews/CCS_C/">CCS C</a></div>
<div><a href="/reviews/DLPdesign/">DLP design</a></div>
<div><a href="/reviews/Hi-Tech_C/">Hi-Tech C PICC16</a></div>
<div><a href="/reviews/Hi-Tech_C_PICC18/">Hi-Tech C PICC18</a></div>
<div><a href="/reviews/PeterAnderson/">Peter Andersons Library</a></div>
<div><a href="/reviews/PIC18_compiler_comparison/">PIC18 Compiler Comparison</a></div>
<div><a href="/reviews/PICALL/">PICALL programmer</a></div>
</div>
<!-- added -->
<div><a href="dummy" onClick="P7_TMenu(this);return false">+ UVa tutorial (2)</a>
<div><a href="/UVa_tutorial_mirror/">UVa tutorial</a></div>
<div><a href="/mingw_tutorial/">MinGW tutorial</a></div>
</div>
<div><a href="/advertise/">Advertise</a></div>
</div></td>
</tr>
</table>
<!-- #BeginEditable "sidebar" -->
<br>
<br>
<!-- #EndEditable --><!--<br /><a href="http://www.kiwacandirect.com/"><img src="/images/kiwacandirect_213x213.jpg" alt="PIC micro parts" border="0" align="top" /></a>
<br />-->
<!--<a href="http://www.dontronics-shop.com/ccs.html"><img src="/images/Dontronics-banner.jpg" width="213" height="213" border="0" /></a><br />-->
<!--<p><a href="http://www.xgamestation.com/view_product.php?id=47"><img src="/images/xgs_pic_banner_213x213_01.jpg" width="213" height="213" border="0" /><br />-->
</a><a href="http://www.ccsinfo.com/microchip_redirect/"><br />
<img src="http://www.ccsinfo.com/images/MicrochipCAdDec.22.08.jpg" alt="CCS C Compiler for Microchip PIC micros" width="213" height="213" border="0" /></a></p>
<p><a href="http://www.techtoys.com.hk/"><img src="/images/Microchipc_TechToys_small.jpg" alt="TechToys advertising" width="213" height="213" border="0" align="top" /></a></p>
<!--<p><a href="http://digitalelectrosoft.com/redirect/"><img src="http://digitalelectrosoft.com/redirect/RealPicSimAdver.gif" width="213" height="213" /></a></p>-->
<!--<p><a href="http://www.haidartechnology.com/"><img src="/images/ezGUI-Lite-Add.jpg" width="213" height="213" border="0" /></a></p>-->
<p><a href="/advertise/"><img src="/images/generic_213x213.gif" alt="Your ad here" border="0" align="top" /></a></p>
</p>
</td>
<td width="1%" rowspan="2" align="left" valign="top" bordercolor="#0000FF"> </td>
<td width="77%" rowspan="2" align="left" valign="top" bordercolor="#0000FF"><!-- #BeginEditable "body" --><table width="232" height="1" border="0" align="right" cellpadding="14" cellspacing="0" bordercolor="#666666">
<tr>
<td align="left" valign="top" bgcolor="#dddddd" bordercolor="#FFFFFF" height="162"><h2>News</h2>
<p><!--. Currently in the process of researching and adding additional PIC source code and reviews to this website.</p>-->
<p>18th July 2011. Added a link to an an <a href="sourcecode/#embedded_pic_programmer">Embedded PIC Programmer</a>, a method of programming a PIC micro from an embedded Linux application.</p>
<p>26th January 2011. Added a link to <a href="http://www.dz863.com/">datasheet zone</a>, one of the best places on the web to download datasheets for integrated circuits.</p>
<p>22rd November 2010. Unfortunately, microchipfault.com had to be discontinued due to StackOverflow changing their business model.</p>
<p>23rd October 2010. Removed dead links. Thanks Isaac Rogers.</p>
<p>27th September 2010. The (admittedly small) advertising profits from this site are now supporting an orphan in Africa.</p>
<p>27th September 2010. New <a href="/PIC18bootload/#PIC18F4525">18F4525 bootloader</a> released.</p>
<p>18th August 2010. New <a href="/PIC18bootload/#python">18Fx52 bootloader client written in Python, for Linux (or Mac)</a>.</p>
<p>19th May 2010. Check out the <a href="http://openpicus.blogspot.com/2010/05/picus-wi-fi-pictures-of-prototype.html">openPICUS wireless platform project</a>.<br>
<br>
12th March 2010. Updated source code.</p>
<p>24th February 2010. <a href="http://www.MicrochipFault.com/">MicrochipFault.com</a> is live. <em>Note: Unfortunately, MicrochipFault.com had to be discontinued due to StackOverflow changing their business model.</em><br>
<br>
10th January 2010. Updated website with review for <a href="/reviews/Lupik_Compiler/">Lupik compiler</a> and <a href="/sourcecode/#dot_factory">The Dot Factory</a>: An LCD Font and Image Generator.</p>
<p>22nd December 2009. Added links to free terminal program, <a href="http://realterm.sourceforge.net/">RealTerm</a>. Highly recommended.</p>
<p>28th September 2009. Added the <a href="/pic_bootloader_ds30">ds30 Loader</a>, a universal PIC bootloader that supports almost every PIC micro, including PIC18F, PIC24F, dsPIC30 and dsPIC33.</p>
<p>1st April 2009. Updated links to <a href="http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx">Portmon</a>, one of the most amazing little utilities to monitor RS232 serial communications occurring in the background. Checked other links.</p>
<p>23rd February 2009. Updated the <a href="/sourcecode/index.php#pic18f4550usb">PIC18F4550 USB serial port</a> to be compatible with Hi-Tech C v9.51PL3.</p>
<p>10th January 2009. <a href="/PIC18bootload/">The PIC18Fx bootloader source code is now freely downloadable</a>.This source code was previously sold for a fee.</p>
<p>8th December 2008. Added the <a href="/UVa_tutorial_mirror/">UVa Online Judge tutorial</a> and <a href="mingw_tutorial/index.php">MinGW tutorial</a>.</p>
<p>10th November 2008. Added a link to <a href="http://www.datasheetdir.com">www.datasheetdir.com</a>. This website has thousands of datasheets, and is maintained by an engineer that has spent 3 years collecting datasheets as a service to the engineering community.</p>
<p>23rd July 2008. HI-TECH Software has released the new PRO ANSI C compiler for Microchip’s PIC32 MCU Family. Supports Omniscient Code Generation<span lang="EN-AU">™</span>. For more details visit the <a href="http://microchip.htsoft.com/products/compilers/pic32.php">PIC32 compiler product web page</a>.</p>
<p>14th May 2008. Added <a href="/innosetup/innosetup_auto_versioning_upgrade.php">InnoSetupAV v1.00</a>, a sample installer script for any Windows based support programs for any embedded work.</p>
<p>13th May 2008. Fixed some broken links in the sourcecode page, unlocking some source code that wasn't previous accessible.</p>
<p>15th April 2008. Free HI-TECH Software PIC32 compiler: time limited offer. See <a href="http://microchip.htsoft.com/portal/pic32_pro">Hi-Tech C compiler offer</a>.</p>
<p>3rd April 2008. HI-TECH C® PRO released for the PIC10/12/16 MCU Family, with Omniscient Code Generation, supporting the PIC10/12/16 MCU Family.<br>
<br>
Details, see <a href="http://www.htsoft.com/forum/all/showflat.php/Cat/0/Number/49102/an/0/page/0#Post49102" target="_blank">the product forum post</a>.</p>
<p>21st February 2008. Release Candidate Testing: HI-TECH Software’s PICC-18 PRO v9.62.</p>
<p>12th February 2008. Beta Release: HI-TECH C PRO for the PIC32 MCU Family. Nearly 50 volunteer testers will, effective week commencing 11 February, put the beta release of <a href="http://microchip.htsoft.com/products/compilers/proforpic32.php" target="_blank">HI-TECH C PRO for the PIC32 MCU Family</a> ANSI C compiler through its paces.</p>
<p>9th January 2008. Added <a href="/sourcecode/#tiny_threads">tiny threads example project</a>.</p>
<p>8th January 2008 . Added <a href="/sourcecode/#interrupt_uart">interrupt driven UART for PIC16x</a>.</p>
<p>3rd January 2008. Added link to <a href="/sourcecode/#minibasic">MiniBasic</a> - includes a <a href="/sourcecode/#minibasic">complete library of example peripheral source code in C, for PIC18, PIC24, PIC32</a>.</p>
<p>30th November 2007. Updated <a href="/sourcecode/#pic18f4550usb">PIC18F4550 example - a Virtual Comm Port (VCP) over USB</a>.</p>
<p>7th November 2007. Microchip has released the PIC32, based on a MIPS core. The "PIC32 Linux challenge" has been laid down, to fit uClinux or Linux into a PIC micro.</p>
<p>22nd August 2007. Added <a href="/sourcecode/#PIC_joystick">PIC JoyStick I/O demonstration project</a>.</p>
<p>22nd August 2007. Added <a href="/sourcecode/#PIC18LF4550_LCD_temp_sensor">PIC18LF4550 plus LCD plus temperature sensor sample project</a>.</p>
<p>8th June 2007. Added <a href="/sourcecode/#hi_tech_c_data_types">data type header for Hi-Tech C</a>. Makes handling of data in Hi-Tech C easier. </p>
<p>4th June 2007. Corrected the delay routines for the PIC18Fx core. </p>
<p>22th January 2007. Added <a href="/sourcecode/#dspic_bootloader">dsPIC bootloader</a>. This bootloader has auto-baud rate detection, and works with any dsPIC via a configurable XML file. </p>
<p>17th January 2007. Added <a href="/sourcecode/#PIC18F1320_bootloader">PIC18F1320 bootloader</a>. </p>
<p>17th January 2007. Added <a href="/sourcecode/#samsung_ks0713">Samsung KS0713 Graphical LCD Driver project</a> for the PIC or dsPIC. </p>
<p>16th January 2007. Added <a href="/sourcecode/#dsPIC_hello_world">dsPIC30Fx source code in C for C30 compiler</a>.</p>
<p>24th Dec 2005. <a href="PIC16bootload/index.htm">PIC16F87x and PIC16F87xA bootloader v9.50 released</a>. Added PICC-LITE compatibility. Many thanks to Nozomu Muto.</p>
<p><a href="news.php">View older news</a>.<br>
<br>
11 Nov 1999 Uploaded first <br>
version of this site to the web.</p></td>
</tr>
</table>
<h1 style="border-bottom:none;">PIC Sample Code in C</h1>
<h2>Brief Site Map<h2>
<span>
<ul>
<li><img src="/images/pick.gif"> <a href="/sourcecode/">C sample source</a> for the PIC micro (55 sample projects).</li>
<li><img src="/images/pick.gif"> <a href="/HiTechCFAQ/">PIC C FAQ (Frequently Asked Questions) page</a> (85 questions).</li>
<li><img src="/images/pick.gif" border="0"> <a href="/pic_bootloader_ds30">ds30 Loader</a>, a universal PIC bootloader.</li>
<li><a href="/sourcecode/#dspic_bootloader">dsPIC bootloader</a>.</li>
<li><a href="/PIC18bootload/">PIC18Fx52 bootloader</a>.</li>
<li><a href="/sourcecode/#PIC18F1320_bootloader">PIC18F1320 bootloader</a>.</li>
<li><a href="/PIC16bootload/">PIC16F876A or PIC16F877A bootloader</a>.</li>
<li>Speed/size <a href="/Hi-Tech_C_speed_optimization/">optimization tips</a> for C on a PIC micro.</li>
<li>... and much, much more!</li>
</ul>
</span>
<h2>PIC C Sample Code</h2>
<p><img src="images/pick.gif"> A huge amount of <a href="/sourcecode/">PIC
sample code in C</a>, over 55 projects. Browse the <a href="/sourcecode/">PIC C sample code
archive</a> here.</p>
<h2>Frequently Asked Questions for Hi-Tech C</h2>
<p><img src="images/pick.gif"> <a href="/HiTechCFAQ/">Hi-Tech
C Frequently Asked Questions</a> with the 65 most commonly asked questions
about Hi-Tech C. </p>
<!--
<h2>Datasheet Links</h2>
<p><a href="http://www.dz863.com/"><img src="/images/ds863.png" alt="DataSheet Zone" align="right"></a>One of the best places to find datasheets on the web is <a href="http://www.dz863.com/">datasheet zone</a>, containing thousands of datasheets from practically every IC manufacturer in existence. Highly recommended.</p>
-->
<h2>ds30 Loader</h2>
<p>Universal PIC bootloader for the PIC18F, PIC24F, PIC24H, dsPIC30F and dsPIC33F from Microchip. 100% open source. View the <a href="/pic_bootloader_ds30">ds30 Loader</a>.</p>
<h2>16F876A or PIC16F877A bootloader</h2>
<p>Download a program into your PIC micro, in-circuit, within seconds via a serial link. Browse to <a href="PIC16bootload/">Shane Tolmies 16F87xA bootloader</a>.</p>
<h2>18F1320 bootloader</h2>
<p>Download a program into your PIC micro, in-circuit, within seconds via a serial link. Browse to <a href="/sourcecode/#PIC18F1320_bootloader">18F1320 bootloader</a>.</p>
<h2>18Fx52 bootloader</h2>
<p>Download a program into your PIC micro, in-circuit, within seconds via a serial link. Browse to <a href="/PIC18bootload/">Shane Tolmies 18Fx52 bootloader</a>.</p>
<h2>dsPIC bootloader</h2>
<p>Download a program into your dsPIC, in-circuit, within seconds via a serial link. This bootloader has auto-baud rate detection, and works with any dsPIC via a configurable XML file. Browse to <a href="/sourcecode/#dspic_bootloader">Ingenia dsPIC bootloader</a>.</p>
<h2>Featured Articles</h2>
<span>
<ul>
<li><a href="/reviews/Lupik_Compiler/"> Review of Lupik compiler</a>, a new compiler for entry level PIC micros.</li>
<li><a href="/reviews/CCS_C/">Review of CCS C</a>, one of the compilers for the PIC micro.</li>
<li><a href="/reviews/Hi-Tech_C_PICC18/">Review of Hi-Tech C for PIC18x</a>,
one of the compilers for the PIC micro.</li>
<li><a href="/conference/">18Fxxx
tutorial</a> with quick start, everything you need to get started on this
platform.</li>
<li>Tool setup tips, optimization tips for C, and much more. A huge
7.6Mb .pdf file - highly recommended. <a href="/conference/">Read</a>. </li>
<li> How to have <a href="/PIC_tips/PIC_tips_6.php">four PIC16F87x</a> chips on one RS232
bus.</li>
<li><a name="article5"></a> "How do I integrate MPLab and an editor such as <a href="/PIC_tips/PIC_tips_5.php">UltraEdit</a>?".</li>
<li><a name="article4"></a>"How
do I measure an <a href="/PIC_tips/PIC_tips_4.php">unknown resistor</a> without
using an A/D port?".</li>
<li><a name="article3"></a> "Why
do I need a common ground point for <a href="/PIC_tips/PIC_tips_3.php">mixed
analogue/digital</a> circuits?".</li>
<li><a name="article2"></a> "If
I had to <a href="/PIC_tips/PIC_tips_2.php">condense 3 years</a> of PIC micro experience
into one page, what would I say?".</li>
<li><a name="article1"></a>A
technique thats resulted in development time shortened by 20% and bugs
reduced by 10%. <a href="/PIC_tips/PIC_tips.php">Read</a>.</li>
<li><a name="article2"></a>Discussion
on the most technically superior way of compiling files under Hi-Tech
C. <a href="/PIC_tips/PIC_tips_1.php">Read</a>.</li>
</ul>
</span>
<h2>18Fxxx Tutorial</h2>
<table width="300" border="0" cellspacing="0" cellpadding="15" align="right" height="100">
<tr>
<td height="241" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1" height="100%">
<tr>
<td bgcolor="#0099FF" height="230"><table width="100%" border="0" cellspacing="0" cellpadding="4" bordercolor="#FF00FF" bgcolor="#CCCCCC" height="100%">
<tr>
<td bgcolor="#FFFFFF" height="262" align="left" valign="top"><p>Hello Shane,<br><br>Saw your bootloader page (WorkingTex) on Sunday, wired the max232 circuit Monday morning at 09:00 AM and had downloaded my first program into an 'F876 by 09:15!!! By the end of the day, I came to realize that this is by far one of the best time savers I've come across in the last 5 years!<br>
Thanks for an extremely detailed description and once again, thank you for making Petr Kolomaznik's small and powerful <a href="PIC16bootload/index.htm">bootloader</a> available.</p>
<p>Fritz Braun Jr.<br>
Melbourne, Fl USA<br>
www.bellsouth.net</p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<p>Everything you need to know to <a href="/conference/">get started
using the 18Fxxx micros with C</a>. Optimization tips, tool setup, and more.</p>
<h2>Hi-Tech C Speed Optimization</h2>
<p><img src="images/pick.gif"> Optimizing your code for
speed and small size in loops in Hi-Tech C. See <a href="/Hi-Tech_C_speed_optimization/">Hi-Tech
C speed optimization tips</a>.</p> <h2><a name="misc"></a>
<a name="reviews"></a>Reviews</h2>
<span>
<ul>
<li><a href="/reviews/Lupik_Compiler/"> Review of Lupik compiler</a>, a new compiler for entry level PIC micros.<a href="reviews/CCS_C/"><br>
</a></li>
<li><a href="reviews/CCS_C/">Review
of CCS C</a>, one of the compilers for the PIC micro.</li>
<li><a href="reviews/Hi-Tech_C_PICC18/">Review
of Hi-Tech C for PIC18x</a>, one of the compilers for the PIC micro.</li>
<li> <img src="images/pick.gif"> Over 19,000 lines of
C sample code for the PIC micro, with 95 projects. Review of <a href="reviews/PeterAnderson">Peter
Andersons PIC C library</a>.</li>
<li><a href="reviews/Hi-Tech_C">Review
of Hi-Tech C for PIC12x, PIC16x</a>, one of the compilers for the PIC
micro.</li>
</ul>
<table width="120" border="0" cellspacing="0" cellpadding="15" align="right" height="100">
<tr>
<td height="13" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="1" height="100%">
<tr>
<td bgcolor="#0099FF" height="59"><table width="100%" border="0" cellspacing="0" cellpadding="4" bordercolor="#FF00FF" bgcolor="#CCCCCC" height="100%">
<tr>
<td bgcolor="#FFFFFF" height="112"><p><p>"Thanks,
you got me up and running quickly!"<br>
<br>
- Sam Douglas.</p></p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<h2>Hi-Tech C Micellaneous </h2>
<ul>
<li><p>How to do simple
but powerful <a
href="Hi-Tech_C_multitask.htm">multitasking with Hi-Tech C</a>. With tutorial
and source code.</p></li>
<li>How to increase your processing speed using the <a href="http://www.intel.com/en_UK/consumer/products/processors/core-family.htm">Intel Core i7 processor</a>. Fly through everything you need to do on your PC, the processor will give you the ultimate performance that you need to perform all of your tasks.<br>
<br>
</li>
<li>
<p>How to use a serial
link for debugging. See <a href="PIC_debug.htm">serial debugging</a>.</p>
</li>
</ul>
</span>
<h2><a name="links"></a>C Links</h2>
<ul><li>
<p><img src="images/pick.gif"> <a href="http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx">PORTMON</a> to monitor serial RS232 and/or LPT comms between other programs. W95/98/NT/2K.
Hooks into operating system to give background monitoring of any comms
on any port.<br>
</p>
</li>
<li>
<p>The <a href="http://openpicus.blogspot.com/2010/05/picus-wi-fi-pictures-of-prototype.html">openPICUS wireless platform project</a>.</p>
</li>
<li>
<p><a href="http://realterm.sourceforge.net/">RealTerm</a>. Free terminal program, excellent design. Recommended.<br>
</p>
</li>
<li>
<p>Hone your C programming skills with the <a href="/UVa_tutorial_mirror/">UVa Online Judge</a>. If you are using Windows, you can use the <a href="/mingw_tutorial/">MinGW Windows tutorial</a> to help prepare programs.</p>
</li>
<li>
<p><a href="http://www.datasheetdir.com">www.datasheetdir.com</a>. This website has thousands of datasheets, and is maintained by an engineer that has spent 3 years collecting datasheets as a service to the engineering community.</p>
</li>
<li>
<p>MiniBasic for PIC32 and PIC18. The source code is open, and written in C, so that you can use it to work out how to talk to virtually any peripheral on a PIC18, PIC24, or PIC32. Ported originally from ARM source code. Download from <a href="http://www.pic32.org/minibasic/">www.pic32.org/minibasic/</a>.</p>
</li>
<li>
<p><a href="http://www.webring.org/cgi-bin/webring?ring=picmicro;list">PICmicro
webring</a> with lots of PIC micro links. </p>
</li>
<li><p>The best Real Time
Operating System (RTOS) for the PIC - Salvo from <a href="http://www.pumpkininc.com/">www.pumpkininc.com</a>.</p> </li>
<li><p>Hi-Tech C source
code for interfacing to a USB device. </p></li>
<li><p><a href="http://www.beyondlogic.org/usbnutshell/usb7.htm#PIC16F876Example">http://www.beyondlogic.org/usbnutshell/usb7.htm#PIC16F876Example</a></p></li>
<li><p><a href="http://www.blitzlogic.com/projects.htm">BlitzLogic</a>,
for a few bits of sample C code and circuits.</p></li>
<li><p><img src="images/pick.gif"> Peter Andersons
home page <a href="http://www.phanderson.com/PIC/">http://www.phanderson.com/PIC/</a> </p>
<ul>
<li><p> My review of <a href="reviews/PeterAnderson/index.htm">Peter Andersons PIC C library</a>.</p><p>Library of PIC
micro C code, see <a href="http://www.phanderson.com/PIC/PICC/index.html">http://www.phanderson.com/PIC/PICC/index.html</a> </p></li>
<li> <p>Items available
from Peter Andersons zShop on Amazon.com. See <a href="http://s1.amazon.com/exec/varzea/ts/my-zshop/S1MOO1JSKHH3LC/002-1673876-5053648">here</a>. </p></li>
</ul>
</li>
<li>PDFqueen is a great search engine for pdf documents, see <a href="http://www.pdfqueen.com/">www.pdfqueen.com</a>.<br>
<br>
</li>
<li>
<p>Ken Boaks page added
covers PICs and telephone circuitry. He has upcoming routines for simple
DTMF dial out, V23 transmission, dial tone sensing, dial tone regeneration,
audio sample record/replay using a 16F877 and 128Kx 8 SRAM, V23 reception
in C on a 16F877, and DTMF reception in firmware on a '877 running at >16MHz. <a href="http://www.geocities.com/kenboak/micros.html">Read</a>.</p>
</li>
<li><p><img src="images/new.gif"> Lots of PIC code in C. <a href="http://www.piclist.com/techref/microchip/language/c/index.htm">http://www.piclist.com/techref/microchip/language/c/index.htm</a></p></li>
<li><p><img src="images/new.gif"> PIC micro code in assembly, see base of EPE mage page, <a href="http://www.epemag.wimborne.co.uk/">http://www.epemag.wimborne.co.uk/</a></p></li>
<li>
<p>Eagle Air Australia,
PIC micro and C, see <a href="http://www.eagleairaust.com.au/sampcode.htm">http://www.eagleairaust.com.au/sampcode.htm</a><a href="http://www.htsoft.com/"><br>
</a></p>
</li>
<li>
<p><a href="http://www.htsoft.com/"> Hi-Tech
C</a>, the C compiler that most of the the code on this site is written for.</p>
</li>
<li><p>CC5X compiler, <a href="http://www.bknd.com/cc5x/index.shtml">http://www.bknd.com/cc5x/index.shtml</a>.</p></li>
<li><p>CC5X compiler example
code, <a href="http://www.bknd.com/cc5x/examples.shtml">http://www.bknd.com/cc5x/examples.shtml</a>. </p></li>
<li><p>PIC C routines for
the C2C compiler. Examples of CRC, I2C, Xmodem, LCD display, A/D and more,
see <a href="http://www.winpenny.cwc.net/index.htm">http://www.winpenny.cwc.net/index.htm</a>.</p></li>
</ul>
<table width="100" border="0" cellspacing="0" cellpadding="15" align="right" height="1">
<tr>
<td height="2" align="left" valign="top"><table width="140" border="0" cellspacing="0" cellpadding="1" height="100">
<tr>
<td bgcolor="#0099FF" height="59" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="4" bordercolor="#FF00FF" bgcolor="#CCCCCC" height="100%">
<tr>
<td bgcolor="#FFFFFF" height="22" align="left" valign="top"><p><p>"I
found this site one of the most helpful on the net regarding
C<br>
development for the PIC family.<br>
Many thanks to the people involved on it!"</p></p>
<p><p>-
Eduardo Robles</p></p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<font face="Arial, Helvetica, sans-serif">
<h2>About
the Author</h2>
<p><br>
Hi,<br>
<br>
I have invested literally thousands of hours in this site, for you, and I sincerely
hope this archive saves you a lot of time and effort.
To enable you to trust what I have written on this site, here is my experience:</p>
</font>
<ul>
<li>
<p>14 years of experience,
10 years of commercial programming in C/C++/C#/PHP/SQL/.NET.</p>
</li>
<li>
<p> 4 years doing an
Electrical Engineering degree at <a
href="http://www.elec.canterbury.ac.nz/">Canterbury University</a>, graduated
with Honours.</p>
</li>
<li><p> 1 year of tutoring
students for a stage 4 electrical engineering design course at university.</p></li>
<li><p>8 years of commercial
programming with PIC micros.</p></li>
<li>
<p>2 years of commercial
programming with ARM and embedded Linux.</p>
</li>
<li><p>4 years of experience
with 8086 assembly.</p></li>
</ul>
<p> Regards,<br>
Shane Tolmie (BEng. Elec. Hons.)<br>
Email:<!-- #BeginLibraryItem "/Library/email.lbi" --> <a href="mailto:support@microchipc.com">support@microchipc.com</a><!-- #EndLibraryItem --></p>
<!-- #EndEditable --> </td>
</tr>
</table>
<table width="985" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<div class="c_dotted_line"></div>
<!-- #BeginLibraryItem "/Library/Adsense banner.lbi" --><p>
<script type="text/javascript"><!--
google_ad_client = "pub-5376348223598630";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br /><br /></p><!-- #EndLibraryItem --><div class="c_dotted_line"></div>
<p>We welcome any suggesions
or comments! Send them to Shane Tolmie on<!-- #BeginLibraryItem "/Library/email.lbi" --> <a href="mailto:support@microchipc.com">support@microchipc.com</a><!-- #EndLibraryItem -->.
This site is a completely separate site to www.microchip.com, and is maintained
independently of Microchip Ltd., manufacturers of the PIC micro.
All code on this site is free for non-commercial use, unless stated otherwise.
Commercial use normally free, however, it is prohibited without contacting<!-- #BeginLibraryItem "/Library/email.lbi" --> <a href="mailto:support@microchipc.com">support@microchipc.com</a><!-- #EndLibraryItem --> for permission.
All content on this site created by Shane Tolmie is copyrighted by Shane Tolmie
1999-2009. Click to <a href="/advertise/">advertise on this website - $29.90 for a banner ad which will reach 55,000 user sessions per month. One months free trial!</a></td>
</tr>
</table>
<!-- Kontera ContentLink(TM);-->
<script type='text/javascript'>
var dc_AdLinkColor = 'blue' ;
var dc_PublisherID = 134533 ;
</script>
<script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'>
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1953415-1";
urchinTracker();
</script></body>
<!-- #EndTemplate --></html>