<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="index_files/filelist.xml">
<link rel=Edit-Time-Data href="index_files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>PIC32 MPLAB Assembly Code Examples</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>Microchip</o:Author>
  <o:LastAuthor>Chinmay Patel</o:LastAuthor>
  <o:Revision>67</o:Revision>
  <o:TotalTime>702</o:TotalTime>
  <o:Created>2007-04-05T22:08:00Z</o:Created>
  <o:LastSaved>2007-11-02T00:06:00Z</o:LastSaved>
  <o:Pages>1</o:Pages>
  <o:Words>176</o:Words>
  <o:Characters>1004</o:Characters>
  <o:Company>Microchip Technology Inc</o:Company>
  <o:Lines>8</o:Lines>
  <o:Paragraphs>2</o:Paragraphs>
  <o:CharactersWithSpaces>1178</o:CharactersWithSpaces>
  <o:Version>11.8132</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>BestFit</w:Zoom>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]--><!--[if !mso]><object
 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
<style>
<!--dl
	{list-style-position:outside;}
dt
	{list-style-position:outside;}
ol
	{list-style-position:outside;}
ul
	{list-style-position:outside;}
li
	{list-style-position:outside;}
dd
	{list-style-position:outside;}

 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
h1
	{margin-top:12.0pt;
	margin-right:0pt;
	margin-bottom:3.0pt;
	margin-left:21.6pt;
	text-indent:-21.6pt;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:1;
	tab-stops:list 21.6pt;
	font-size:14.0pt;
	font-family:Arial;
	font-weight:bold;}
h2
	{margin-top:12.0pt;
	margin-right:0pt;
	margin-bottom:3.0pt;
	margin-left:28.8pt;
	text-indent:-28.8pt;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:2;
	tab-stops:list 28.8pt;
	font-size:12.0pt;
	font-family:Arial;
	font-weight:bold;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
p
	{mso-margin-top-alt:auto;
	margin-right:0pt;
	mso-margin-bottom-alt:auto;
	margin-left:0pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
pre
	{margin:0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
	background:white;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";
	color:black;}
p.heading0, li.heading0, div.heading0
	{mso-style-name:heading0;
	mso-margin-top-alt:auto;
	margin-right:0pt;
	mso-margin-bottom-alt:auto;
	margin-left:0pt;
	mso-pagination:widow-orphan;
	font-size:14.0pt;
	font-family:Arial;
	mso-fareast-font-family:"Times New Roman";
	font-weight:bold;}
span.highlight
	{mso-style-name:highlight;
	mso-ansi-font-size:14.5pt;
	mso-bidi-font-size:14.5pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:blue;
	background:white;
	font-weight:bold;}
span.heading01
	{mso-style-name:heading01;
	mso-ansi-font-size:14.0pt;
	mso-bidi-font-size:14.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:black;
	background:white;
	font-weight:bold;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0pt 5.4pt 0pt 5.4pt;
	mso-para-margin:0pt;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
table.MsoTableContemporary
	{mso-style-name:"Table Contemporary";
	mso-tstyle-rowband-size:1;
	mso-tstyle-colband-size:0;
	mso-padding-alt:0pt 5.4pt 0pt 5.4pt;
	mso-border-insideh:2.25pt solid white;
	mso-border-insidev:2.25pt solid white;
	mso-para-margin:0pt;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
table.MsoTableContemporaryFirstRow
	{mso-style-name:"Table Contemporary";
	mso-table-condition:first-row;
	mso-tstyle-shading:white;
	mso-tstyle-pattern:gray-20 black;
	mso-tstyle-diagonal-down:0pt none windowtext;
	mso-tstyle-diagonal-up:0pt none windowtext;
	color:windowtext;
	mso-ansi-font-weight:bold;
	mso-bidi-font-weight:bold;}
table.MsoTableContemporaryOddRow
	{mso-style-name:"Table Contemporary";
	mso-table-condition:odd-row;
	mso-tstyle-shading:white;
	mso-tstyle-pattern:gray-5 black;
	mso-tstyle-diagonal-down:0pt none windowtext;
	mso-tstyle-diagonal-up:0pt none windowtext;
	color:windowtext;}
table.MsoTableContemporaryEvenRow
	{mso-style-name:"Table Contemporary";
	mso-table-condition:even-row;
	mso-tstyle-shading:white;
	mso-tstyle-pattern:gray-20 black;
	mso-tstyle-diagonal-down:0pt none windowtext;
	mso-tstyle-diagonal-up:0pt none windowtext;
	color:windowtext;}
table.MsoTableGrid
	{mso-style-name:"Table Grid";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	border:solid windowtext 1.0pt;
	mso-border-alt:solid windowtext .5pt;
	mso-padding-alt:0pt 5.4pt 0pt 5.4pt;
	mso-border-insideh:.5pt solid windowtext;
	mso-border-insidev:.5pt solid windowtext;
	mso-para-margin:0pt;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]--><!-------------------- HEAD --------------------------------------------><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="35842"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=blue style='tab-interval:36.0pt'>

<div class=Section1>

<div>

<p class=MsoNormal><b><span style='font-size:14.0pt;font-family:Arial;
color:black'><a href="http://www.microchip.com/" title=www.Microchip.com><span
style='color:black;text-decoration:none;text-underline:none'><img border=0
width=152 height=42 id="_x0000_i1025" src=MicrochipLogo.gif></span></a><br>
</span></b><span class=highlight><span style='font-size:17.0pt'>Assembly Code
Examples</span></span><b><span style='font-size:14.0pt;font-family:Arial;
color:black'> <o:p></o:p></span></b></p>

</div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Arial;color:black'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:black'>This
directory contains MPLAB Assembly language code examples. This directory may
contain more than one code example. Each code example directory contains
complete source code and MPLAB project files. In addition, it also contains a <i
style='mso-bidi-font-style:normal'>build.bat</i> file to build the project from
the command-line. There is also a <i style='mso-bidi-font-style:normal'>build_all.bat</i>
file at the top level to build all examples at once from the command-line. The remainder
of this document provides a brief overview of each example.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;color:black'><o:p>&nbsp;</o:p></span></p>

<h1><a name="_Assembly_Language_Examples"></a>Assembly Language Examples </h1>

<table class=MsoTableContemporary border=0 cellspacing=0 cellpadding=0
 style='border-collapse:collapse;mso-yfti-tbllook:480;mso-padding-alt:0pt 5.4pt 0pt 5.4pt'>
 <tr style='mso-yfti-irow:-1;mso-yfti-firstrow:yes'>
  <td width=148 valign=top style='width:110.7pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  background:#CCCCCC;mso-shading:white;mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:1'><b>Topic<o:p></o:p></b></p>
  </td>
  <td width=148 valign=top style='width:111.3pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-left-alt:solid white 2.25pt;background:#CCCCCC;mso-shading:white;
  mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:1'><b>Example Name<o:p></o:p></b></p>
  </td>
  <td width=186 valign=top style='width:139.8pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-left-alt:solid white 2.25pt;background:#CCCCCC;mso-shading:white;
  mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:1'><b>Path<o:p></o:p></b></p>
  </td>
  <td width=285 valign=top style='width:213.8pt;border:none;border-bottom:solid white 2.25pt;
  mso-border-left-alt:solid white 2.25pt;background:#CCCCCC;mso-shading:white;
  mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:1'><b>Description<o:p></o:p></b></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:0'>
  <td width=148 valign=top style='width:110.7pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;background:#F2F2F2;mso-shading:white;
  mso-pattern:gray-5 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:64'>Simple Freestanding Assembly
  Program</p>
  </td>
  <td width=148 valign=top style='width:111.3pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;mso-border-left-alt:solid white 2.25pt;
  background:#F2F2F2;mso-shading:white;mso-pattern:gray-5 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:64'><a href="ports_control">ports_control</a></p>
  </td>
  <td width=186 valign=top style='width:139.8pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;mso-border-left-alt:solid white 2.25pt;
  background:#F2F2F2;mso-shading:white;mso-pattern:gray-5 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:64'>ports_control</p>
  </td>
  <td width=285 valign=top style='width:213.8pt;border:none;border-bottom:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;mso-border-left-alt:solid white 2.25pt;
  background:#F2F2F2;mso-shading:white;mso-pattern:gray-5 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:64'>Shows a simple freestanding
  assembly program and controls an I/O port</p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'>
  <td width=148 valign=top style='width:110.7pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;background:#CCCCCC;mso-shading:white;
  mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:128'>Interrupt Handler in Assembly
  Program</p>
  </td>
  <td width=148 valign=top style='width:111.3pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;mso-border-left-alt:solid white 2.25pt;
  background:#CCCCCC;mso-shading:white;mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:128'><a href="core_timer_interrupt">core_timer_interrupt</a></p>
  </td>
  <td width=186 valign=top style='width:139.8pt;border-top:none;border-left:
  none;border-bottom:solid white 2.25pt;border-right:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;mso-border-left-alt:solid white 2.25pt;
  background:#CCCCCC;mso-shading:white;mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:128'>core_timer_interrupt</p>
  </td>
  <td width=285 valign=top style='width:213.8pt;border:none;border-bottom:solid white 2.25pt;
  mso-border-top-alt:solid white 2.25pt;mso-border-left-alt:solid white 2.25pt;
  background:#CCCCCC;mso-shading:white;mso-pattern:gray-20 black;padding:0pt 5.4pt 0pt 5.4pt'>
  <p class=MsoNormal style='mso-yfti-cnfc:128'>Shows how to declare an
  interrupt handler and control core-timer interrupt</p>
  </td>
 </tr>
</table>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:Arial;color:black'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><span style='font-size:8.0pt;font-family:Arial;color:black;
background:white'>Microchip Technology Inc. <st1:address w:st="on"><st1:Street
 w:st="on">2355 W. Chandler Blvd.</st1:Street> <st1:City w:st="on">Chandler</st1:City>,
 <st1:State w:st="on">AZ</st1:State> <st1:PostalCode w:st="on">85224</st1:PostalCode></st1:address>
</span><span style='font-size:10.0pt;font-family:Arial;color:black'><o:p></o:p></span></p>

</div>

</body>

</html>
