参数资料
型号: DM163010
厂商: Microchip Technology
文件页数: 21/80页
文件大小: 0K
描述: BOARD DEMO PICDEM USB
标准包装: 1
USB Demonstration Code
2.1.7
Vendor/Product Identification
Besides the report information, the descriptors also contain manufacturing
and product identification codes. Microchip has a registered Vendor ID with
the USB IF forum, which identifies Microchip’s Vendor ID as 0x04D8. You are
allowed to use this ID for your own testing, but you may not ship any products
with this code without written permission from Microchip. Microchip has
defined product ID ’s for each demonstration code included in this kit. As addi-
tional demonstration devices are released, Microchip will ensure that no
duplicate ID’s are used.
2.2
PS/2 Keyboard/Mouse - USB Translator
2.2.1
Introduction
This is the demonstration firmware that is programmed into the PIC16C765
and installed on the PICDEM? USB demonstration board. The PS/2 connec-
tor was added so PS/2 mice and keyboards could be translated to USB.
Again, this is a straightforward application intended to provide practice with
device descriptors. The PS/2 interface is a synchronous serial interface with
different data protocols for keyboards and mice. Device descriptors in the
PICmicro microcontroller allows the unit to report itself as either a keyboard or
a mouse. When a mouse is attached to a PS/2 port, it identifies itself as a
mouse. When the PICmicro MCU receives this identification, it will perform a
soft detach from the USB bus and re-attach as a mouse. When the PICmicro
MCU identifies the PS/2 device as a keyboard, it will perform a soft detach
and re-attach as a keyboard. Using soft detach may be a useful feature in
your application, so you can practice using it with this example.
Note:
It may be necessary to attach 110 kOhm pull-down resistors on
RC0 and RC1, in order for auto-detect to work without pressing
MCLR between plugging and unplugging PS/2 devices.
2.2.2
2.2.3
2001 Microchip Technology Inc.
About the PS/2 Port
IBM ? originally developed the PS/2 port for use on its PS/2 family of comput-
ers. This port is a synchronous serial port clocked by the PS/2 device (key-
board/mouse). Generally, PC’s have two PS/2 ports labeled as keyboard or
mouse. The PICDEM? USB only has one PS/2 port. Since the hardware is
the same, either the keyboard or mouse can be used, simply by interpreting
the data correctly.
Hardware Implementation
The PS/2 port is a 6-pin DIN which only uses 4 pins. The pins are used for
power, ground, clock, and data. Power and ground pins are directly tied to V DD
and V SS . If power management is desired, the power pins must be driven via
switches from other I/O pins.The clock pin is connected to RC0, while the data
pin is connected to RC1. The PS/2 device clocks the host even when it is receiv-
ing data. The data pin is used to send and receive data from the keyboard.
DS41174A-page 17
相关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 接口类型: 工作电源电压: