PDA

View Full Version : 4004



Erik
January 16th, 2011, 08:37 AM
The Intel 4004 was the first commercially produced microprocessor, released in 1971. It was the first commercially sold circuit to combine Registers, ALU, and Control Circuitry on to a single monolithic chip, hence, the first component microprocessor. The Four Phase Systems AL1 microprocessor preceded the 4004 by several months, but was only sold in a full system--components were not available to system designers commercially.
Features
P-Channel Silicon Gate MOS Process Technology
4-bit Parallel Processor
4 bit data word, 8 bit instruction word
4 bit external & internal data buses
46 Instructions
Conditional Branch Instructions
Subroutine Instructions
Indirect Fetch
Binary and Decimal Math Instructions
Can directly access up to 4KB ROM and 5120 bits RAM (1280 4-bit words)
16 pin 0.3 inch wide DIP IC
Supply voltages -10, +5 VDC
Electrically & programatically upward-compatible with 4040

Operation
Clock frequency for the 4004 is 740kHz maximum, minimum 500kHz due to non-static design. Typical instruction cycles are 8 clocks in length for single-cycle instructions (8 bit instructions), 16 cycles for 16 bit instructions.
Memory is accessed through a time-multiplexed addressing technique. 12 bit addresses are used to fetch 8-bit instructions from ROM 4 bits at a time on the 4 bit data bus. Instructions could be one or two words in length. The program counter and address stack registers are 12 bits long, arranged as a 4 level stack with the top level being the PC. This allows up to 3 levels of subroutine call. This must be enforced by the programmer, the processor will not signal an exception in the event of a stack overflow.
The accumulator and a temporary register supply data to the ALU. There is also a register file of 16 4 bit scratchpad registers, arranged as two columns of registers 8 levels deep when used as index registers, e.g. registers 0 and 1 are used to generate an 8 bit index value when used for that purpose, with register 0 treated as the high order nibble.
System timing is controlled through an externally generated two phase clock and a SYNC output from the 4004. Memory access is controlled through these, the data bus, and the CM ROM output in the case of program memory, or the four CM RAM outputs in the case of data memory. In essence, the 4004 transmits instructions to its memories and I/O ports during the appropriate machine states.
Support Chips
To function effectively as such a low pin-count device, many decode functions had to be moved to the support chipset for the 4004. Logic on these ICs allows them to properly interpret the control signals of the 4004.
4001: 256x4 bit mask-programmed ROM and 4 bit I/O port.
4002: 320 bit RAM and 4-bit output port.
4003: 10 bit shift register and output expander.
4008/4009: Interfaces to standard memories.
4201A: Single chip clock generator.
4289: Single chip replacement for the 4008/4009.
4308: Single chip replacement for four 4001s.

System Design
Originally, only the 4001 through 4004 were available. The system clock was produced using an oscillator circuit and general purpose logic. Multiple 4001, 4002 and 4003 ICs would be used to obtain the desired I/O, program storage, and data storage for the application. A typical design would require on the order of 30 ICs plus a substantial number of discrete components for the system logic. The 7 to 9 4000-series components would replace three to five times as many ICs of a general purpose nature for a wide range of applications. That, coupled with the wide range of possible applications due to the programmable nature of the chips made the 4004 cost-effective in many designs.
Successors
The 4040 is a pin-compatible drop-in replacement for the 4004. It is capable of accessing twice as much program memory, and nesting subroutines to 7 levels.
The 8008 is an 8 bit successor suited to a wider variety of programming tasks thanks to its larger data word which allows easy use with a wider range of data types.
The 4004 and 4040 have continued to be used in a wide range of control applications in spite of 8 bit competitors. They remained in production until 1981, and continued to be used in many applications into the 1990s. A wide range of microcontrollers have supplanted the 4004 and 4040 in comparable tasks since production of these chips ceased.
External Links
Intel\'s First Microprocessor?the Intel® 4004 (http://www.intel.com/museum/archives/4004.htm)
CPU Museum: 2/4 bit Processors (http://www.cpu-museum.com/4004_e.htm)
Original Intel 4004 Specification (http://smithsonianchips.si.edu/ice/4004thb.htm)
Intel 4004 Data Sheet (PDF) (http://datasheets.chipdb.org/Intel/MCS-4/datashts/intel-4004.pdf)
MCS-4 Data Sheets at Chipdb (http://datasheets.chipdb.org/Intel/MCS-4/datashts/MCS4_Data_Sheet_Nov71.pdf)

Category:Hardware

Neon_WA
November 17th, 2011, 05:29 PM
Correct me if I'm wrong but I don't see how the 4040 can be a a drop-in replacement or pin-compatible with the 4004
especially as the 4040 is a 24-pin package, while the 4004 is 16-pin

http://www.cpu-world.com/info/Pinouts/4004.html
http://www.cpu-world.com/info/Pinouts/4040.html