⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clock3.htm

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="book_html">
<meta name="LASTUPDATED" content="12/01/03 14:15:12">
<title>9.2 The ST20 timers on the ST20C2</title>

<STYLE TYPE="text/css">
<!--
	span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>

</head>

<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">

<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>

<table width="331" border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="os20toc.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"> </a></td>
    <td><a href="clock2.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="clock4.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"> </a></td>
    <td><a href="os20ix.htm"><img src="images/navidx.gif" width="84" height="23"
    border="0" alt="INDEX"> </a></td>
  </tr>
</table>

<p><br clear="all">
</p>

<hr align="left">

<blockquote>
<h2>
  <a name="1204472"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">9.2 	 The ST20 timers on the ST20C2</font>
</h2><hr>


<p>
  <a name="1204473"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The ST20C2 processor has two on-chip real-time 32-bit clocks, called timers, one with low resolution and one with high resolution. The following details are relevant for some ST20C2 devices. You should check the figures given in the device datasheet as the timing values vary with different processor revisions.</font>
</p>


<p>
  <a name="1204474"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The low resolution clock can be used for timing periods up to approximately 38 hours, with a resolution of 64 <font  face="Symbol">m</font>sec. The low resolution clock is accessed by low priority tasks. The high resolution clock can be used for timing periods up to approximately half an hour with a resolution of 1 <font  face="Symbol">m</font>sec. The high resolution clock is accessed by high priority tasks. Longer periods can be timed with either timer by explicitly incrementing a counter.</font>
</p>


<p>
  <a name="1204475"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The clocks start at an undefined value and wrap round to 0 on the next tick after 0xFFFF燜FFF, or, if treated as signed, to the most negative integer on the next tick after the most positive integer. The tick rate of the clocks is derived from the processor input <span class=Signal>ClockIn</span>, and the speed and accuracy depends on the speed and accuracy of the input clock.</font>
</p>


<p>
  <a name="1204476"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">For ST20 variants with power-down capability, the clocks pause when the ST20 is in power-down mode.
<br><br>
<table border="1" cellpadding="5" cellspacing="0">
  <caption><b><i><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205756"> </a><font face="Helvetica">Table 16:  Summary of clock intervals for parts operating at 40燤hz</font></font></i></b></caption>
  <tr align="center" bgcolor="#CCCCCC">
    <th><font face="Verdana, Arial, Helvetica, sans-serif" color="#003366"><a name="1205732"> </a><font  face="Verdana, Arial, Helvetica, sans-serif">Parameter</font></font></th>
    <th><font face="Verdana, Arial, Helvetica, sans-serif" color="#003366"><a name="1205734"> </a><font  face="Verdana, Arial, Helvetica, sans-serif">Low priority</font></font></th>
    <th><font face="Verdana, Arial, Helvetica, sans-serif" color="#003366"><a name="1205736"> </a><font  face="Verdana, Arial, Helvetica, sans-serif">High priority</font></font></th>
  </tr>
  <tr>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205738"> </a><div ><font size=2>Interval between ticks</font></div></font></td>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205740"> </a><div ><font size=2>64 <font  face="Symbol">m</font>s</font></div></font></td>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205742"> </a><div ><font size=2>1 <font  face="Symbol">m</font>s</font></div></font></td>
  </tr>
  <tr>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205744"> </a><div ><font size=2>Ticks per second</font></div></font></td>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205746"> </a><div ><font size=2>15625</font></div></font></td>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205748"> </a><div ><font size=2>1000000</font></div></font></td>
  </tr>
  <tr>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205750"> </a><div ><font size=2>Approximate full timer cycle</font></div></font></td>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205752"> </a><div ><font size=2>76.35 hours</font></div></font></td>
    <td><font face="Verdana, Arial, Helvetica, sans-serif"><a name="1205754"> </a><div ><font size=2>1.193 hours</font></div></font></td>
  </tr>
</table>



</font>
</p>
</blockquote>

<hr>



<table width="331" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="os20toc.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"> </a></td>
    <td><a href="clock2.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="clock4.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"> </a></td>
    <td><a href="os20ix.htm"><img src="images/navidx.gif" width="84" height="23"
    border="0" alt="INDEX"> </a></td>
  </tr>
</table>
<font size=1 face="Verdana, Arial, Helvetica, sans-serif">&nbsp; &copy; 2001, 2002, 2003 STMicroelectronics. All Rights Reserved.<br>
&nbsp; ADCS 7473749B</font>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -