<?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>Beginner Micro &#187; PICC</title>
	<atom:link href="http://beginnermicro.com/tag/picc/feed/" rel="self" type="application/rss+xml" />
	<link>http://beginnermicro.com</link>
	<description></description>
	<lastBuildDate>Mon, 17 May 2010 15:32:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Hello World for your PICKit 2</title>
		<link>http://beginnermicro.com/blog/hello-world-for-your-pickit-2/</link>
		<comments>http://beginnermicro.com/blog/hello-world-for-your-pickit-2/#comments</comments>
		<pubDate>Thu, 21 May 2009 21:02:32 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[C Programming]]></category>
		<category><![CDATA[PICC]]></category>
		<category><![CDATA[led]]></category>
		<category><![CDATA[pickit 2]]></category>

		<guid isPermaLink="false">http://beginnermicro.com/?p=354</guid>
		<description><![CDATA[If you need a little help getting your PicKit 2TM LED&#8217;s to blink, here&#8217;s a little program that will get you started.  You&#8217;ll see after you run it that I&#8217;ve toggled all 4 of the LED&#8217;s in two different sequences.  You can play with the different outputs and durations to get familiar with how this is [...]]]></description>
			<content:encoded><![CDATA[<p>If you need a little help getting your PicKit 2<sup>TM</sup> LED&#8217;s to blink, here&#8217;s a little program that will get you started.  You&#8217;ll see after you run it that I&#8217;ve toggled all 4 of the LED&#8217;s in two different sequences.  You can play with the different outputs and durations to get familiar with how this is done in C.  I&#8217;m using PICC Lite here so don&#8217;t forget to &#8220;include&#8221; the pic.h file into MPLAB<sup>TM</sup>, otherwise it won&#8217;t work. </p>
<p>#include &lt;pic.h&gt;<br />
 __CONFIG(FCMDIS &amp; IESODIS &amp; BORDIS &amp; UNPROTECT &amp; MCLRDIS &amp; PWRTEN &amp; WDTDIS &amp; INTIO);<br />
int i;<br />
int j;<br />
main()<br />
{<br />
PORTC = 0;<br />
TRISC0 = 0;<br />
TRISC1 = 0;<br />
TRISC2 = 0;<br />
TRISC3 = 0;<br />
 j=0;<br />
 while (j&lt;3)<br />
 {<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC0 = 0;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC0 = 1;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC1 = 0;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC1 = 1;<br />
      for (i = 0; i &lt; 5500; i++);<br />
          RC2 = 0;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC2 = 1;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC3 = 0;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC3 = 1;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC2 = 0;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC2 = 1;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC1 = 0;<br />
     for (i = 0; i &lt; 5500; i++);<br />
          RC1 = 1;<br />
     j=j+1;<br />
 }</p>
<p>j=0;<br />
while (j&lt;5)<br />
{<br />
     for (i = 0; i &lt; 8500; i++);<br />
          PORTC=0b001001;<br />
     for (i = 0; i &lt; 8500; i++);<br />
          PORTC=0b000110;<br />
     for (i = 0; i &lt; 8500; i++);<br />
          PORTC=0b001001;<br />
     for (i = 0; i &lt; 8500; i++);<br />
          PORTC=0b000110;<br />
j=j+1;<br />
}</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://beginnermicro.com/blog/hello-world-for-your-pickit-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

