<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
	<TITLE>IOs</TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.0.1  (Win32)">
	<META NAME="CREATED" CONTENT="20050302;14264568">
	<META NAME="CHANGED" CONTENT="20050302;14493949">
</HEAD>
<BODY LANG="fr-FR">
<P STYLE="margin-bottom: 0cm"><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif"><A HREF="javascript:history.go(-1)"><IMG SRC="../images/back.gif" NAME="Image1" ALT="Back" ALIGN=MIDDLE HSPACE=5 WIDTH=37 HEIGHT=44 BORDER=0></A><A HREF="javascript:history.go(-1)">
</A>
<A HREF="../summary.html"><IMG SRC="../images/sommaire.gif" NAME="Image2" ALT="Summary" ALIGN=MIDDLE HSPACE=5 WIDTH=37 HEIGHT=44 BORDER=0></A><A HREF="../summary.html">
</A><BR><IMG SRC="../images/entete.gif" NAME="Image3" ALIGN=BOTTOM WIDTH=541 HEIGHT=13 BORDER=0>
</FONT></FONT>
</P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><B>IOs</B></FONT></FONT></P>
<P><BR><BR>
</P>
<CENTER>
	<TABLE WIDTH=90% BORDER=0 CELLPADDING=0 CELLSPACING=0>
		<TR>
			<TD WIDTH=30 VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><IMG SRC="../images/IO_conf_and_use.gif" NAME="Image4" ALT="IOs Configure and Use" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>Check
				this option to use the IOs. Checking this option will make the
				other option to be displayed. If this option is not checked, you
				will not be able to configure or use IOs.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P><BR><BR>
</P>
<CENTER>
	<TABLE WIDTH=90% BORDER=0 CELLPADDING=0 CELLSPACING=0>
		<TR>
			<TD WIDTH=30 VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><IMG SRC="../images/IO_gen_sample_code.gif" NAME="Image5" ALT="IOs Generate Sample Code" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD VALIGN=TOP>
				<P><IMG SRC="IOSample.jpg" NAME="Image9" ALIGN=LEFT WIDTH=224 HEIGHT=154 BORDER=0><BR CLEAR=LEFT><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">Check
				this option if you want <I>RBuilder</I> to generate an example of
				source code using the IOs. The code will be inserted in the main
				function. This is useful to see how the <I>ST7 library</I> must
				be used.<BR>To make this example working with REva (whatever the
				daugther board), you need to set the &laquo;&nbsp;enabling&nbsp;&raquo;
				jumpers (<FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">blue
				on the picture below)</FONT></FONT> for the LEDs and also for
				INPUTs  (red). Then, if you change the position of the DIP-switch
				(or if you push a button), the LEDs lighting will change
				accordingly.<BR> <BR><FONT COLOR="#00ae00">Note: depending on the
				microcontroller, two pins of the ouput port could be reserved for
				ICC (debugging/programming port). <BR>RBuilder will automatically
				reserve these pins (and the LEDs will not react when modifying
				the input).</FONT></FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><BR><BR>The
following ports can be configured by <I>RBuilder</I>:</FONT></FONT></P>
<CENTER>
	<TABLE WIDTH=70% BORDER=0 CELLPADDING=0 CELLSPACING=0>
		<TR VALIGN=TOP>
			<TD>
				<UL>
					<LI><P STYLE="margin-bottom: 0cm"><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">PORT
					A</FONT></FONT> 
					</P>
					<LI><P STYLE="margin-bottom: 0cm"><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">PORT
					B</FONT></FONT> 
					</P>
					<LI><P STYLE="margin-bottom: 0cm"><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">PORT
					C</FONT></FONT> 
					</P>
					<LI><P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>PORT
					D</FONT></FONT></P>
				</UL>
			</TD>
			<TD>
				<UL>
					<LI><P STYLE="margin-bottom: 0cm"><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">PORT
					E</FONT></FONT> 
					</P>
					<LI><P STYLE="margin-bottom: 0cm"><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">PORT
					F</FONT></FONT> 
					</P>
					<LI><P STYLE="margin-bottom: 0cm"><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">PORT
					G</FONT></FONT> 
					</P>
					<LI><P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>PORT
					H</FONT></FONT></P>
				</UL>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><BR>The
configuration of those ports is presented in a tree as shown in the
following picture.</FONT></FONT></P>
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><IMG SRC="../Images/IOs_tree.gif" NAME="Image6" ALT="IO Port configuration" ALIGN=BOTTOM WIDTH=154 HEIGHT=194 BORDER=0>
</FONT></FONT>
</P>
<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><BR>For
each of those ports, pins 0 to 7 can be configured individually
according the following option. (Note that only pin 0 of PORT H has
been represented but all pins of all ports are available)</FONT></FONT></P>
<CENTER>
	<TABLE WIDTH=90% BORDER=0 CELLPADDING=0 CELLSPACING=0>
		<COL WIDTH=38*>
		<COL WIDTH=177*>
		<COL WIDTH=2*>
		<COL WIDTH=38*>
		<TR>
			<TD COLSPAN=4 WIDTH=100% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><IMG SRC="../Images/IO_pin_conf.gif" NAME="Image7" ALT="IOs Generate Sample Code" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN=4 WIDTH=100% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>Individual
				pins of each port can be configured according to the following
				options:</FONT></FONT></P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD ROWSPAN=6 WIDTH=15%></TD>
			<TD WIDTH=69%>
				<P ALIGN=LEFT><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>INPUT
				(floating)</FONT></FONT></P>
			</TD>
			<TD WIDTH=1%>
				<P><BR>
				</P>
			</TD>
			<TD ROWSPAN=6 WIDTH=15%></TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=69%>
				<P ALIGN=LEFT><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>INPUT
				(pull-up)</FONT></FONT></P>
			</TD>
			<TD WIDTH=1%>
				<P><BR>
				</P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=69%>
				<P ALIGN=LEFT><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>OUTPUT
				(open-drain)</FONT></FONT></P>
			</TD>
			<TD WIDTH=1%>
				<P><BR>
				</P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=69%>
				<P ALIGN=LEFT><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>OUTPUT
				(push-pull)</FONT></FONT></P>
			</TD>
			<TD WIDTH=1%>
				<P><BR>
				</P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=69%>
				<P ALIGN=LEFT><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>INPUT
				(pull-up interrupt)</FONT></FONT></P>
			</TD>
			<TD WIDTH=1%>
				<P><BR>
				</P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=69%>
				<P ALIGN=LEFT><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>INPUT
				(floating interrupt)</FONT></FONT></P>
			</TD>
			<TD WIDTH=1%>
				<P><BR>
				</P>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN=4 WIDTH=100% VALIGN=TOP>
				<P><BR>
				</P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P><BR><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif"><FONT COLOR="#009900">Note:
in a few cases, a wrong option list can be displayed for a pin. For
example, Port A Pin 7 of ST72F324 derivative can be configured as a
floating input or true open-drain output but in its case, <I>Rbuilder</I>&nbsp;
displays the following options : INPUT (floating), INPUT (pull-up),
OUTPUT (open-drain) and OUTPUT (push-pull).</FONT></FONT></FONT><BR><BR><BR><IMG SRC="../images/pieddepage.gif" NAME="Image8" ALIGN=BOTTOM WIDTH=541 HEIGHT=39 BORDER=0>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
</P>
</BODY>
</HTML>