System-5: CPU card

From the original 1802 site, last updated October 31, 2005.

The System-5 CPU card, Rev. A

Revision A of the CPU card had a few mistakes and required some creative pin lifting, double socketing and rewiring to get it working. The bottom connector provides signals to the 1861/keyboard card that are not available on the standard system bus. The upper connector supports front panel functionality; again it provides signals not available on the bus. The complete system does not require a front panel to operate. This card replaces the System-4 CPU card.

Description

The CPU card has several separate subsystems: clock generation, mode control, power on reset/run, address demultiplexing/decoding, 4K EPROM, and reset address remapping. The CPU card also has auxiliary connectors required for a full function front panel and an 1861 based video/keyboard system. Jumper blocks select -EF line mapping for the bus EF line, front panel EF line, 1861 video EF and keyboard input EF line. Another set of jumpers selects the location of the EPROM within the address space. The last jumper block (VMA) determines if/how the address is remapped during reset from 0x0000 to the location occupied by the on-board EPROM within the address space.

Operational description

Bus buffering: All required CPU signals are passed directly to the bus with no buffering.

Mode control: 74LS20 IC3 and IC4 create a 4 input, 2 output mode control to drive the 1802 -WAIT and -CLEAR lines. Each of IC3 and IC4 creates an SR flip flop, one for -WAIT and one for -CLEAR. The four signals -RUN, -RESET, -LOAD, -PAUSE are inputs to the SR flip flops; each input line has a 10K pull up. SR flip flops work by receiving a low input pulse on either the upper gate (set) or the lower gate (reset). It is important that any lines driving the 4 mode control inputs are open collector; that way multiple circuits such as the front panel can also drive these lines.

Mode IC3A (Set) IC3B (Reset) IC4A (Set) IC4B (Reset) -WAIT (IC3) -CLEAR (IC4)
Reset L L H L
Run L L H H
Wait/Pause L L L H
Load L L L L

L = low pulse, not held low

Reset: CM1232 U1 provides a power on reset pulse (low) when power is first applied. The -RST input of U1 is open collector. This reset signal is also routed to a 74LS123 IC5 one shot pulse generator, which generates a low pulse on the -RUN input to mode control at the completion of the reset pulse. The 74LS123 output pin 13 is connected to the -RUN line via an open collector inverter. CM1232 U1 also supports a push button reset, which is connected to both S1 and SV1 to allow connection to the reset switch from the old wire wrap front panel card.

Clock generator: The clock generator is made up of 3 NAND gates, IC7 gates A, B and C. 74LS74 IC8 gate A divides the clock by 2. LCLK is an inverted version of the CPU clock; this signal is used by the 1861.

Address expansion: 74LS373 IC1 demultiplexes address A0-7 into A8-A15 using TPA.

4K bank select: IC9, a 74LS138 3 to 8 decoder, determines which 4K block of memory to map the EPROM to. IC9 takes A12, A13 and A14 on the decoder input, as well as A15 connected to -enable (pin 4) or enable (pin 6) depending on whether the EPROM is to be mapped to the upper or lower 32K address range, as set by SV2. SV4 is used to jumper a decoder output to the EPROM enable logic (see jumper blocks below).

EPROM: Data D0-7 is connected directly to CPU D0-7, address A0-A7 is connected to CPU A0-A7, and A8-A12 is connected to address expansion IC1. CPU -OE (output enable) on the EPROM.

VMA and EPROM chip enable: IC8B 74LS74 flip flop is reset when -RESET is active low. The first access to memory with A15 high sets the flip flop (it stays set until the next reset). If VMA is boot only, the -Q output of the flip flop is connected to VMA: before access to A15, -Q is high and therefore EPROM chip enable is low after inverter IC6B 74LS05; after access to A15, -Q goes low, VMA is always valid (low) and therefore the EPROM is not enabled. If VMA is boot/remap, EPROM select (active low) is combined with the flip flop Q output via a NAND gate to generate VMA and EPROM chip enable.

EPROM select from SV4 IC9B 74LS74 Q VMA (active low) EPROM CE (active low)
1 0, before A15 access 1 0
0 0, before A15 access 1 0
1 1, after A15 access 0, bus address valid 1
0 1, after A15 access 1 0

If VMA is No ROM, then VMA is always valid (low) and the EPROM is never enabled.

Jumper blocks

  • JP1: selects which one of -EF1-4 is routed to the bus
  • JP2: selects which one of -EF1-4 is routed to the front panel card
  • JP3: selects which one of -EF1-4 is routed to the 1861/keyboard card for 1861 support
  • JP4: selects which one of -EF1-4 is routed to the 1861/keyboard card for the keyboard character available flag
  • JP5 (Rev. B): selects whether power on reset is reset only, or reset followed by run
  • SV2: selects whether the EPROM is mapped to the upper or lower 32K address bank. This block uses two parallel jumpers: connect either the “H” pins or the “L” pins to the center pins. Default is “H”.
  • SV4: selects which 4K bank within the 32K bank selected by SV2 the EPROM occupies (see the silk screen for the layout). Bank 7 is 0x7000, bank 0 is 0x0000, plus A15 from SV2. Default is bank 7, so the default EPROM address is 0xF000 – 0xFFFF.
  • SV5: VMA mode, selects if the on-board EPROM will be enabled: 1) “Boot only” maps the on-board EPROM to 0x0000 and enables on-board EPROM access until the first access to an address above 0x8000, then disables the on-board EPROM. 2) “Boot/REMAP” maps the on-board EPROM to 0x0000 and enables on-board EPROM access until the first access to an address above 0x8000, then remaps the EPROM to the address range set by SV2 and SV4. 3) “No ROM”: the EPROM is never mapped and the first access to 0x0000 is to the bus.

Headers

  • SV1: external reset on pin 1, active low, connected to the U1 CM1232 push button input
  • SV3: 1861/keyboard card connector
  • SV6: front panel card connector

LEDs

  • LED1/PWR: connected directly to card power
  • LED2/WAIT: CPU -WAIT line status
  • LED3/CLEAR: CPU -CLEAR line status
  • LED4/Q: CPU Q line status
  • LED5/VMA: bus VMA status (on: the bus contains a valid address)

Issues / to-do log

Date Description Status
Jan. 2005 SV6 pin 8 should be -RESET, not -RUN. 74LS123 should use Q (pin 13), not -Q (pin 4), to IC6 gate A (pin 1). 74LS123 CLR (pin 3) should be tied high, A (pin 1) to 1232 RST (pin 5). 1232 -ST (pin 7) should be tied to 1802 clock out (pin 39), not to TPA. 74LS74: tie PRE (pin 10) and D (pin 12) high; CLK (pin 11) should be connected to A15, not GND. Rev. A rewired; schematic/layout done in Rev. B
Jan. 2005 VMA, Boot/Remap silk screen entry touches pad Done, Rev. B
Mar. 8, 2005 Add jumper to disable automatic run after power on reset Done, Rev. B

Revisions

Revision Produced
A Jan. 11, 2005
B Current development board, unbuilt/untested