SECTION III
HOW TO EXPAND THE APPLE SYSTEM
The Apple systern can be expanded to inctude niore memory and IC devices, via a 44-pin edge connector. The system is fully expandable to 65K, with the entire data and address busses, clocks, control signals ( i. e. IRQ, NMI, DMA, RDY, etc.), and power sources available at the connector. All address lines are TTL buffered, and data lines can drive ten equivalent capacitive loads (one TTL load and l3Opf) without external buffers. All clock signals are TTL. The Apple system runs at approximately 1 MHz (SCC spec sheet) and is rully coinpatible with 6800/6500 style timing.

Three pcwer sources are available at the edge connector: +5 volts regulated, and raw DC (approximately +1- 14V) for the +l2V, -12V, and -5V snpplies. If +1 2v, -12v, or -5V supplies are required, EXTERNAL REGULATORS MUST BE USED. An excess of 1.5 amps from the "onboard" regulated +5V supply is available for expansion (assuming suitable transforme r ratings are employed). Exercise great care in the handling of the raw DC, as no short-circuit protection is provided.

REFRESH:
Four out of every 65 clock cycles is dedicated to memory refresh. At the start of a refresh cycle (150 ns after leading edge of 01), RF goes low, and remains low for one clock cycle 02 is inhibited during a refresh cycle, and the processor is held in Ol (it"s inactive state). Dynamic memories, which must clock during refresh cycles, should derive their clock from 00, which is equivalent to 02, except that it continues during a refresh cycle. Devices, such as PIATS, will not be affected by a refresh cycle. since they react to 02 only. Refer to Apple "Tech Notes" for a variety of interfacing examples.

DMA:
The Apple system has full DMA capability. For DMA, the DMA control line tri-states the address buss, thus allowing external devices to control the buss. Consult MOS TECHNOLOGY 6502 Hardware Manual for details. (For DMA use, the solder jumper on the board, marked "DMA", must be broken.)

For the 6502 microprocessor, the RDY line is used to halt the processor for single stepping, or slow ROM applications. Refer to Apple "Tech Notes" for examples.

SOFTWARE CONSIDERATIONS:
The sequences listedbelow are the routines used to read the keyboard or output to the display.

Read Key from KBD:

    LDA RED CR (DOll) BPL LDA KBD DATA (D010)
Output to Display:
    BIT DSP (D012) BPL STA DSP (D012)
PM Internal Registers:
    KBD Data Dala
    High order bit equals 1.

    RED Control Reg. D011
    High orderbit indicates "key ready". Reading key clears flag. Rising edge of KBD sets flag.

    DSP DATA DO12
    Lower seven bits are data output, high order bit is "display ready" input (1 equals ready, 0 equals busy)

    DSP Control Reg. D013








- 8 -