Joystick Interface Circuit Using The 558 Quad Timer
The Apple II microcomputer used a quad timer 558 in monostable (or "one-shot") mode to interface up to four "game paddles" or two joysticks to the host computer. It also used a single 555 for the cursor flashing.
A similar circuit was used in the IBM PC. In the joystick interface circuit of the IBM PC, the capacitor (C) of the RC network (see Monostable Mode above) was generally a 10 nF capacitor. The resistor (R) of the RC network consisted of the potentiometer inside the joystick along with an external resistor of 2.2 kilohms. The joystick potentiometer acted as a variable resistor. By moving the joystick, the resistance of the joystick increased from a small value up to about 100 kilohms. The joystick operated at 5 V.
Software running in the host computer started the process of determining the joystick position by writing to a special address (ISA bus I/O address 201h). This would result in a trigger signal to the quad timer, which would cause the capacitor (C) of the RC network to begin charging and cause the quad timer to output a pulse. The width of the pulse was determined by how long it took the C to charge up to 2/3 of 5 V (or about 3.33 V), which was in turn determined by the joystick position.
Software running in the host computer measured the pulse width to determine the joystick position. A wide pulse represented the full-right joystick position, for example, while a narrow pulse represented the full-left joystick position.
Read more about this topic: 555 Timer IC, Example Applications
Famous quotes containing the word circuit:
“each new victim treads unfalteringly
The never altered circuit of his fate,
Bringing twelve peers as witness
Both to his starry rise and starry fall.”
—Robert Graves (18951985)