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

📄 basic.html

📁 AT91SAM7A3评估版的USB测试程序
💻 HTML
字号:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./basic_files/filelist.xml">
<title>AT91 SAM7 Basic </title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>jpperie</o:Author>
  <o:LastAuthor>jpperie</o:LastAuthor>
  <o:Revision>17</o:Revision>
  <o:TotalTime>216</o:TotalTime>
  <o:Created>2004-09-10T10:27:00Z</o:Created>
  <o:LastSaved>2005-03-09T15:25:00Z</o:LastSaved>
  <o:Pages>2</o:Pages>
  <o:Words>431</o:Words>
  <o:Characters>2461</o:Characters>
  <o:Company>ATMEL_ES2</o:Company>
  <o:Lines>20</o:Lines>
  <o:Paragraphs>4</o:Paragraphs>
  <o:CharactersWithSpaces>3022</o:CharactersWithSpaces>
  <o:Version>9.2720</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>110</w:Zoom>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:Georgia;
	panose-1:2 4 5 2 5 4 5 2 3 3;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:647 0 0 0 159 0;}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
p
	{margin-right:0cm;
	mso-margin-top-alt:auto;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:595.3pt 841.9pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<body bgcolor=white lang=EN-GB link=blue vlink=blue style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal align=right style='text-align:right'><!-- ******* title  ********** !--><b>Version:
1.1</b></p>

<p align=center style='text-align:center'><b><span style='font-family:Georgia'>AT91
SAM7 Basic HID Project</span></b><o:p></o:p></p>

<p><!-- ******* Introduction  ********** !--><span style='mso-bidi-font-size:
10.0pt'>The goal of this demonstration project is to use the SAM7A3_EK as a USB
mouse.<o:p></o:p></span></p>

<p><b>Install </b><span style='mso-bidi-font-size:10.0pt'><o:p></o:p></span></p>

<p><span style='mso-bidi-font-size:10.0pt'>Connect the AT91SAM7A3_EK board
using a standard USB cable to a host controller running HID class driver i.e.
Windows PC,<span style="mso-spacerun: yes">&nbsp; </span>Linux PC, AT91RM9200
running WIN CE or Linux. <o:p></o:p></span></p>

<p><span style='mso-bidi-font-size:10.0pt'>Once enumerated, led on the board
are switched on. Clicks on buttons move the host mouse pointer. Clicking on
left and bottom buttons in the same time is equivalent to a click on the left
button on a standard mouse. Clicking on right and left buttons in the same time
is equivalent to a click on the right button on a standard mouse.<o:p></o:p></span></p>

<p><span style='mso-bidi-font-size:10.0pt'>Each time a button on the AT91SAM7A3_EK
is pressed, the corresponding led is switched off.<o:p></o:p></span></p>

<p><b>Quick description<o:p></o:p></b></p>

<p class=MsoNormal>This device enumerates as a <a href="HID1_11.pdf">standard
HID device</a>. Once the device is enumerated, the host periodically sends IN
token to the device. Each time the device detects a user action (button
pressed), it sends a report to the host which is carried by the next IN packet.
</p>

<p class=MsoNormal>The format of the report sent to the host is defined in the
mouseDescriptor[] defined in the hid_enumerate file. It contains button state
and x and y offset information.</p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>The enumeration is controlled by the IsConfigured() function
in the hid_enumerate.c file. This function is called as often as possible to
detect a host disconnect. In a multithread system, this could be a dedicated
thread.</p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>The main application waits for a tick sent by the RTT and
checks for button activity. If a new activity is detected, a report is sent to
the host. To increase mouse sensitivity, the tick rate can be increased
modifying the RTT configuration.</p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>The application uses 3 pipes associated with physical
endpoints:</p>

<p class=MsoNormal>

⌨️ 快捷键说明

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