参数资料
型号: DM163010
厂商: Microchip Technology
文件页数: 23/80页
文件大小: 0K
描述: BOARD DEMO PICDEM USB
标准包装: 1
USB Demonstration Code
2.2.5
Keyboard
The PS/2 keyboard data report format is summarized for every key in
Appendix B. Make codes are the byte or bytes that the PS/2 keyboard sends
to the host when a certain key is pressed. Break codes are the bytes that the
PS/2 keyboard sends when the user releases a key. If the user does not
release a specific key for several hundreds of a millisecond, the make code
will be sent repeatedly until the user releases the key. At this point, the break
code is sent. The Translation to USB, Section 2.2.11, details how the
firmware converts PS/2 keycodes to USB keycodes.
Note:
The PS/2 keycodes shown in Appendix B do not apply to all PS/2
keyboards. Several code sets have been used through the years.
However, this code set is the most common.
2.2.6
Mouse
Table 2.2 details a typical PS/2 mouse data format.
Table 2.2: PS/2 Mouse Data Report Format
Byte
3
2
1
Bit
7
6-1
0
7
6-1
0
7
6
5
4
3
2
1
0
Description
MSB of Y Data
Y Data
LSB of Y Data
MSB of X Data
X Data
LSB of X Data
Y Data Overflow, 1 = overflow
X Data Overflow, 1 = overflow
Y Data Sign, 1 = negative
X Data Sign, 1 = negative
Reserved
Reserved
Right Button Status, 1 = pressed
Left Button Status, 1 = pressed
2.2.7
2001 Microchip Technology Inc.
Hardware Implementation
A PS/2 port is a 6-pin DIN, but only four pins are used (see Appendix A for
pinout.) The pins are power, ground, clock and data. The clock pin is con-
nected to RC0, while the data pin is connected to RC1. A PS/2 device clocks
the host even when it is receiving data. By attaching the data pin to RC1, a
START bit will interrupt the PICmicro MCU through a Capture/Compare/PWM
(CCP) event. Refer to the PIC16C7XX data sheet for details on CCP. Power
and ground are directly tied to V DD and V SS . If power management were
desired, the power pins would be driven via switches from other I/O pins.
DS41174A-page 19
相关PDF资料
PDF描述
DM163012 BOARD DEMO PICDEM FOR 16C781/782
DM163024 BOARD DEMO PICDEM.NET 2
DM163025 PIC DEM FULL SPEED USB DEMO BRD
DM163028 BOARD DEMO PICDEM LCD
DM163029 BOARD PICDEM FOR MECHATRONICS
相关代理商/技术参数
参数描述
DM163010 制造商:Microchip Technology Inc 功能描述:DEMONSTRATION BOARD ((NW))
DM163011 功能描述:开发板和工具包 - PIC / DSPIC For PIC18FXX8 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163011 制造商:Microchip Technology Inc 功能描述:DEVELPMENT TOOLS ((NW))
DM163012 功能描述:开发板和工具包 - PIC / DSPIC For PIC16C781/782 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163014 功能描述:开发板和工具包 - PIC / DSPIC PICDEM 4 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: