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

📄 setup_serial_mouse.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#setup_serial_mouses_on_blackfin_uclinux" class="toc">Setup Serial Mouses on blackfin/uClinux</a></span></div></li><li class="level1"><div class="li"><span class="li"><a href="#hardware_changes" class="toc">Hardware Changes</a></span></div></li><li class="level1"><div class="li"><span class="li"><a href="#configure_serial_mouse" class="toc">Configure serial mouse</a></span></div></li></ul></div></div><h1><a name="setup_serial_mouses_on_blackfin_uclinux" id="setup_serial_mouses_on_blackfin_uclinux">Setup Serial Mouses on blackfin/uClinux</a></h1><div class="level1"><p>We choose the serial mouse with chip EC3581 as an example. EC3581 is a single chip 2IN1 mouse controller. It supports both Microsoft System and Mouse System protocal. We choose the Microsoft System as the default protocol. The serial mouse can be plugged into a RS232 interface. It is powered by the 7th <acronym title="Personal Identification Number">PIN</acronym> of a 9-<acronym title="Personal Identification Number">PIN</acronym> RS232 connector. The 2nd <acronym title="Personal Identification Number">PIN</acronym> is defined as a transfer line, while the 3rd <acronym title="Personal Identification Number">PIN</acronym> is defined as a receiving line. The serial mouse works under baud 1200 bps. The output data contain 1 start bit, 7 data bits and 2 stop bits.  </p></div><!-- SECTION [1-596] --><h1><a name="hardware_changes" id="hardware_changes">Hardware Changes</a></h1><div class="level1"><p>The serial mouse can not work directly through the UART ports on the blackfin board. Since the mouse we used steals the power from RTS( pin 7 of PC serial connector), some changes should be done. Following change is make on UART1 daughter board.</p><ol><li class="level1"><div class="li">  Remove R1.</div></li><li class="level1"><div class="li">  Connect pin 10 of ADM3202 on ADSP-BF537 UART add-on card to GND.</div></li><li class="level1"><div class="li">  Short pin 7 with pin 8 of ADM3202.  Now there is about 6V power on RTS.</div></li><li class="level1"><div class="li">  Connect the mouse use a cross wire. The serial mouse is connect directly to PC, and the serial port of ADSP-BF537 UART add-on card also connect directly to PC. So we must use a cross wire to connect mouse from ADSP-BF537 UART add-on card.</div></li></ol><p>&rsquo;</p></div><!-- SECTION [597-1412] --><h1><a name="configure_serial_mouse" id="configure_serial_mouse">Configure serial mouse</a></h1><div class="level1"><p>No kernel configuration is necessary.  Any application that gets input from the serial mouse should configure the ttyS device in advance. You can also do the configuration manually on command line. </p><pre class="code">~&gt; stty -F /dev/ttyS1 ispeed 1200 cs7 -icanon</pre><p> Then, you can try a simple test to see if the mouse works. You will get a lot of mess data on the console. </p><pre class="code">~&gt; cat /dev/ttyS1XXXXXXXX............BBBBBBBB...........</pre></div><!-- SECTION [1413-] --></body></html>

⌨️ 快捷键说明

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