group__uartsw2.html
来自「avrlib.rar ,一个学习AVR处理器十分有用的函数库.」· HTML 代码 · 共 25 行
HTML
25 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Procyon AVRlib: Software Interrupt-driven UART Driver (uartsw2.c)</title><link href="dox.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>Software Interrupt-driven UART Driver (uartsw2.c)<br><small>[<a class="el" href="group__driver__sw.html">Drivers (software-based)</a>]</small></h1><div class="fragment"><pre class="fragment"><span class="preprocessor"> #include "<a class="code" href="uartsw2_8h.html">uartsw2.h</a>"</span> </pre></div> <dl compact><dt><b>Overview</b></dt><dd>This uart library emulates the operation of a UART (serial port) using the AVR's hardware timers, I/O pins, and some software.</dd></dl>Specifically, this code uses: -Timer 2 Output Capture for transmit timing -Timer 0 Output Capture for receive timing -External Interrupt 2 for receive triggering<p>The above resources cannot be used for other purposes while this software UART is enabled. The overflow interrupts from Timer0 and Timer2 can still be used for other timing, but the prescalers for these timers must not be changed.<p>Serial output from this UART can be routed to any I/O pin. Serial input for this UART must come from the External Interrupt 2 (INT2) I/O pin. These options should be configured by editing your local copy of "uartsw2conf.h". <p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?