1 COMP541 Keyboard Interface Montek Singh April 9, 2007.

Slides:



Advertisements
Similar presentations
Keyboarding Vocabulary I Finals Study Basic Computer.
Advertisements

I2C bus Inter Integrated Circuits bus by Philips Semiconductors
INPUT-OUTPUT ORGANIZATION
1 COMP541 More on State Machines and Video Scanout Montek Singh Feb 13, 2007.
Give qualifications of instructors: DAP
FSM examples.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
EE 316 Computer Engineering Junior Lab Word Mastermind.
EE 316 Computer Engineering Junior Lab PS/2 Keyboard.
Other I/O LCD display Flash ROM Keyboard (PS/2) UART connectors.
PS/2 Mouse/Keyboard Port Lecture L9.4. PS/2 Port.
Spring EE 316 Computer Engineering Junior Lab LCD modules, PROMs, Serial Ports.
1 COMP541 VGA Character Terminal Montek Singh Mar 1, 2007.
FILES, DATA, AND SIGNALS FILE HAMLET. TXT USER DATA
COMP541 Input Devices: Keyboards, Mice and Joysticks
EE 316 Computer Engineering Junior Lab Digital Hangman.
1 COMP541 State Machines – 2 Registers and Counters Montek Singh Feb 8, 2007.
Counters and Registers
1 SCI Serial Communication Interface Gerrit Becker James McClearen Charlie Hagadorn October 21, 2004.
1 Keyboard Controller Design By Tamas Kasza Digital System Design 2 (ECE 5572) Summer 2003 Presentation for.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Keyboard Interface Anselmo Lastra.
PS/2 Mouse/Keyboard Port Discussion D7.2. PS/2 Port.
PS2 Keyboard Interface Using Spartan-3 Starter Kit Board
INPUT-OUTPUT ORGANIZATION
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Chapter 8 Input/Output l I/O basics l Keyboard input l Monitor output l Interrupt driven I/O l DMA.
1 COMP541 Input Devices: Keyboards, Mice and Joysticks Montek Singh Apr 16, 2012.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
EE4OI4 Engineering Design UP1core Library Functions.
8279 KEYBOARD AND DISPLAY INTERFACING
EE 316 Computer Engineering Junior Lab Serial Ports, LCD Displays & PROMs.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
The Principle of Electronic Data Serial and Parallel Data Communication Transmission Rate Bandwidth Bit Rate Parity bits.
1 COMP541 Input Devices: Keyboards, Mice and Joysticks Montek Singh Apr 6, 2015.
Final Project. System Overview Description of Inputs reset: When LOW, a power on reset is performed. mode: When LOW, NORMal mode selected When HIGH,
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
PPI-8255.
8279 KEYBOARD AND DISPLAY INTERFACING
PS/2 Mouse/Keyboard Port
FUNDAMENTALS OF NETWORKING
1 COMP541 State Machines – 2 Registers and Counters Montek Singh Feb 11, 2010.
Unit 1 Lecture 4.
The Spartan®-3E FPGA Starter Kit board. A computer mouse is designed mainly to detect two-dimensional motion on a surface. Its internal circuit measures.
UNIT 7 - INTRODUCTION TO I/O INTERFACING. TWO MAJOR TYPES OF I/O INTERFACING ISOLATED I/O - DEDICATED I/O INSTRUCTIONS ARE USED TO ACCESS I/O DEVICES.
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
Keyboard Introduction Keyboard is an input device. It is used to give text, numbers and controls as input to computer. The.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
PlayStation 2 DualShock 2 Controller Ryan O’Keefe, Kabir Singh and Adrian Padin 1.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
Data Transmission and Networks Transmission error checking & correcting.
1 COMP541 Final Missing Pieces of MIPS: Adding Memory & I/O Montek Singh Apr 6, 2010.
INTERFACING KEYBOARD WITH ATMEGA32 ELECTRONICS & COMMUNICATION TITLE.
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Serial I/O Port.
COMP541 Input Devices: Keyboards, Mice and Joysticks
Serial I/O and Data Communication.
COMP541 Input Devices: Keyboards, Mice and Joysticks
Communication Lines Fundamentals.
DIGITAL DATA COMMUNICATION TECHNIQUES
Computer Organization and Design
EEL 3705 / 3705L Digital Logic Design
DIGITAL DATA COMMUNICATION TECHNIQUES
Serial Communication Interface: Using 8251
DIGITAL DATA COMMUNICATION TECHNIQUES
Exercise 3 1. Describe what are the packet, the packet communication, and motivations using the packet in computer communications. 2. (1) An ASCII coded.
Introduction Communication Modes Transmission Modes
Interfacing keyboard with FPGA
Presentation transcript:

1 COMP541 Keyboard Interface Montek Singh April 9, 2007

2 PS/2 Keyboard  Uses a synchronous serial protocol What does that mean? What does that mean?

3  Two lines Clock (10-20KHz) Clock (10-20KHz) Data Data  Pulled high by resistors  Asserted low  Takes away your pushbutton unless you do clever stuff Physical Interface

4Bidirectional  Kybd-to-host and host-to-kybd on same wires CAPS LOCK light for example CAPS LOCK light for example  To send, host takes data line low Sometimes take clk low first Sometimes take clk low first  Then kybd starts clocking Host sends data synced to kybd clock Host sends data synced to kybd clock  You shouldn’t need to send to kybd

5Protocol  11 bits Start – always 0 Start – always 0 8 bits of data 8 bits of data Odd parity bit Odd parity bit Stop bit – always 1 Stop bit – always 1  Clocked by keyboard  Value should be latched on negedge of keyboard clock Illustration from

6 What is Sent  ASCII is not sent  Scan codes for keys Least significant bit first Least significant bit first Illustration from

7 Scan Codes  Normally translated by software You remap your keys, for example You remap your keys, for example  Software takes care of Shift, caps lock, control Shift, caps lock, control

8 Some Scan Codes Long  Two code sequence common  Have a look at Break key!

9 Even More Complicated  Scan code generated when you press  And when you release Two bytes: F0 followed by key scan code Two bytes: F0 followed by key scan code Example: Example:  Space pressed, 29 sent  Space released, F0 29 sent  If you hold key, scan code repeated

10Resources  Information  Scan codes  There is also Verilog for keyboard interfaces available on web.

11 My Verilog  I will post my Verilog code on the web site You should memory-map the character code register You should memory-map the character code register Maybe add a single bit register to indicate that new character has arrived Maybe add a single bit register to indicate that new character has arrived