22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ORGAN KEYBOARD INTERFACE 303<br />

1--+---REOUEST<br />

ACKNOWLEDGE<br />

6532<br />

PB7 SPARE<br />

B<br />

KEY<br />

PB6 SPARE NUMBER<br />

PBS<br />

PB4<br />

PB3<br />

PB2<br />

PBI<br />

PB0<br />

PA7<br />

PA6<br />

PAS<br />

PM<br />

PA3<br />

8<br />

PA2<br />

PAl<br />

PA0<br />

KEY # DEN<br />

Fig. 9-6. Using system interface<br />

128 bytes <strong>of</strong> RAM in the 6532 can be reached by both page zero and page<br />

one addresses, which allows both stack usage and convenient page zero<br />

addressing.<br />

The remaining logic is shown in Fig. 9-6. The four-latch les are wired<br />

to 12 <strong>of</strong> the port bits on the 6532 as a simple output expansion (12 bits to 32<br />

bits). The keyboard program can manipulate the data and clock inputs to the<br />

latches and thus exert complete control over their contents. The four groups<br />

<strong>of</strong> three-state outputs from the latches allow flexible and convenient interfacing<br />

to the using system. Two more <strong>of</strong> the port bits are used to control and<br />

sense the handshake flip-flop. The remaining 2 bits are available for expan­<br />

SIOn.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!