Fri, 13 Aug 2010 10:41:29 +0100
Initial commit, GPIO v3.1
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
3 <html>
5 <head>
6 <title>GPIO Core</title>
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">
9 <link rel="stylesheet" href="lever40_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">
10 <!--
11 if (navigator.appName !="Netscape")
12 { document.write("<link rel='stylesheet' href='lever40.css'>");}
13 //-->
14 </script>
15 <style type="text/css">
16 <!--
17 img_whs1 { border:none; width:29px; height:31px; float:none; border-style:none; }
18 p.whs2 { font-style:italic; }
19 table.whs3 { height:84px; margin-left:14px; left:0px; top:129px; width:637px; x-cell-content-align:Top; border-spacing:0px; }
20 col.whs4 { width:85px; }
21 col.whs5 { width:505px; }
22 tr.whs6 { x-cell-content-align:top; height:22px; }
23 td.whs7 { width:85px; 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; }
24 td.whs8 { width:505px; 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; }
25 td.whs9 { width:85px; 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; }
26 td.whs10 { width:505px; 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; }
27 table.whs11 { x-cell-content-align:top; margin-left:15px; border-spacing:0px; }
28 col.whs12 { width:503px; }
29 tr.whs13 { x-cell-content-align:top; }
30 td.whs14 { width:85px; 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; }
31 td.whs15 { width:503px; 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; }
32 td.whs16 { width:85px; 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; }
33 td.whs17 { width:503px; 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; }
34 td.whs18 { width:588px; 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; }
35 td.whs19 { width:85px; 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; }
36 td.whs20 { width:503px; 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; }
37 td.whs21 { width:588px; 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; }
38 img_whs22 { border:none; width:14px; height:16px; float:none; border-style:none; }
39 -->
40 </style><script type="text/javascript" language="JavaScript">
41 <!--
42 function ehlp_showtip(current,e,text)
43 {
44 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape'))
45 {
46 document.tooltip.document.write("<layer bgColor='yellow' style='border:1px solid black;font-size:12px;'>"+ text + "</layer>");
47 document.tooltip.document.close();
48 document.tooltip.left=e.pageX+5;
49 document.tooltip.top=e.pageY+5;
50 document.tooltip.visibility="show";
51 }
52 }
53 function ehlp_hidetip()
54 {
55 document.tooltip.visibility="hidden";
56 }
57 //-->
58 </script>
59 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
60 <!--
61 function reDo() {
62 if (innerWidth != origWidth || innerHeight != origHeight)
63 location.reload();
64 }
65 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
66 origWidth = innerWidth;
67 origHeight = innerHeight;
68 onresize = reDo;
69 }
70 onerror = null;
71 //-->
72 </script>
73 <style type="text/css">
74 <!--
75 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
76 p.WebHelpNavBar { text-align:right; }
77 -->
78 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
79 <script type="text/javascript" language="javascript" src="whver.js"></script>
80 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>
81 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>
82 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>
83 <script type="text/javascript" language="javascript1.2">
84 <!--
85 if (window.gbWhTopic)
86 {
87 if (window.setRelStartPage)
88 {
89 addTocInfo("GPIO");
91 }
94 if (window.setRelStartPage)
95 {
96 setRelStartPage("msb_peripherals.htm");
98 autoSync(0);
99 sendSyncInfo();
100 sendAveInfoOut();
101 }
103 }
104 else
105 if (window.gbIE4)
106 document.location.reload();
107 //-->
108 </script>
109 </head>
110 <body><script type="text/javascript" language="javascript1.2">
111 <!--
112 if (window.writeIntopicBar)
113 writeIntopicBar(4);
114 //-->
115 </script>
116 <h1>LatticeMico32 GPIO <a title="View Data Sheet" href="gpio.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>
118 <p>The LatticeMico32 general-purpose input/output core (GPIO) provides
119 a memory-mapped interface between a WISHBONE slave port and general-purpose
120 I/O ports. The I/O ports can connect to either on-chip or off-chip logic.</p>
122 <p class="whs2">*If the data sheet fails to open, see the
123 note at the bottom of this page.</p>
125 <h2>Revision History</h2>
127
129 <table x-use-null-cells cellspacing="0" width="637" height="84" class="whs3">
130 <script language='JavaScript'><!--
131 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table><table x-use-null-cells cellspacing='0' width='637' height='84' border='1' bordercolor='silver' bordercolorlight='silver' bordercolordark='silver'>");
132 //--></script>
133 <col class="whs4">
134 <col class="whs5">
136 <tr valign="top" class="whs6">
137 <td bgcolor="#DEE8F4" width="85px" class="whs7">
138 <p class=Table
139 style="font-weight: bold;">Version</td>
140 <td bgcolor="#DEE8F4" width="505px" class="whs8">
141 <p class=Table
142 style="font-weight: bold;">Description</td></tr>
144 <tr valign="top" class="whs6">
145 <td colspan="1" rowspan="1" width="85px" class="whs9">
146 <p class=Table
147 style="font-weight: normal;">3.1 (7.2)</td>
148 <td colspan="1" rowspan="1" width="505px" class="whs10">
149 <p class=Table>Updated the Edge Capture Register clean method</p>
150 <p class=Table>Made IRQ Mask register readable</td></tr>
152 <tr valign="top" class="whs6">
153 <td colspan="1" rowspan="1" width="85px" class="whs9">
154 <p class=Table
155 style="font-weight: normal;">3.0 (7.0 SP2)</td>
156 <td colspan="1" rowspan="1" width="505px" class="whs10">
157 <p class=Table>Cleaned up code. No function change.</td></tr>
159 <tr valign="top" class="whs6">
160 <td colspan="1" rowspan="1" width="85px" class="whs9">
161 <p class=Table
162 style="font-weight: normal;">1.0</td>
163 <td colspan="1" rowspan="1" width="505px" class="whs10">
164 <p class=Table>Initial release.</td></tr>
165 <script language='JavaScript'><!--
166 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table></table><table>");
167 //--></script>
168 </table>
170 <h2>Dialog Box Parameters</h2>
172 <table x-use-null-cells cellspacing="0" class="whs11">
173 <col class="whs4">
174 <col class="whs12">
176 <tr valign="top" class="whs13">
177 <td bgcolor="#DEE8F4" width="85px" class="whs14">
178 <p class=Table
179 style="font-weight: bold;">Parameter</td>
180 <td bgcolor="#DEE8F4" width="503px" class="whs15">
181 <p class=Table
182 style="font-weight: bold;">Description</td></tr>
184 <tr valign="top" class="whs13">
185 <td colspan="1" rowspan="1" width="85px" class="whs16">
186 <p class=Table>Instance Name</td>
187 <td colspan="1" rowspan="1" width="503px" class="whs17">
188 <p class=Table>Specifies the name of the GPIO instance. Alphanumeric values
189 and underscores are supported. The default is gpio.</td></tr>
191 <tr valign="top" class="whs13">
192 <td width="85px" class="whs16">
193 <p class=Table>Base Address</td>
194 <td width="503px" class="whs17">
195 <p class=Table>Specifies the base address for the device. The minimum boundary
196 alignment is 0X80. Supported values are 0X80000000 to 0XFFFFFF80. The
197 default is 0x80000000. If other components are included in the platform,
198 the allowable values will vary.</td></tr>
200 <tr valign="top" class="whs13">
201 <td colspan="2" rowspan="1" width="588px" class="whs18">
202 <p class=Table
203 style="font-weight: bold;">Port Types</td>
204 </tr>
206 <tr valign="top" class="whs13">
207 <td colspan="1" rowspan="1" width="85px" class="whs16">
208 <p class=Table>Output Ports Only</td>
209 <td colspan="1" rowspan="1" width="503px" class="whs17">
210 <p class=Table>Specifies the transfer mode of PIO ports as output only.
211 This option is selected by default.</td></tr>
213 <tr valign="top" class="whs13">
214 <td colspan="1" rowspan="1" width="85px" class="whs19">
215 <p class=Table>Input Ports Only</td>
216 <td colspan="1" rowspan="1" width="503px" class="whs20">
217 <p class=Table>Specifies the transfer mode of PIO ports as input only.
218 This option is deselected by default.</td></tr>
220 <tr valign="top" class="whs13">
221 <td colspan="1" rowspan="1" width="85px" class="whs16">
222 <p class=Table>Tristate Ports</td>
223 <td colspan="1" rowspan="1" width="503px" class="whs17">
224 <p class=Table>Specifies the transfer mode of PIO ports as tristate only.
225 This option is deselected by default.</td></tr>
227 <tr valign="top" class="whs13">
228 <td colspan="1" rowspan="1" width="85px" class="whs19">
229 <p class=Table>Both Input and Output</td>
230 <td colspan="1" rowspan="1" width="503px" class="whs20">
231 <p class=Table>Specifies the transfer mode of PIO ports as both input and
232 output. This option is deselected by default.</td></tr>
234 <tr valign="top" class="whs13">
235 <td colspan="2" rowspan="1" width="588px" class="whs18">
236 <p class=Table
237 style="font-weight: bold;">Port Width</td>
238 </tr>
240 <tr valign="top" class="whs13">
241 <td colspan="1" rowspan="1" width="85px" class="whs16">
242 <p class=Table>Data Width</td>
243 <td colspan="1" rowspan="1" width="503px" class="whs17">
244 <p class=Table>Specifies the width of the I/O port, in bits. Supported
245 values are 1 to 32. The default is 1.</td></tr>
247 <tr valign="top" class="whs13">
248 <td colspan="1" rowspan="1" width="85px" class="whs19">
249 <p class=Table>Input Width</td>
250 <td colspan="1" rowspan="1" width="503px" class="whs20">
251 <p class=Table>Specifies the input data bus width for an independent input/output
252 GPIO, in bits. Supported values are 1 to 32. The default is 1.</td></tr>
254 <tr valign="top" class="whs13">
255 <td colspan="1" rowspan="1" width="85px" class="whs16">
256 <p class=Table>Output Width</td>
257 <td colspan="1" rowspan="1" width="503px" class="whs17">
258 <p class=Table>Specifies the output data bus width for an independent input/output
259 GPIO, in bits. Supported values are 1 to 32. The default is 1.</td></tr>
261 <tr valign="top" class="whs13">
262 <td colspan="2" rowspan="1" width="588px" class="whs21">
263 <p class=Table
264 style="font-weight: bold;">IRQ Mode</td>
265 </tr>
267 <tr valign="top" class="whs13">
268 <td colspan="1" rowspan="1" width="85px" class="whs19">
269 <p class=Table>IRQ Mode</td>
270 <td colspan="1" rowspan="1" width="503px" class="whs20">
271 <p class=Table>Provides IRQ signal output when a specified event occurs
272 on input ports. This option is deselected by default.</td></tr>
274 <tr valign="top" class="whs13">
275 <td colspan="1" rowspan="1" width="85px" class="whs16">
276 <p class=Table>Level</td>
277 <td colspan="1" rowspan="1" width="503px" class="whs17">
278 <p class=Table>Generates an IRQ whenever a specific input is high and interrupts
279 have been enabled for that input in the IRQ-MASK register. This option
280 is deselected by default.</td></tr>
282 <tr valign="top" class="whs13">
283 <td colspan="1" rowspan="1" width="85px" class="whs19">
284 <p class=Table>Edge</td>
285 <td colspan="1" rowspan="1" width="503px" class="whs20">
286 <p class=Table>Generates an IRQ whenever a specific bit in the edge capture
287 register is high and interrupts have been enabled for that bit in the
288 IRQ-MASK register. This option is selected by default.</td></tr>
290 <tr valign="top" class="whs13">
291 <td colspan="2" rowspan="1" width="588px" class="whs18">
292 <p class=Table
293 style="font-weight: bold;">Edge Response</td>
294 </tr>
296 <tr valign="top" class="whs13">
297 <td colspan="1" rowspan="1" width="85px" class="whs16">
298 <p class=Table>Either Edge</td>
299 <td colspan="1" rowspan="1" width="503px" class="whs17">
300 <p class=Table>Generates an IRQ on either low-to-high or high-to-low transitions.
301 This option is deselected by default.</td></tr>
303 <tr valign="top" class="whs13">
304 <td colspan="1" rowspan="1" width="85px" class="whs19">
305 <p class=Table>Positive Edge</td>
306 <td colspan="1" rowspan="1" width="503px" class="whs20">
307 <p class=Table>Generates an IRQ on low-to-high transitions. This option
308 is selected by default.</td></tr>
310 <tr valign="top" class="whs13">
311 <td colspan="1" rowspan="1" width="85px" class="whs16">
312 <p class=Table>Negative Edge</td>
313 <td colspan="1" rowspan="1" width="503px" class="whs17">
314 <p class=Table>Generates an IRQ on high-to-low transitions. This option
315 is deselected by default.</td></tr>
316 </table>
318
320 <p><span style="font-weight: bold;"><B>Note</B></span>: If the data sheet fails
321 to open, click <img src="qm_icon.jpg" x-maintain-ratio="TRUE" width="14px" height="16px" border="0" class="img_whs22"> on the Available Components toolbar, and
322 then click the note button.</p>
324 <script type="text/javascript" language="JavaScript">
325 <!--
326 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == 'Netscape'))
327 document.write("<div id='tooltip' class='WebHelpPopupMenu'></div>");
328 //-->
329 </script><script type="text/javascript" language="javascript1.2">
330 <!--
331 if (window.writeIntopicBar)
332 writeIntopicBar(0);
333 //-->
334 </script>
335 </body>
336 </html>