The PC Game Adapter. The game adapter card typically contains a DB15 connector into which you plug an external device. The digital joystick is probably.

Slides:



Advertisements
Similar presentations
MICROPROCESSOR BASED SYSTEM DESIGN
Advertisements

There are two types of addressing schemes:
Chapter 2 HARDWARE SUMMARY
University of Tehran 1 Microprocessor System Design Interrupt Omid Fatemi
Motherboard Further Information Click on the image for details about each component.
Set 20 Interrupts. INTERRUPTS The Pentium has a mechanism whereby external devices can interrupt it. Devices such as the keyboard, the monitor, hard disks.
Debouncing Switches Mechanical switches are one of the most common interfaces to a uC. Switch inputs are asynchronous to the uC and are not electrically.
PLC OPERATION & PROGRAMMING Dr. ONUR TOKER. What is a PLC ? PLC is a computer system controlling a process. inputs - the keyboard is analogous to a proximity.
CS2422 Assembly Language & System Programming November 2, 2006.
8.7 Memory management Program E Program D System memory DOS INT 21, function 48H: Allocate Memory Specification: allocates a number of memory paragraphs.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
1 Project supervised by: Dr Michael Gandelsman Project performed by: Roman Paleria, Avi Yona 26/4/2004 Multi-channel Data Acquisition System Final_A Presentation.
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
Sound Chapter Types of Sound Waveforms MIDI Sound is related to many things in computers but only Wav and MIDI exist in PCs.
06/25/091 Computer Interfacing Via the Parallel Port Carlos M. Oppus ECCE Program, AdMU.
Parallel Ports of PC Methods of interfacing Examples.
University of Tehran 1 Interface Design Keyboard and Printer Omid Fatemi.
The 8051 Microcontroller architecture
Lecture 5: Sensors. A sensor is any element that provides information from the to the robot, either about the environment or about the robot itself. Sensing.
Lesson 3 — How a Computer Processes Data
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
Input/Output. I/O Initiation & Control  Transfer of data between circuitry external to the microprocessor and the microprocessor itself.  Transfer of.
Interrupts and DMA CSCI The Role of the Operating System in Performing I/O Two main jobs of a computer are: –Processing –Performing I/O manage and.
Memory Layout and SLC500 System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
ECE291 Computer Engineering II Lecture 12 Josh Potts University of Illinois at Urbana- Champaign.
CSNB374: Microprocessor Systems Chapter 5: Procedures and Interrupts.
Operating System Provides a set of services to system users Manages memory (primary and secondary) and I/O devices Exploits the hardware resources of one.
SET 21 OPERATING SYSTEM USE OF ASSEMBLY LANGUAGE.
Digital Electronics Board Game Counter Analog. Board Game Counter Demo - Analog 2 This presentation will Review the Board Game Counter block diagram.
Alex Wanamaker.  2 astable 555 timer circuits  Blinking rate: ~1.1 seconds  Q1 and Q2 used to provide additional current for the circuit beyond.
Basic LED Interface.
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Lecture 11 Text mode video
Components of Hardware 1. Processor Memory Input and output devices Storage 2.
Von Neumann Machines. 3 The Von Neumann Architecture Model for designing and building computers, based on the following three characteristics: 1)The.
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
Submitted by:.  Project overview  Block diagram  Power supply  Microcontroller  MAX232 & DB9 Connector  Relay  Relay driver  Software requirements.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
PCs ENVIRONMENT and PERIPHERALS Lecture 1. Software The series of instructions that tells the hardware how to perform tasks Software The series of instructions.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Actuators and Control, Part 4 Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
ARDUINO UNO The Arduino uno is a microcontroller board based on the ATmega328. It has 14 digital Input / Output pins (of which 6 can be used as PWM outputs),
INTRODUCTION TO ROBOTICS Part 5: Programming
Application Case Study Security Camera Controller
Basic Computer Organization and Design
COMP 1321 Digital Infrastructure
Conveyor Belt Production Line
بسم الله الرحمن الرحيم Table of contents:
PC Mouse operated Electrical Load Control Using VB Application
The Programmable Logic Controller
DIGITAL CALCULATOR USING 8051
SMART CARD ENABLED EMPLOYEE IDENTIFICATION FOR SECURITY PURPOSE
Project Members: M.Premraj ( ) G.Rakesh ( ) J.Rameshwaran ( )
Session III Architecture of PLC
Microprocessor and Assembly Language
Interfacing Memory Interfacing.
Motion Axis Output Cam Instruction
Training 11/11/16 Robot Code (WPILib).
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
ACOE347 – Data Acquisition and Automation Systems
COMP 1321 Digital Infrastructure
Microprocessor and Assembly Language
Presentation by Anthony Dotterer
Presentation transcript:

The PC Game Adapter

The game adapter card typically contains a DB15 connector into which you plug an external device. The digital joystick is probably the least complex device you can connect to the PC’s game port. This device consists of four switches and a stick. Pushing the stick forward, left, right, or pulling it backward closes one of the switches. The game adapter card provides four switch inputs, so you can sense which direction (including the rest position) the user is pressing the digital joystick. Most digital joysticks also allow you to sense the in-between positions by closing two contacts at once. A joystick contains two pots connected with a stick. – Moving the joystick along the x-axis actuates one of the pots, – moving the joystick along the y-axis actuates the other pot. – By reading both pots, you can roughly determine the absolute position of the pot within its working range.

The Game Adapter Hardware The game adapter hardware is simplicity itself. There is a single input port and a single output port. The input port bit layout is: – The four switches come in on the H.O. four bits of I/O port 201h. – If the user is currently pressing a button, the corresponding bit position will contain a zero. – If the button is up, the corresponding bit will contain a one.

After all, how can we represent one of a large number of potential pot positions (say, at least 256) with a single bit? – Obviously we can’t. However, the input bit on this port does not return any type of numeric value specifying the pot position. Instead, each of the four pot bits is connected to an input of a resistive sensitive 558 quad timer chip. When you trigger the timer chip, it produces an output pulse whose duration is proportional to the resistive input to the timer. The output of this timer chip appears as the input bit for a given pot. The schematic for this circuit is

Using BIOS’ Game I/O Functions The BIOS provides two functions for reading game adapter inputs. Both are sub functions of the int 15h handler To read the switches, load ah with 84h and dx with zero then execute an int 15h instruction. – On return, al will contain the switch readings in the H.O. four bits (see the diagram in the previous section). – This function is roughly equivalent to reading port 201h directly. To read the analog inputs, load ah with 84h and dx with one then execute an int 15h instruction. – On return, AX, BX, CX, and DX will contain the values for pots zero, one, two, and three, respectively. – In practice, this call should return values in the range h