PAK-VIa PS/2 Coprocessor Data Sheet by AWC

Similar documents
PAK-XI PS/2 Coprocessor Data Sheet by AWC

GP1 LCD RS232 Terminal Kit 2003 by AWC

Locus Engineering Inc

If You Need Help. Registering Your PAK-IV PAK-IV

APP-IIb PIC Development Kit by AWC

melabs Serial LCD Firmware Version 1.1 3/5/07

melabs Serial LCD Firmware Version 1.0 2/7/07

APP-II PIC Development Kit by AWC

Dual Interface LCD Display Controller

PS232. RS-232 to PS/2 Keyboard Port Adapter Part # SA0009 (Version 4.0) Copyright 2003 L3 Systems, Inc. Redmond

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 3/3/2011

EDE700 Serial LCD Interface IC

BV4626 General Purpose I/O. Product specification. Mar 2010 V0.a. ByVac Page 1 of 13

CAUTION: TTL Only, Do Not Use ± 12 V RS-232

RN-174 WiFly Super Module

RN-174. WiSnap M2 Super Module. Features. Description. Applications. ~ page 1 ~ rn-174-ds v1.1 6/1/2011

BV4601. Serial & I2C Twin Relay. Product specification. Sep V0.a. ByVac Page 1 of 10

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

Supplement for module D061 incl. ATMega128 Prozessor

Supplement for module D041 incl. ATMega8 Prozessor

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

CLCD1 Serial 1 wire RS232 LCD development board

CEIBO FE-5111 Development System

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 1/24/2011

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

EWAVE Inc Gracefield Ln. Dallas, Texas (972)

Universal RFID Socket board with USB interface

SLCD1-IC Serial LCD Processor

1/Build a Mintronics: MintDuino

keyestudio Keyestudio MEGA 2560 R3 Board

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 4/20/2011

KeyVerter. PS/2 Keyboard To RS-232/TTL Converter. Copyright 2003 Intuitive Circuits, LLC

MIFARE Secure OEM Reader Module Data Sheet

BASIC Stamp 1 Project Board (#27112) Development / Education Platform for the BASIC Stamp 1

DEV-1 HamStack Development Board

DIRRS+ Digital Infra-Red Ranging System Ideal for robotics projects. Singles (SKU # Pack (SKU #35100)

DCC-8 DIGITAL TO EIGHT CURRENT LOOP CONVERTER OPERATING MANUAL

KB232. PS/2 Keyboard RS-232 Adapter Part # SA0008 (Version 3.0) Copyright 2003 L3 Systems, Inc. Redmond

PK2200 Series. Features. C-Programmable Controller. Specifications Board Size Enclosure Size Operating Temp.

ELM325 J1708 Interpreter

Applications Computer Mice for Desktop PCs, Workstations and Portable Computers Integrated Input Devices

How to Use an Arduino

The PC's keyboard. PC Keyboard Theory. Quality Information in one Place...

MICRO-1356 MULTI-PROTOCOL READER

ARDUINO MICRO WITHOUT HEADERS Code: A000093

RN-134. WiFly GSX Super Module SuRF Board. Features. Description. Applications. ~ page 1 ~ rn-134-ds v1.

Web Site: Forums: forums.parallax.com Sales: Technical:

CEIBO FE-51RD2 Development System

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs

ELM325 J1708 Interpreter

Datasheet for PAS12 Serial Adaptor rev 1.50

ME456: Mechatronics. Prof. Clark Radcliffe. Do you have the knack? Joonho Lee, TA. What s Mechatronics? Mechatronics

ARDUINO MEGA ADK REV3 Code: A000069

AKKON USB CONTROLLER BOARD

SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5)

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

ESPino - Specifications

SECURE DIGITAL ACCESS SYSTEM USING IBUTTON

BV4505. IASI-Keypad Controller. Product specification. January 2009 V0.a. ByVac Page 1 of 13

ECE Senior Project Status Report. for. Scalable Regulated Three Phase Rectifier. September 21, Prepared by: Tyler Budzianowski.

PIC-I/O Multifunction I/O Controller

ARDUINO MEGA 2560 REV3 Code: A000067

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

USB485 USB to RS485 Converter Card

USB Stamp Adapter Board

BV4109. Serial LCD Controller. Product specification November ByVac 2006 ByVac Page 1 of 12

ARDUINO LEONARDO WITH HEADERS Code: A000057

SPECIFICATION MX PS/2 Mouse Controller VERSION 1.5

B1DIL. AVR32 USB Module. Rev. 1.0 Documentation Rev. 4. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

PICAXE DEVELOPMENT BOARD (AXE091)

ericssonz LBI-38616B MAINTENANCE MANUAL FOR MTD TM SERIES AND DATA RADIO LOGIC BOARD 19D902151G3 DESCRIPTION CIRCUIT ANALYSIS TABLE OF CONTENTS

HC-8+ IO Expander Version 1.1

Web Site: Forums: forums.parallax.com Sales: Technical:

um-fpu64 Floating Point Coprocessor 28-pin Breakout Board Introduction Bare um-fpu64 28-pin Breakout Board

ARDUINO YÚN Code: A000008

Base Module Board. Engineering» Design» Product. User Manual. Blue Wolf, Inc W. State Street Garden City, ID 83714

CO1211A/00 Converter Control/Power

Slave Embedded Serial Bluetooth board Features and Benefits

I/O232-A User s Guide

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

Instruction Manual for BE-SP3 Circuit. 10/21/07

MUSRF05 Interface I.C.

Microcontroller Design Catalog

MCS-51 Serial Port A T 8 9 C 5 2 1

HC-8+ IO Expander Version 1.0

GL116 ENCODER/DECODER MANUAL GLOLAB CORPORATION

Manual v1.0 I/O Expander IOX

KE18 PC Keyboard Encoder User Manual

BV4542. I2C or Serial 16x2 with Keypad interface

Prop-SX Controller PN: 31103

RN-171-EK Evaluation Board

CAT Controlled Fract-N Synthesizer

Web Site: Forums: forums.parallax.com Sales: Technical:

Arduino ADK Rev.3 Board A000069

ARDUINO LEONARDO ETH Code: A000022

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

AN ELNEC EN ISP-HC08. Application note for In-System Programming of Motorola/Freescale HC08 microcontrollers

CEIBO FE-W7 Development System

Transcription:

PAK-VIa PS/2 Coprocessor Data Sheet 1999-2003 by AWC AWC 310 Ivy Glen League City, TX 77573 (281) 334-4341 http://www.al-williams.com/awce.htm V1.5 30 Aug 2003

Table of Contents Overview...1 If You Need Help...1 Pin Connections...3 Software Commands...4 Typical Circuits and Software...5 Frequently Asked Questions...9 Q: Can I run the PAK VIa from a different clock source?...9 Q: Is there a second source for the PAK VIa?...9 Q: What is the state of the PAK at startup?...9 Q: How do I connect the resonator?...9 Further Information...9 Specifications...10 Absolute Maximum Ratings...10

Overview The Stamp PAK VIa allows you to use an ordinary PS/2 or ATstyle keyboard with any computing device capable of handling RS232 communications. The PAK VIa is the perfect solution for microcontrollers that need real input. It provides a raw mode for ultimate control or a cooked mode that makes interfacing with the keyboard simple. Here are some of the PAK VI s major features: Serial interface uses TTL level RS232 at 9600 Uses as few as 1 pin to connect to the host Buffers up to 32 keystrokes or scan codes Easy to use The PAK VIa is a standard 18-pin IC. In order to operate it must have a regulated supply of 5V and connection to a clock element. The Stamp PAK VIa includes a 20MHz ceramic resonator that you can use to clock the chip. Other than the power and clock connections, the Pak VIa requires at least one wire to connect between your microcontroller (the host) and itself. Depending on the host's capabilities and your application, you may want to use a few additional pins to control the PAK If You Need Help If you require assistance with your PAK VIa, please feel free to contact us. The best way to get support is via e-mail (stamp@alwilliams.com). However, you may also call between 9AM - 4PM Central Time at (281) 334-4341. You can also fax to (281) 754-4462. Be sure to check out our Web page for updates at www.alwilliams.com/awce.htm. 1

1 2 3 IMODE ENABLE2 ENABLE RES2 18 17 16 4 5 6 RESET Vss CLOCK PAK-VI A RES1 Vdd DAVAIL 15 14 13 7 8 RX TX DATA 12 11 9 10 WARNING: The PAK VIa is a static-sensitive, CMOS device. Observe static precautions when handling. Operating the device without both Vss pins grounded or with RES1 or RES2 disconnected may damage the chip. 2

Pin Connections Pin Name Type Description 2 IMODE Input Initial mode (ground for cooked mode; +5V for raw mode) 7 RX Input TTL level RS232 input 8 TX Output TTLlevel RS232 output 17 Enable Input If this pin is high, the PAK transmits codes it receives from the keyboard; the PAK always responds to commands 18 Enable2 Input If this pin is low, the PAK transmits codes it receives from the keyboard; the PAK always responds to commands 13 DAvail Output High when data is available 4 RESET Input Hardware resets the PAK when low. Must be high for normal operation 5 Vss Power Ground 14 Vdd Power +5V 15 RES1 Clock Connects to resonator 16 RES2 Clock Connects to resonator 11 DATA I/O Keyboard data line 6 Clock I/O Keyboard clock line 1,3,9,10,12 Not used 3

Software Commands Code Name Description $01 COOK Sets cooked mode (default) $02 RAW Sets raw mode $03 SLOFF Turns off scroll lock LED $04 SLON Turns on scroll lock LED $05 NLOFF Turns off num lock LED $06 NLON Turns on num lock LED $07 CLOFF Turns off cap lock LED $08 CLON Turns on cap lock LED $09 AION Turns on auto indicator mode (cooked mode only; default) $0A AIOFF Turns off auto indicator mode $0B ESCAPE Sends next byte directly to keyboard $0D FLUSH Flush PAK-VI input buffer $FF RESET Warm reset PAK and reset keyboard Operating Modes If pin 2 is grounded, the PAK VIa starts in cooked mode. Keys you press generate their ASCII equivalent on the serial output. The PAK manages the indicator lights. Most non-ascii characters generate a special code greater than or equal to $80. If you prefer, you can disable the autoindicator mode and take control of the keyboard LEDs in your software by issuing the AIOFF command. You can also receive raw scan codes instead of ASCII codes by issuing the RAW command. In this mode you ll receive make and break codes for each key pressed. 4

Typical Circuits and Software Connecting the PAK to its external components is simple. Supply 5V to Vdd and ground the Vss pins. Connect the two outer pins of the ceramic resonator to the RES1 and RES2 pins (the order does not matter). Ground the center pin of the resonator. Connect the RESET pin to 5V. For the simplest mode of operation leave ENABLE tied to +5V and jumper ENABLE2 to ground. Of course, you'll also need to connect the RX and TX pin to the host microprocessor. If the host uses true RS232, you ll need a line driver (like the Maxim 232 chip). For connection to a TTL inverted device (like the Basic Stamp) you can directly connect the pins. If you are not planning to send the PAK any commands, you can omit the RX line. If you d like an indication of when the PAK has data available, you can monitor the DAVAIL pin which is high when data is available. If you are using the Basic Stamp you'll have no problems using the SEROUT command to send codes to the PAK. Many Basic Stamp-compatible compilers have these commands too. Operating Modes There are two major modes that you can use with the PAK-VIa: Cooked mode and raw mode. Cooked mode provides the keyboard input as ASCII. Special characters (like function keys) appear as special characters above $7F. If you want more control, you can switch to raw mode. Raw mode sends you every byte the keyboard generates. There is no ASCII conversion, nor does the PAK-VIa automatically track the shift, caps lock, or other state keys. This mode provides the ultimate flexibility, but requires more work to use. In raw mode, you may get several bytes for each key pressed. Most keyboards start in mode 2 (although you can change the mode on many keyboards). In mode 2, each key emits at least one scan code 5

for a make (key press) and at least two codes for a break. For example, the space bar emits $29 for make, and $F0 $29 for break. Some keys, particularly extended keys, have more codes. For example, the home key that is not part of the numeric key pad is scan code $E0 $6C and the break code is $E0 $F0 $6C. 5V 1 18 ENABLE2 Stamp P13 5V 2 3 4 IMODE RESET 17 ENABLE 16 RES2 15 RES1 RES 5 6 Vss CLOCK PAK-VI A 14 Vdd 13 DAVAIL Stamp P14 7 RX 12 Stamp P15 8 TX 11 DATA 9 10 To Keyboard An Example Circuit Note: Pin 7 goes to SEROUT pin; pin 8 goes to SERIN pin Important Note Not all keyboards are the same. Raw mode will work with any standard keyboard, but your keyboard may not support all features that other keyboards support. By the same token, your keyboard may support more features than other keyboards. Check the keyboard s documentation 6

Keyboard Commands Most keyboards allow you to send a variety of commands: $FF - Reset keyboard $FE - Resend last byte $F5 - Disable keyboard $F4 - Enable keyboard $F3 - Set typematic rate $F2 - Return ID $F0 00 - Return current code set $F0 01 - Set code set 1 (XT compatible) $F0 02 - Set code set 2 (AT compatible) $F0 03 - Set code set 3 (make codes only) $EE - Echos $EE back $ED - Sets indicator LEDs Programming the keyboard is beyond the scope of this manual. However, most commands return an acknowledge byte ($FA). You can find more about raw keyboard programming on the Web (see the end of this manual). Note that you should not use $ED to set the indicator LEDs in cooked mode because it will confuse the PAK. Instead, use the PAK commands to set the indicators. Before sending commands directly to the keyboard, you should be in raw mode. In addition, you should prefix each byte with an escape command. If you want to send multiple bytes to the keyboard, you must prefix each byte with escape. Hints If you are using a Stamp or other microcontroller, you may want to switch character sets when using raw mode. Use the $F0 command to change sets. Set #1 uses a single-byte scan code for each key. Bit 7 indicates if the code is for make (0) or break (1). This simplifies coding for the Stamp and other similar processors. 7

PS/2 keyboards require 4 wires: two for power and ground and two for clock and data. For prototyping, you may find it convinient to acquire a PS/2 connector designed to connect PS/2 keyboards to PC motherboards (you can find these at any place that sells PC components for a few dollars). These PS/2 connectors terminate in a.1 single inline pin socket. You can either cut the wires to connect to the PAK, or use some.1 single inline pins to make the connection. Special Codes In cooked mode, the PAK sends characters above $7F for many special keys: $80 - F1 $86 - F7 $90 - Home $96 - End $81 - F2 $87 - F8 $91 - Up $97 - Down $82 - F3 $88 - F9 $92 - PgUp $98 - PgDn $83 - F4 $89 - F10 $93 - Left $99 - Ins $84 - F5 $8A - F11 $94 - Numeric 5 $9A - Del $85 - F6 $8B - F12 $95 - Right Notes: If shift key is down, add $40 to above values If num lock is on, $90-$9A appear as numbers 8

Frequently Asked Questions Q: Can I run the PAK VIa from a different clock source? A: You may be able to use a lower clock speed, but it isn t recommended. The PWM and serial communications depend on specific timing. If you do run at a different clock speed, you can expect the baud rates to scale accordingly. So using a 25MHz clock, for example, will cause the PAK to communicate at 4800 and 1200 baud. AWC does not support operation at any speed other than 50MHz. Q: Is there a second source for the PAK VIa? A: No. However, if you have a high-volume application and you are concerned about availability, contact AWC about obtaining a license to produce your own PAKs or obtain them from third parties. Q: What is the state of the PAK at startup? A: Initially the PAK resets the keyboard, forces keyboard mode 2 (which should be the default) and is in the mode indicated by the IMODE pin. If in cooked mode, autoindicator mode is also set. Q: How do I connect the resonator? A: The center pin is ground and the outer pins are interchangeable. Further Information To learn more about programming PC keyboards and mice in raw mode, you can refer to several resources on the World Wide Web: members.tripod.com/~ilkerf/c64tower/f_keyboard_faq.h tml www.al-williams.com/awce/pak6mou.htm www.repairfaq.org/repair/f_pinouts2.html 9

Specifications Absolute Maximum Ratings Ambient temperature under bias Storage temperature Voltage on VDD with respect to VSS Maximum current out of VSS pin Maximum current into VDD pin Maximum output current sunk by any I/O pin Maximum output current sourced by any I/O pin -40 C to +125 C -65 C to +150 C -0.3V to +6.5V 300 ma 250 ma 25 ma 25 ma DC Characteristics Parameter Minimum Typical Maximum Supply voltage 4.5V 5V 5.5V Vdd rise time on power up.05v/ms - - Supply current @ 5V - 4mA 7mA 10