PS2 Keyboard Interface Using Spartan-3 Starter Kit Board

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Give qualifications of instructors: DAP
Programmable Interval Timer
Programmable Keyboard/ Display Interface: 8279
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
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.
1 COMP541 Keyboard Interface Montek Singh April 9, 2007.
Team LIT Scott Butler Kristin Haeusler Michael Hatt Brock Smith.
Configuration. Mirjana Stojanovic Process of loading bitstream of a design into the configuration memory. Bitstream is the transmission.
COMP541 Input Devices: Keyboards, Mice and Joysticks
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
2 Way FM Car Starter Dan Owens April 12, 2005 Instructor: Dr. Pao-Lo Liu Department of Electrical Engineering University at Buffalo Course Requirement.
EE 316 Computer Engineering Junior Lab Digital Hangman.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 15 PC Standard Bus Interfaces WK.
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
ECE 448: Spring 12 Lab 4 – Part 2 Finite State Machines Basys2 FPGA Board.
USB: UNIVERSAL SERIAL BUS Joe Kaewbaidhoon Alex Motalleb Vishal Joshi Prepared for EECS 373 University of Michigan, Ann Arbor 1.
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.
Did you know that the keyboard on a typical computer system is actually a computer itself? Your basic Windows keyboard At its essence, a keyboard is a.
INPUT-OUTPUT ORGANIZATION
Dr. Sanatan Chattopadhyay Dr. Sudipta Bandopahyaya
CPE 169 Digital Design Laboratory Digilent Inc. Nexys Development Board.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
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.
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
Remote Control of a Furby Toy with Bluetooth
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
Chapter 7 Low-Level Protocols
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
1 Keyboard Controller Design By Tamas Kasza Digital System Design 2 (ECE 5572) Summer 2003 A Project Proposal for.
EE4OI4 Engineering Design UP1core Library Functions.
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
BYU ECEn 320 Lab 4 UART Transmitter. BYU ECEn 320 UART Transmimtter Specification VGA Serial A1 Expansion Connector PS2 A2 Expansion Connector B1 Expansion.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
8279 KEYBOARD AND DISPLAY INTERFACING
ECE 448 – FPGA and ASIC Design with VHDL Lecture 12 PicoBlaze Overview.
Introduction to Experiment 7 Sorting Using PicoBlaze ECE 448 Spring 2010.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
Slide 1 Project 1 Task 2 T&N3311 PJ1 Information & Communications Technology HD in Telecommunications and Networking Task 2 Briefing The Design of a Computer.
PROJECT - ZYNQ Yakir Peretz Idan Homri Semester - winter 2014 Duration - one semester.
1 COMP541 Input Devices: Keyboards, Mice and Joysticks Montek Singh Apr 6, 2015.
PPI-8255.
8279 KEYBOARD AND DISPLAY INTERFACING
PS/2 Mouse/Keyboard Port
1 ENGG 1015 Tutorial Three Examples of Finite State Machines Supplementary notes Learning Objectives  Learn about Design of Finite State Machines Ack.:
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.
AppliedVHDLV1 Aim: Capture, simulate, implement appliedVHDLV1 System Supports GUI r/w access from/to FPGA CSR block This document contains: EE427 submission.
Lab Environment and Miniproject Assignment Spring 2009 ECE554 Digital Engineering Laboratory.
Keyboard Introduction Keyboard is an input device. It is used to give text, numbers and controls as input to computer. The.
ECE 554 Miniproject Spring
Computer Networks & Digital Lab project. In cooperation with Mellanox Technologies Ltd. Guided by: Crupnicoff Diego & Gurewitz Omer. Students: Cohen Erez,
UART Jin-Fu Li. 2 EE613 VLSI DesignNational Central University Introduction UART (modem)  Universal asynchronous receiver and transmitter Data format.
Jeremy Sandoval University of Washington May 14, 2013
Serial Communications
Chapter 6 Input/Output Organization
COMP541 Input Devices: Keyboards, Mice and Joysticks
COMP541 Input Devices: Keyboards, Mice and Joysticks
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Lab Environment and Miniproject Assignment
Lecture 18 PicoBlaze I/O Interface
EET 2261 Unit 8 Seven-Segment Displays
Lecture 13 PicoBlaze I/O & Interrupt Interface
Interfacing keyboard with FPGA
Presentation transcript:

PS2 Keyboard Interface Using Spartan-3 Starter Kit Board Structure of Computer Systems Brateanu Vlad Group 30442

Introduction PS2 port was introduced in IBM’s Personal System 2 personnel computers. It is a widely supported interface for a keyboard and mouse to communicate with the host.

The PS2 Connector The PS2 port contains two wires for communication purposes. One wire is for data, which is transmitted in a serial stream. The other wire is for the clock information, which specifies when the data is valid and can be retrieved.

The PS2 Connector Pins

Timing Diagram Information is sent via 11-bit Words. Each word contains a Start bit, 8 Data bits, a Parity bit and a Stop bit. The keyboard interface allows for bidirectional data transfer.

PS2 Keyboard Scan Codes

Block Diagram

Block Diagram (2)

Design

Design – The 7 Segment DIsplay The Four Digit 7 Segment will be used for displaying the result, which will be the SCAN code coresponding to the pressed key Since the scan code of each button is formed of 8 bits, the value will be displayed in hexadecimal using 2 seven segment displays

Design – The Interpreter It has the job of Interpreting the 8 bit character received by the PS2 Controller. It checks to see if received data is either a character, or a Caps Lock or Num Lock command. In case of the latter, it also sends the required signal back to the PS2 Controller so that it may inform the Keyboard that the coresponding LED should be switched on.

Flow Chart – The Interpreter

Design – The PS2 Controller Is made up of two Finite State Machines. One for the reading operation and the other for the Writing operation. While a writing operation occurs, the read is blocked.

PS2 Controller Read Operation The falling edge of the PS2_CLOCK signal is used as refference for data retrieval. At each falling edge, another bit is loaded into a shift register. After all bits are loaded, the Char_Ready signal is asserted and the Interpreter may read the whole character

Read Operation Flow Chart

PS2 Controller Write Operation The keyboard sends data only when both the data and clock lines are High (the idle state) The host is the buss master, meaning that before sending data, the keyboard must first check if the host isn’t already sending data.

PS2 Controller Write Operation (2) Same as for the Read operation, this time, the keyboard is the receiver. The host drives the clock signal low, then sends an “ED” (in hexadecimal) command to which the keyboard replies with “FA” as acknowledgement. After this, the host sends another byte to set led status.

PS2 Controller Write Operation (3)

Bibliography [1] Spartan 3 StarterKit Board User Guide -for basic information [2] FPGA Prototyping by VHDL Examples – Xilinx Spartan 3 Version by Pong P. Chu Cleaveland State University - Chapters 8 and 9 describe in detail the operations and also gives examples