<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
	<TITLE>16 bits Timers</TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.0.1  (Win32)">
	<META NAME="CREATED" CONTENT="20040513;8581581">
	<META NAME="CHANGED" CONTENT="16010101;0">
</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>16-bit
Timers</B></FONT></FONT></P>
<P STYLE="margin-left: 2cm"><BR><BR>
</P>
<P STYLE="margin-left: 2cm"><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>ST7
derivatives features one or two fully independent 16-bit timers:
TIMERA and TIMERB.  </FONT></FONT>
</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/Timer_Conf_and_Use.gif" NAME="Image4" ALT="Timer 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 configure one of the two 16-bit Timers (either the
				Timer A or B). Checking this option will make the next options
				visible. </FONT></FONT>
				</P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerA_conf_and_use.gif" NAME="Image5" ALT="Timer A, 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 first 16-bit Timer, called Timer A.
				Checking this option will make the other options, relevant for
				the Timer A, to be displayed.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerA_En_OF_Int.gif" NAME="Image6" ALT="Timer A, Enable Overflow Interrupt" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD VALIGN=TOP>
				<P><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">Check
				this option to enable the Timer A Overflow interrupt. An overflow
				occurs when the counter rolls over from FFFFH to 0000H.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerA_En_IC_Int.gif" NAME="Image7" ALT="Timer A, Enable Input Capture Interrupt" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD VALIGN=TOP>
				<P><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">Check
				this option to enable the Timer A Input Capture Interrupt.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
<CENTER>
	<TABLE WIDTH=90% BORDER=0 CELLPADDING=0 CELLSPACING=0>
		<COL WIDTH=26*>
		<COL WIDTH=204*>
		<COL WIDTH=26*>
		<TR>
			<TD COLSPAN=3 WIDTH=100% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><IMG SRC="../images/TimerA_En_OC_Int.gif" NAME="Image8" ALT="Timer A, Enable Output Compare Interrupt" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN=3 WIDTH=100% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>Select
				the ouput compare mode to use with the Timer A. The mode can be
				selected between:</FONT></FONT></P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD ROWSPAN=3 WIDTH=10%></TD>
			<TD WIDTH=80%>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>1-
				Disabled</FONT></FONT></P>
			</TD>
			<TD ROWSPAN=3 WIDTH=10%></TD>
		</TR>
		<TR>
			<TD WIDTH=80% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>2-
				Enabled with interrupts</FONT></FONT></P>
			</TD>
		</TR>
		<TR>
			<TD WIDTH=80% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>3-
				Enabled without interrupts</FONT></FONT></P>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN=3 WIDTH=100% VALIGN=TOP></TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerA_Clock_Conf.gif" NAME="Image9" ALT="Timer A, Clock Configuration" 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>Select
				the Timer A clock to f<FONT SIZE=1>cpu</FONT>/2, f<FONT SIZE=1>cpu</FONT>/4
				or f<FONT SIZE=1>cpu</FONT>/8.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerB_conf_and_use.gif" NAME="Image10" ALT="Timer B, 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 second 16-bit Timer, called Timer B.
				Checking this option will make the other options, relevant for
				the Timer B, to be displayed. </FONT></FONT>
				</P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerB_En_OF_Int.gif" NAME="Image11" ALT="Timer B, Enable Overflow Interrupt" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD VALIGN=TOP>
				<P><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">Check
				this option to enable the Timer B Overflow Interrupt.</FONT></FONT><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">
				An overflow occurs when the counter rolls over from FFFFH to
				0000H.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerB_En_IC_Int.gif" NAME="Image12" ALT="Timer B, Enable Input Capture Interrupt" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD VALIGN=TOP>
				<P><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif">Check
				this option to enable the Timer B Input Capture Interrupt.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><BR>
</P>
<CENTER>
	<TABLE WIDTH=90% BORDER=0 CELLPADDING=0 CELLSPACING=0>
		<COL WIDTH=26*>
		<COL WIDTH=204*>
		<COL WIDTH=26*>
		<TR>
			<TD COLSPAN=3 WIDTH=100% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2><IMG SRC="../images/TimerB_En_OC_Int.gif" NAME="Image13" ALT="Timer B, Enable Output Compare Interrupt" ALIGN=BOTTOM WIDTH=225 HEIGHT=20 BORDER=0>
				</FONT></FONT>
				</P>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN=3 WIDTH=100% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>Select
				the ouput compare mode to use with the Timer B. The mode can be
				selected between:</FONT></FONT></P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD ROWSPAN=3 WIDTH=10%></TD>
			<TD WIDTH=80%>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>1-
				Disabled</FONT></FONT></P>
			</TD>
			<TD ROWSPAN=3 WIDTH=10%></TD>
		</TR>
		<TR>
			<TD WIDTH=80% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>2-
				Enabled with interrupts</FONT></FONT></P>
			</TD>
		</TR>
		<TR>
			<TD WIDTH=80% VALIGN=TOP>
				<P><FONT FACE="Helvetica, Arial, sans-serif"><FONT SIZE=2>3-
				Enabled without interrupts</FONT></FONT></P>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN=3 WIDTH=100% VALIGN=TOP></TD>
		</TR>
	</TABLE>
</CENTER>
<P STYLE="margin-bottom: 0cm"><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/TimerB_Clock_Conf.gif" NAME="Image14" ALT="Timer B, Clock Configuration" 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>Select
				the Timer B clock to f<FONT SIZE=1>cpu</FONT>/2, f<FONT SIZE=1>cpu</FONT>/4
				or f<FONT SIZE=1>cpu</FONT>/8.</FONT></FONT></P>
			</TD>
		</TR>
	</TABLE>
</CENTER>
<P><FONT SIZE=2><FONT FACE="Helvetica, Arial, sans-serif"><BR><BR><BR><BR><BR><IMG SRC="../images/pieddepage.gif" NAME="Image15" ALIGN=BOTTOM WIDTH=541 HEIGHT=39 BORDER=0>
<BR><BR><BR><BR><BR><BR><BR></FONT></FONT><BR><BR><BR><BR><BR><BR><BR>
</P>
</BODY>
</HTML>