[Prev] [Next] [Contents] [Commodore] [New] [Home]

6502 SIGNAL DESCRIPTION

Clocks (PHI1, PHI2)  —  The 6502 requires a two phase non-overlapping clock that runs at the Vcc voltage level. The 6502 clocks are supplied with an internal clock generator. The frequency of these clocks is externally controlled.

Address Bus (A0-A15)  —  These outputs are TTL compatible, capable of driving one standard TTL load and 130 pf.

Data Bus (D0-D7)  —  Eight pins are used for the data bus. This is a bi-directional bus, transferring data to and from the device and peripherals. The outputs are tri-state buffers capable of driving one standard TTL load and 130 pf.

Ready (RDY)  —  This input signal allows the used to single cycle the processor on all cycles except write cycles. A negative transition to the low state during, or coincident with, phase one (PHI1) and up to 100 ns after phase two (PHI2) will halt the microprocessor with the output address lines reflecting the current address being fetched. This condition will remain through a subsequent phase two (PHI2) in which the Ready (RDY) signal is low. This feature allows microprocessor interfacing with low speed PROMS as well as fast (max. 2 cycle) Direct Memory Access (DMA). If Ready (RDY) is low during a write cycle, it is ignored until the following read operation.

Interrupt Request (IRQ)  —  This TTL level input requests that an interrupt sequence begin within the microprocessor. The microprocessor will complete the current instruction being executed before recognizing the request. At that time, the interrupt mask bit in the Status Code Register will be examined. If the interrupt mask flag is not set, the microprocessor will begin an interrupt sequence. The Program Counter and Processor Status Register are stored in the stack. The microprocessor will then set the interrupt mask flag high so that no further interrupts may occur. At the end of this cycle, the program counter low will be loaded from address $FFFE, and program counter high from location $FFFF, therefore, transferring program control to the memory vector located at these addresses. The RDY signal must be in high state for any interrupt to be recognized. A 3KOhm external resistor should be used for proper wire-OR operation.

Non-Maskable Interrupt (NMI)  —  A negative going edge on this input requests that a non-maskable interrupt sequence be generated within the microprocessor. NMI is an unconditional interrupt. Following completion of the current instruction, the sequence of operations defined for IRQ will be performed, regardless of the interrupt mask flag status. The vector address loaded into the program counter, low and high, are locations $FFFA and $FFFB respectively, thereby transferring program control to the memory vector located at these addreses. The instructions loaded at these locations cause the microprocessor branch to a non-maskable interrupt routine in memory. NMI also requires an external 3KOhm resistor to Vcc for proper wire-OR operations. Inputs IRQ and NMI are hardware interrupt lines that are sampled during PHI2 (phase 2) and will begin the appropriate interrupt routine on the PHI1 (phase 1) following the completion of the current instruction.

Set Overflow Flag (S.O.)  —  A negative going edge on this input sets the overflow bit in the Status Code Register. This signal is sampled on the trailing edge of PHI1.

SYNC  —  This output line is provided to identify those cycles in which the microprocessor is doing an OP CODE fetch. The SYNC line goes high during PHI1 of an OP CODE fetch and stays high for the remainder of that cycle. If the RDY line is pulled low during the PHI1 clock pulse in which SYNC went high, the processor will stop in its current state and will remain in the state until the RDY line goes high. In this manner, the SYNC signal can be used to control RDY to cause single instruction execution.

Reset (RES)  —  This input is used to reset or start the microprocessor from a power down condition. During the time that this line is held low, writing to or from the microprocessor is inhibited. When a positive edge is detected on this input, the microprocessor will immediately begin the reset sequence. After a system initialization time of six clock cycles, the mask interrupt flag will be set and the microprocessor will load the program counter from the memory vector locations $FFFC and $FFFD. This is the start location for program control. After Vcc reaches 4.75 volts in a power up routine, reset must be held low for at least two clock cycles. At this time the R/W and SYNC signal will became valid. When the reset signal goes high following these two clock cycles, the microprocessor will proceed with the normal reset procedure detailed above.


[Prev] [Next] [Contents] [Commodore] [New] [Home]
This page has been created by Frank Kontros.
Last updated May 14th, 1999.