document/timer.htm

Sat, 06 Aug 2011 01:40:34 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Sat, 06 Aug 2011 01:40:34 +0100
changeset 1
85c1144140c3
parent 0
396b0bd970d3
permissions
-rw-r--r--

Update comments per latest Lattice code dump (LM32 v3.8)

philpem@0 1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
philpem@0 2
philpem@0 3 <html>
philpem@0 4
philpem@0 5 <head>
philpem@0 6 <title>timer</title>
philpem@0 7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">
philpem@0 8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
philpem@0 9 <link rel="stylesheet" href="lever40_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
philpem@0 10 <!--
philpem@0 11 if (navigator.appName !="Netscape")
philpem@0 12 { document.write("<link rel='stylesheet' href='lever40.css'>");}
philpem@0 13 //-->
philpem@0 14 </script>
philpem@0 15 <style type="text/css">
philpem@0 16 <!--
philpem@0 17 img_whs1 { border:none; width:29px; height:31px; float:none; border-style:none; }
philpem@0 18 p.whs2 { font-style:italic; }
philpem@0 19 table.whs3 { x-cell-content-align:top; height:84px; margin-left:14px; left:0px; top:114px; width:636px; border-spacing:0px; }
philpem@0 20 col.whs4 { width:87px; }
philpem@0 21 col.whs5 { width:502px; }
philpem@0 22 tr.whs6 { x-cell-content-align:top; height:22px; }
philpem@0 23 td.whs7 { width:87px; padding-right:10px; padding-left:10px; border-left-style:Solid; border-left-color:#c0c0c0; border-top-style:Solid; border-top-color:#c0c0c0; border-right-color:#c0c0c0; border-right-style:Solid; border-bottom-color:#c0c0c0; border-bottom-style:Solid; border-right-width:1px; border-left-width:1px; border-top-width:1px; border-bottom-width:1px; background-color:#dee8f4; }
philpem@0 24 td.whs8 { width:502px; padding-right:10px; padding-left:10px; border-top-style:Solid; border-top-color:#c0c0c0; border-right-color:#c0c0c0; border-right-style:Solid; border-bottom-color:#c0c0c0; border-bottom-style:Solid; border-top-width:1px; border-bottom-width:1px; border-right-width:1px; background-color:#dee8f4; }
philpem@0 25 td.whs9 { width:87px; padding-right:10px; padding-left:10px; border-left-color:#c0c0c0; border-left-width:1px; border-left-style:Solid; border-right-color:#c0c0c0; border-right-style:Solid; border-right-width:1px; border-bottom-color:#c0c0c0; border-bottom-style:Solid; border-bottom-width:1px; }
philpem@0 26 td.whs10 { width:502px; padding-right:10px; padding-left:10px; border-right-color:#c0c0c0; border-right-style:Solid; border-right-width:1px; border-bottom-color:#c0c0c0; border-bottom-style:Solid; border-bottom-width:1px; }
philpem@0 27 p.whs11 { margin-left:4px; }
philpem@0 28 table.whs12 { x-cell-content-align:top; margin-left:15px; border-spacing:0px; }
philpem@0 29 col.whs13 { width:86px; }
philpem@0 30 tr.whs14 { x-cell-content-align:top; }
philpem@0 31 td.whs15 { width:86px; padding-right:10px; padding-left:10px; border-left-style:Solid; border-left-color:#c0c0c0; border-top-color:#c0c0c0; border-top-style:Solid; border-right-color:#c0c0c0; border-right-style:Solid; border-bottom-color:#c0c0c0; border-bottom-style:Solid; border-right-width:1px; border-left-width:1px; border-top-width:1px; border-bottom-width:1px; background-color:#dee8f4; }
philpem@0 32 td.whs16 { width:502px; padding-right:10px; padding-left:10px; border-top-color:#c0c0c0; border-top-style:Solid; border-right-color:#c0c0c0; border-right-style:Solid; border-bottom-color:#c0c0c0; border-bottom-style:Solid; border-top-width:1px; border-bottom-width:1px; border-right-width:1px; background-color:#dee8f4; }
philpem@0 33 td.whs17 { width:86px; padding-right:10px; padding-left:10px; border-left-style:Solid; border-left-width:1px; border-left-color:#c0c0c0; border-right-width:1px; border-right-color:#c0c0c0; border-right-style:Solid; border-bottom-width:1px; border-bottom-color:#c0c0c0; border-bottom-style:Solid; }
philpem@0 34 td.whs18 { width:502px; padding-right:10px; padding-left:10px; border-right-width:1px; border-right-color:#c0c0c0; border-right-style:Solid; border-bottom-width:1px; border-bottom-color:#c0c0c0; border-bottom-style:Solid; }
philpem@0 35 td.whs19 { width:86px; padding-right:10px; padding-left:10px; border-left-color:#c0c0c0; border-left-width:1px; border-left-style:Solid; border-right-style:Solid; border-right-color:#c0c0c0; border-right-width:1px; border-bottom-style:Solid; border-bottom-color:#c0c0c0; border-bottom-width:1px; }
philpem@0 36 td.whs20 { width:502px; padding-right:10px; padding-left:10px; border-right-style:Solid; border-right-color:#c0c0c0; border-right-width:1px; border-bottom-style:Solid; border-bottom-color:#c0c0c0; border-bottom-width:1px; }
philpem@0 37 img_whs21 { border:none; width:14px; height:16px; float:none; border-style:none; }
philpem@0 38 -->
philpem@0 39 </style><script type="text/javascript" language="JavaScript">
philpem@0 40 <!--
philpem@0 41 function ehlp_showtip(current,e,text)
philpem@0 42 {
philpem@0 43 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape'))
philpem@0 44 {
philpem@0 45 document.tooltip.document.write("<layer bgColor='yellow' style='border:1px solid black;font-size:12px;'>"+ text + "</layer>");
philpem@0 46 document.tooltip.document.close();
philpem@0 47 document.tooltip.left=e.pageX+5;
philpem@0 48 document.tooltip.top=e.pageY+5;
philpem@0 49 document.tooltip.visibility="show";
philpem@0 50 }
philpem@0 51 }
philpem@0 52 function ehlp_hidetip()
philpem@0 53 {
philpem@0 54 document.tooltip.visibility="hidden";
philpem@0 55 }
philpem@0 56 //-->
philpem@0 57 </script>
philpem@0 58 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
philpem@0 59 <!--
philpem@0 60 function reDo() {
philpem@0 61 if (innerWidth != origWidth || innerHeight != origHeight)
philpem@0 62 location.reload();
philpem@0 63 }
philpem@0 64 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
philpem@0 65 origWidth = innerWidth;
philpem@0 66 origHeight = innerHeight;
philpem@0 67 onresize = reDo;
philpem@0 68 }
philpem@0 69 onerror = null;
philpem@0 70 //-->
philpem@0 71 </script>
philpem@0 72 <style type="text/css">
philpem@0 73 <!--
philpem@0 74 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
philpem@0 75 p.WebHelpNavBar { text-align:right; }
philpem@0 76 -->
philpem@0 77 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
philpem@0 78 <script type="text/javascript" language="javascript" src="whver.js"></script>
philpem@0 79 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>
philpem@0 80 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>
philpem@0 81 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>
philpem@0 82 <script type="text/javascript" language="javascript1.2">
philpem@0 83 <!--
philpem@0 84 if (window.gbWhTopic)
philpem@0 85 {
philpem@0 86 if (window.setRelStartPage)
philpem@0 87 {
philpem@0 88 addTocInfo("Timer");
philpem@0 89
philpem@0 90 }
philpem@0 91
philpem@0 92
philpem@0 93 if (window.setRelStartPage)
philpem@0 94 {
philpem@0 95 setRelStartPage("msb_peripherals.htm");
philpem@0 96
philpem@0 97 autoSync(0);
philpem@0 98 sendSyncInfo();
philpem@0 99 sendAveInfoOut();
philpem@0 100 }
philpem@0 101
philpem@0 102 }
philpem@0 103 else
philpem@0 104 if (window.gbIE4)
philpem@0 105 document.location.reload();
philpem@0 106 //-->
philpem@0 107 </script>
philpem@0 108 </head>
philpem@0 109 <body><script type="text/javascript" language="javascript1.2">
philpem@0 110 <!--
philpem@0 111 if (window.writeIntopicBar)
philpem@0 112 writeIntopicBar(4);
philpem@0 113 //-->
philpem@0 114 </script>
philpem@1 115 <h1>LatticeMico Timer &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a title="View Data Sheet" href="timer.pdf" target="_blank" onmouseover="if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape')) ehlp_showtip(this,event,'View Data Sheet');" onmouseout="if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape')) ehlp_hidetip();"><img src="ds_icon_ast.jpg" x-maintain-ratio="TRUE" width="29px" height="31px" border="0" class="img_whs1"></a></h1>
philpem@0 116
philpem@1 117 <p>The LatticeMico timer is a highly configurable countdown timer with
philpem@1 118 a WISHBONE-compliant slave interface compatible with the LatticeMico microprocessor.
philpem@1 119 &nbsp;</p>
philpem@0 120
philpem@0 121 <p class="whs2"><span style="font-style: italic;"><I>*If the
philpem@0 122 data sheet fails to open, see the note at the bottom of this page.</I></span></p>
philpem@0 123
philpem@0 124 <h2>Revision History</h2>
philpem@0 125
philpem@0 126 <table x-use-null-cells cellspacing="0" width="636" height="84" class="whs3">
philpem@0 127 <script language='JavaScript'><!--
philpem@0 128 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table><table x-use-null-cells cellspacing='0' width='636' height='84' border='1' bordercolor='silver' bordercolorlight='silver' bordercolordark='silver'>");
philpem@0 129 //--></script>
philpem@0 130 <col class="whs4">
philpem@0 131 <col class="whs5">
philpem@0 132
philpem@0 133 <tr valign="top" class="whs6">
philpem@0 134 <td bgcolor="#DEE8F4" width="87px" class="whs7">
philpem@0 135 <p class=Table
philpem@0 136 style="font-weight: bold;">Version</td>
philpem@0 137 <td bgcolor="#DEE8F4" width="502px" class="whs8">
philpem@0 138 <p class=Table
philpem@0 139 style="font-weight: bold;">Description</td></tr>
philpem@0 140
philpem@0 141 <tr valign="top" class="whs6">
philpem@0 142 <td colspan="1" rowspan="1" width="87px" class="whs9">
philpem@0 143 <p class=Table
philpem@0 144 style="font-weight: normal;"><span style="font-weight: normal;">3.0
philpem@0 145 (7.0 SP2)</span></td>
philpem@0 146 <td colspan="1" rowspan="1" width="502px" class="whs10">
philpem@0 147 <p class=Table>Version number change only. No RTL code change.</td></tr>
philpem@0 148
philpem@0 149 <tr valign="top" class="whs6">
philpem@0 150 <td colspan="1" rowspan="1" width="87px" class="whs9">
philpem@0 151 <p class="whs11">1.0</td>
philpem@0 152 <td colspan="1" rowspan="1" width="502px" class="whs10">
philpem@0 153 <p class=Table>Initial release.</td></tr>
philpem@0 154 <script language='JavaScript'><!--
philpem@0 155 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table></table><table>");
philpem@0 156 //--></script>
philpem@0 157 </table>
philpem@0 158
philpem@0 159 &nbsp;
philpem@0 160
philpem@0 161 <h2>Dialog Box Parameters</h2>
philpem@0 162
philpem@0 163 <table x-use-null-cells cellspacing="0" class="whs12">
philpem@0 164 <script language='JavaScript'><!--
philpem@0 165 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table><table x-use-null-cells cellspacing='0' border='1' bordercolor='silver' bordercolorlight='silver' bordercolordark='silver'>");
philpem@0 166 //--></script>
philpem@0 167 <col class="whs13">
philpem@0 168 <col class="whs5">
philpem@0 169
philpem@0 170 <tr valign="top" class="whs14">
philpem@0 171 <td bgcolor="#DEE8F4" width="86px" class="whs15">
philpem@0 172 <p class=Table
philpem@0 173 style="font-weight: bold;">Property</td>
philpem@0 174 <td bgcolor="#DEE8F4" width="502px" class="whs16">
philpem@0 175 <p class=Table
philpem@0 176 style="font-weight: bold;">Description</td></tr>
philpem@0 177
philpem@0 178 <tr valign="top" class="whs14">
philpem@0 179 <td colspan="1" rowspan="1" width="86px" class="whs17">
philpem@0 180 <p class=Table>Instance Name</td>
philpem@0 181 <td colspan="1" rowspan="1" width="502px" class="whs18">
philpem@0 182 <p class=Table>Specifies the name of the timer instance. Alphanumeric values
philpem@0 183 and underscores are supported. The default is timer.</td></tr>
philpem@0 184
philpem@0 185 <tr valign="top" class="whs14">
philpem@0 186 <td width="86px" class="whs17">
philpem@0 187 <p class=Table>Base Address</td>
philpem@0 188 <td width="502px" class="whs18">
philpem@0 189 <p class=Table>Specifies the base address for configuring the timer device.
philpem@0 190 The minimum boundary alignment is 0X80. Supported &nbsp;values
philpem@0 191 are 0X00000000 to 0XFFFFFFFF. The default is 0X00000000.</td></tr>
philpem@0 192
philpem@0 193 <tr valign="top" class="whs14">
philpem@0 194 <td colspan="1" rowspan="1" width="86px" class="whs17">
philpem@0 195 <p class=Table>Writeable Tick Count</td>
philpem@0 196 <td colspan="1" rowspan="1" width="502px" class="whs18">
philpem@0 197 <p class=Table>Determines whether the period register is writable. A tick
philpem@0 198 is equivalent to one clock cycle. This option is selected by default.</td></tr>
philpem@0 199
philpem@0 200 <tr valign="top" class="whs14">
philpem@0 201 <td colspan="1" rowspan="1" width="86px" class="whs17">
philpem@0 202 <p class=Table>Readable Tick Count</td>
philpem@0 203 <td colspan="1" rowspan="1" width="502px" class="whs18">
philpem@0 204 <p class=Table>Determines whether the snapshot register is readable. This
philpem@0 205 option is selected by default.</td></tr>
philpem@0 206
philpem@0 207 <tr valign="top" class="whs14">
philpem@0 208 <td colspan="1" rowspan="1" width="86px" class="whs17">
philpem@0 209 <p class=Table>Start Stop Control</td>
philpem@0 210 <td colspan="1" rowspan="1" width="502px" class="whs18">
philpem@0 211 <p class=Table>Determines whether the START and STOP bits are controllable.
philpem@0 212 This option is selected by default.</td></tr>
philpem@0 213
philpem@0 214 <tr valign="top" class="whs14">
philpem@0 215 <td colspan="1" rowspan="1" width="86px" class="whs19">
philpem@0 216 <p class=Table>Default Reload Ticks</td>
philpem@0 217 <td colspan="1" rowspan="1" width="502px" class="whs20">
philpem@0 218 <p class=Table>Specifies the initial countdown value. The period number
philpem@0 219 is the reload value used to initialize the counter. The value should be
philpem@0 220 in the range that can be represented by the period width. Supported values
philpem@0 221 are 0X00000000 to 0XFFFFFFFF. The default is 20 (0X14).</td></tr>
philpem@0 222
philpem@0 223 <tr valign="top" class="whs14">
philpem@0 224 <td colspan="1" rowspan="1" width="86px" class="whs17">
philpem@0 225 <p class=Table>Counter Width</td>
philpem@0 226 <td colspan="1" rowspan="1" width="502px" class="whs18">
philpem@0 227 <p class=Table>Controls the period register and internal counter's width.
philpem@0 228 The period width is the width of the adder-subtractor used to implement
philpem@0 229 the counter. Supported values are 1 to 31. The default is 32.</td></tr>
philpem@0 230 <script language='JavaScript'><!--
philpem@0 231 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table></table><table>");
philpem@0 232 //--></script>
philpem@0 233 </table>
philpem@0 234
philpem@0 235 &nbsp;
philpem@0 236
philpem@0 237 <p><span style="font-weight: bold;"><B>Note</B></span>: If the data sheet fails
philpem@0 238 to open, click <img src="qm_icon.jpg" x-maintain-ratio="TRUE" width="14px" height="16px" border="0" class="img_whs21"> on the Available Components toolbar, and
philpem@0 239 then click the note button.</p>
philpem@0 240
philpem@0 241 <script type="text/javascript" language="JavaScript">
philpem@0 242 <!--
philpem@0 243 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape'))
philpem@0 244 document.write("<div id='tooltip' class='WebHelpPopupMenu'></div>");
philpem@0 245 //-->
philpem@0 246 </script><script type="text/javascript" language="javascript1.2">
philpem@0 247 <!--
philpem@0 248 if (window.writeIntopicBar)
philpem@0 249 writeIntopicBar(0);
philpem@0 250 //-->
philpem@0 251 </script>
philpem@0 252 </body>
philpem@0 253 </html>