Intel 4040

Intel 4040
A white ceramic C4040 variant
General information
Launched1974
Discontinued1981[1]
Common manufacturer
Performance
Max. CPU clock rate500 kHz to 740 kHz
Data width4 bits
Address width12 bits (multiplexed)
Architecture and classification
Technology node10 μm process
Instruction set4-bit (BCD-oriented)
Physical specifications
Transistors
Package
History
PredecessorIntel 4004
Support status
Unsupported

The Intel 4040 ("forty-forty") is the second 4-bit microprocessor designed and manufactured by Intel. Introduced in 1974 as a successor to the Intel 4004, the 4040 was produced with a 10 μm process and includes silicon gate enhancement-load PMOS logic technology. The 4040 contained 3,000 transistors[2] and could execute approximately 62,000 instructions per second.

General performance, bus layout and arithmetic logic unit (ALU) were identical to the 4004. The main improvement was to use a larger 24-pin dual inline package, giving it 8 more pins than the 16-pin 4004. Two of these were used to implement interrupts, which were lacking in the 4004 and considered a major oversight. Two more implemented a halt/stop system, which put the processor into a low-power mode and also allowed for single-step operation that made debugging much easier. Another pin was used to bank select a second read only memory (ROM), doubling the amount of ROM the processor could address compared to the 4004.

To make use of these new pins, the instruction set was expanded, increasing it to 60 instructions from the original 46. Additionally, the internal register file and pushdown stack were expanded to support rapid interrupt processing.

The ceramic D4040 variant
The plastic P4040 variant

Description

4004

The 4004 was designed to be used in an electronic calculator and many of its design notes are related to this role. For instance, program code can only be read from an area dedicated to read only memory, not RAM. Although one could implement the "ROM space" using RAM chips, there were no instructions able to write to that area of memory, and no instructions able to read program code from RAM space. The idea was that systems would supply the system program on ROM, and small amounts of RAM would be used only for data, if at all. In typical use, the internal "index registers" would be used for storage during calculations, with the 16 4-bit registers able to hold a single 8-digit binary coded decimal value, the data format used by calculators. It also had four 12-bit registers for holding addresses, the top-most was the program counter and the next three operated as a push-down stack for subroutine calls.

To reduce pin count to only 16, the original 4004 had only four data pins, multiplexed for both data and addresses. Additional pins indicated whether the address was in ROM or one of several "banks" of RAM. As addresses were 12 bits long, expressing an address took three cycles along with the subsequent read or write, and external circuitry had to latch each 4 bit part of the address between cycles. Instructions were 8 bits, so loading the next instruction required many cycles, which led to the slow performance in spite of what was a relatively fast cycle time for the era.

4040

i4040 microarchitecture. Note: the "data bus" is also used for addressing.
Intel 4040 DIP chip pinout

The 4040 was essentially an expansion of the 4004, with additional pins, more registers and new instructions to take advantage of both.

The 4004 had a single ROM pin, whereas the 4040 added another ROM pin to allow two banks of ROM. This effectively increased the ROM address from 12 to 13 bits, or 8 kB. Unlike later designs where the two lines could be binary encoded and thus support four banks, the ROM chips used with the 4004 and 4040 used these lines like chip select pins, and thus the two lines could only support two banks.

The 4004 lacked interrupts, a serious limitation. The 4040 added a new input pin for calling an interrupt, as well an output pin to indicate the interrupt signal had been noticed and was being acted on. As interrupts also need to save a return address, the stack register file was expanded to seven entries, up from three.[Note 1]

Interrupt handler code normally starts by saving out values in the registers to allow the interrupt code to use them, and then at the end it copies the values back from memory so that the processor returns to its original pre-interrupt state. With the multi-cycle memory access of the design, this would have been extremely slow. To address this, eight additional registers were added in a new "bank 1", the original sixteen registers retroactively becoming "bank 0". The idea was that programmers would attempt to place their critical data in the first eight registers of bank 0. When an interrupt was received, the handler code would call an instruction to swap banks, which would cause bank 1's registers to override bank 0's registers 0 through 7. The handler code would then use these eight registers for any local data, leaving the original values untouched. When the handler completed, it simply swapped bank 0 back in. This reduced the switching time to a single instruction, greatly improving interrupt response times.

Another addition was the input stop pin, and the associated output stop acknowledge. These could be used to stop the processor while the system performed input/output or other non-CPU tasks, but was more widely used for debugging by allowing the processor to be single-stepped. When the processor was in stopped mode, most of the chip hardware put into a low-drain, high-impedance condition, reducing power use. The machine cycle clocks were kept running for the benefit of external devices, including any interrupt controllers needed to wake the chip back up, which relied on these controllers staying in sync.

To take advantage of these new features, the instruction set added 14 new instructions, bringing the total to 60.

Intel 4040 registers
12 11 10 09 08 07 06 05 04 03 02 01 00 (bit position)
Accumulator
A Accumulator
Condition codes
C Carry flag
Index registers
R0 R1 Index bank 0
R2 R3
R4 R5
R6 R7
R8 R9
R10 R11
R12 R13
R14 R15
R0 R1 Index bank 1
R2 R3
R4 R5
R6 R7
Program counter
PC Program Counter
Push-down address call stack
PC1 Call level 1
PC2 Call level 2
PC3 Call level 3
PC4 Call level 4
PC5 Call level 5
PC6 Call level 6
PC7 Call level 7

Characteristics

  • Data bus: 4-bit
  • Address bus: 12-bit for ROM (multiplexed onto data bus; addresses took three bus cycles to transmit, same as in the 4004), effectively 13-bit with use of bank-switching commands; effectively 10-bit or 8-bit for RAM (8-bit direct address plus one-of-four, i.e. 2-bit equivalent, bank select; the additional 256 "status" memory locations required use of I/O commands to read or write, from an overall 8-bit address space)
  • Voltage: −15 V DC
  • Operating frequency: 500 to 740 kHz main clock (2-phase, overlapping); 62500 to 92500 8-clock machine cycles per second, each instruction requiring either one or two machine cycles to read and execute, meaning a rough average of 62 kIPS at 740 kHz with an equal mix.[Note 2]
  • Performance: Claimed execution time of ~850 μs to add two 32-bit (8-digit BCD) numbers, or around 1175 such operations per second and about 10 machine cycles per digit pair.[Note 3]

Designers

Federico Faggin proposed the project, formulated the architecture and led the design. The detailed design was done by Tom Innes.

New support chips

  • 3216 and 3226 4-bit parallel bus drivers[Note 4]
  • 4101 – 256 x 4-bit Static RAM[Note 5]
  • 4201 – Clock Generator, 500 to 740 kHz, using 4.000 to 5.185 MHz crystals
  • 4207 – General Purpose 8-bit Output port
  • 4209 – General Purpose 8-bit Input port
  • 4211 – General Purpose 8-bit I/O port
  • 4265 - Programmable general-purpose I/O. It contains four 4-bit I/O ports. It has 14 software-selectable modes that can be programmed to interface with these ports. Not only this can interface with this processor and 8080A processor as well. It was available in sample quantities in stock in March (1976).[3][4]
  • 4269 - Programmable keyboard/display. It has system software configuration in this chipset via instructions that controls how these ports can be handled. It was available in sample quantities in March (1976).[3][5]
    • Keyboard Features: It generates an interrupt when the key is pressed. It stores up to 8 characters FIFO buffer prior servicing the CPU. It can be interfaced with sensors, panel switches and keyboards which it supports full teletypewriter size. That can be key input encoding, polling, character input buffer storage, and keyboard over-entry recovery.
    • Display Features: It operates and refresh displays or indicator arrays up to 128 elements or lights. It also supports gas-discharge display such as Burroughs Self-Scan display up to 20 characters can be driven.
  • 4289 – Standard Memory Interface (replaces 4008/4009)[Note 6]
  • 4308 – 1K x 8-bit ROM plus 4 x 4-bit IO ports[Note 7]
  • 4316 – 2K x 8-bit ROM[Note 8]
  • 4702 – 256 x 8-bit EPROM[Note 9]

Use in computers

The 4040 was first used in a microcomputer in Intel's Intellec 4 Mod 40 development system, released in early 1975.[6] According to Byte magazine, the first third-party microcomputer designed around the Intel 4040 was the Micro 440, released by Comp-Sultants of Huntsville, Alabama, in late 1975.[7]

See also

Notes

  1. ^ by default only one level of interrupt was supported, as further servicing was disabled once an initial interrupt was acknowledged and could only re-enabled on RTI, essentially allowing three levels of subroutine stacking within an interrupt itself occurring within a three-deep subroutine, but detection could be forced back on with a specific command.
  2. ^ This may not be entirely accurate and is based on the 4004 characteristics; some of the added instructions may require additional cycles to execute, especially any external register stacking required for interrupt handling, but it is not made clear in the documentation as to whether this is the case; halt/step are special cases which naturally take potentially many millions of cycles to "execute", but as these essentially occur "outside" of the usual program flow, they don't count for speed calculation.
  3. ^ Likewise, based on claimed 4004 performance; "850 μs" is a somewhat rounded-off figure claimed in an early Intel brochure and may not be particularly precise, but the total execution time works out to approximately 79 or 80 machine cycles, which fits neatly with either 10 cycles per digit pair, 9 cycles per pair plus 7 for setup and any necessary post-processing, or 8 per pair plus 15 extra (...etc). The actual instruction mix wasn't specified, so without both source code and a list of instruction execution times it's impossible to be sure. A more efficient addition routine might have been possible on the 4040 vs the 4004, but the extra instructions don't suggest any obvious method for achieving this and appear to be focussed on addressing the earlier chip's more obvious shortcomings, e.g. a lack of interrupts and haltability.
  4. ^ Provides "high" current (~25mA) handling capacity for external I/O devices. Allegedly intended solely for use with the 4289, but design appears fairly generic and may be adaptable to a bare 4004/4040?
  5. ^ i.e. combining the main storage of four 4002s into a single individually-selectable chip, but with neither the 4-bit I/O port nor additional 64 words of I/O-command-accessed "status" memory. As it has a dedicated, 8-bit address bus, and two separate 4-bit data input and output buses, the 4101 is intended only for use as a downstream peripheral of the 4289. This is further emphasised by the SRAM's claim to be "used for writeable Program Memory", something not achievable by a bare 4004 or 4040.
  6. ^ Allows connection of "standard" memory (8-bit parallel data and/or up to 12-bit parallel addressing, the latter in the form of 8-bit address plus 4-bit binary chip select) and devices to the 4004 or 4040, as well as the use of RAM as Program Memory (the 4289 can be installed so as to appear like a regular 4001 ROM to the processor regardless of what's connected on the other side; furthering the illusion, it also provides the same four I/O lines that a 4001 would offer). A 4040 making use of two 4289s could offer various combinations of ROM and RAM in 2KB segments up to 8KB total with a relatively simplistic segregated addressing scheme and a small number of 4101s and 4308s, e.g. 3x 4308 and 8x 4101 for 6KB ROM and 1KB RAM.
  7. ^ Directly replaces four separate 4001s with a single chip, including being available in four "metal" variants that respond to logical chip addresses 0-3, 4-7, 8-11 and 12-15, simulating the sixteen original versions of the 4001
  8. ^ Intended for use downstream of a 4289, as it presents an 11-bit parallel address input bus and separate 8-bit parallel data output bus, as well as three binary-coded chip select lines (thus allowing provision of up to 16KB ROM with an addressing scheme incompatible with the 4004/4040 on several different levels - although only two 4316s, thus 4KB of ROM, or one 4316 plus RAM, can be directly addressed by a 4289 without additional hardware and/or special programming techniques)
  9. ^ i.e. UV-erased rather than electronically, and is again intended for use with the 4289, as it has separate, 8-bit parallel, address input and data output buses

References

  1. ^ "The Life Cycle of a CPU". The CPUShack. 2005.
  2. ^ a b "cpu-collection.de >> Intel >> 4040". www.cpu-collection.de.
  3. ^ a b Intel Corporation, "4269 and 4265 Programmable I/O Components Introduced for Intel MCS-40 4-bit Systems", Intel Microcomputer News, Volume 3, No. 1, January 1976, page 3
  4. ^ Intel Corporation, "4265 Programmable General Purpose I/O Device", Intel Data Catalog 1976, February 1976, page 7-22
  5. ^ Intel Corporation, "4269 Programmable Keyboard Display Device", Intel Data Catalog 1976, February 1976, page 7-39
  6. ^ Staff writer (March 1975). "Intel Introduces 4/Mod 40". Microcomputer Digest. 1 (9). Microcomputer Associates: 1, 3–4 – via the Internet Archive.
  7. ^ Helmers, Carl T. Jr., ed. (December 1975). "Micro-440". Byte (4). Byte Publications: 89 – via the Internet Archive.

Further reading

Read other articles:

Jeffries Point redirects here. For the headland in the South Sandwich Islands, see Cook Island, South Sandwich Islands. This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article may be in need of reorganization to comply with Wikipedia's layout guidelines. Please help by editing the article to make improvements to the overall structure. (August 2017) (Learn how and when to remove this ...

Hari Toilet SeduniaLogo Hari Toilet SeduniaNama resmiWorld Toilet DayTanggal19 NovemberSelanjutnyaParameter salah (harus 1 — 12) 2023-11-19 (2023-11-19-19 November 2023)Pertama kali19 Oktober 2001Terkait denganWorld Toilet Organization Anak-anak Filipina sedang bercerita dengan boneka tangan dalam kontes Toilet Sekolahku untuk meningkatkan kesadaran akan pentingnya toilet (Cagayan de Oro, 2010) Hari Toilet Sedunia (bahasa Inggris: World Toilet Day, disingkat WTD) merupakan sebu...

Everett Shinn (L-R), Everett Shinn, Henri Robert y John SloanInformación personalNacimiento 6 de noviembre de 1876 Woodstown, Nueva JerseyFallecimiento 1 de mayo de 1953 (76 años) Nueva YorkNacionalidad EstadounidenseFamiliaCónyuge Florence Scovel Shinn EducaciónEducado en Spring Garden College Alumno de Thomas Pollock Anshutz Información profesionalÁrea PinturaMovimientos Realismo Americano, Arte modernoMiembro de Academia Estadounidense de las Artes y las Letras [editar dato...

Proechimys trinitatus Охоронний статус Даних недостатньо (МСОП 3.1) Біологічна класифікація Царство: Тварини (Animalia) Тип: Хордові (Chordata) Клада: Синапсиди (Synapsida) Клас: Ссавці (Mammalia) Ряд: Мишоподібні (Rodentia) Родина: Щетинцеві (Echimyidae) Підродина: Echimyinae Триба: Myocastorini Рід: Proechimys Вид: P. trinitatis Б

Visegrád GroupKelompok VisegradKeanggotaan4 negara Eropa TengahPemimpin• Rotasi kepresidenan [1] Pendirian15 Februari 1991 Visegrád group logo Visegrád Group, atau disebut sebagai Visegrád Four atau V4, adalah aliansi dari empat negara Eropa Tengah – yaitu Republik Ceko, Hungaria, Polandia dan Slowakia – dengan tujuan kerjasama dan lebih memperkokoh integrasi di dalam Eropa. Nama kelompok ini dalam bahasa keempat negara itu adalah Visegrádská čtyřka atau V...

Logo Donausteig Der Donausteig ist ein österreichisch-bayerischer Weitwanderweg und führt seit Sommer 2010 großteils an den beiden Donauufern von Passau über Linz bis nach St. Nikola kurz nach Grein. Inhaltsverzeichnis 1 Beschreibung 1.1 Naturschutzgebiete 1.2 Bauwerke 2 Streckenverlauf 3 Donausteigrunden 3.1 Wilhering – Bauern und Holzknechtrunde 3.2 Stadtwanderweg Pöstlingberg 3.3 Etappe Linz-Enns 4 Donausteig-Gemeinden (alphabetisch) 4.1 Bayern 4.2 Österreich 5 Literatur 6 Weblinks...

Ordo Penyiar Injil (Ordo Praedicatorum), atau lebih dikenal sebagai Ordo Dominikan adalah sebuah ordo keagamaan Katolik Roma. Di Inggris mereka disebut bruder hitam karena mantol yang mereka pakai berwarna hitam, sama seperti Ordo Karmelit yang dikenal sebagai bruder putih karena alasan yang sama. Ordo Dominikan didirikan oleh Santo Dominikus pada awal abad ke-13 adalah salah satu ordo besar dari ordo mendikan yang mengubah kehidupan keagamaan di Eropa secara revolusioner pada masa pertengaha...

Study of ground motions of the Moon Apollo seismometer Seismometer readings from the impact made by the Apollo 17 Saturn S-IVB impacting the Lunar surface arrive at NASA Lunar seismology is the study of ground motions of the Moon and the events, typically impacts or moonquakes, that excite them. History Several seismographic measuring systems have already been installed on the Moon and their data made available to scientists (such as those from the Apollo Lunar Surface Experiments Package). T...

Award Award 1969 Nobel Peace PrizeInternational Labour Organization (ILO)for creating international legislation insuring certain norms for working conditions in every country.Date 22 October 1969 (announcement) 10 December 1969 (ceremony) LocationOslo, NorwayPresented byNorwegian Nobel CommitteeFirst awarded1901WebsiteOfficial website ← 1968 · Nobel Peace Prize · 1970 → The 1969 Nobel Peace Prize was awarded to the United Nations agency International Labour O...

2012 EP by Gemitaiz & MadManDetto, fatto.EP by Gemitaiz & MadManReleasedOctober 15, 2012 (2012-10-15)GenreHip hopLength24:30LabelHoniroProducerOmbra, Shablo, 3D, Don Joe, DJ 2P, Denny the Cool, DJ Nais, PKGemitaiz & MadMan chronology Haterproof(2011) Detto, fatto.(2012) Kepler(2014) Detto, fatto. is an EP by the Italian rappers Gemitaiz and MadMan, released on November 30, 2012 by the Honiro Label.[1] This is the first official release of the two rap...

وعاء من فترة جومون (2000 - 3000 ق.م.) لوحة من قصة غنجي (القرن الثاني عشر). قلعة هيميجي (عقد 1580) تقر وزارة التعليم والثقافة والرياضية والعلوم والتقنية اليابانية بعض أشهر الممتلكات الوطنية على أنها كنز وطني (باليابانية: 国宝 كوكوهو)، بعض الأشياء التي تحصل على هذا التقييم تتضمن: المبان...

Self-managed music venue in Amsterdam OCCII in 2008 The OCCII (Onafhankelijk Cultureel Centrum In It) is a venue for alternative and independent music at Amstelveenseweg 134, in Amsterdam, Netherlands.[1] The organization is mostly run by volunteers and has its roots in the squatting movement. The original building was squatted in 1984 and legalized in 1989. Next to the concert hall, and as part of the Binnenpret complex, there are also a café (called the Kasbah), a restaurant (calle...

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Amiga Active – news · newspapers · books · scholar · JSTOR (September 2023) This article needs ad...

This article is about the 2008 film. For other uses, see Golden Boys. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: The Golden Boys – news · newspapers · books · scholar · JSTOR (May 2010) (Learn how and when to remove this template message) 2008 American filmThe Golden BoysDirected byDaniel AdamsWritten b...

Yeremia 5Kitab Yeremia dalam Alkitab Ibrani, MS Sassoon 1053, foto 283-315.KitabKitab YesayaKategoriNevi'imBagian Alkitab KristenPerjanjian LamaUrutan dalamKitab Kristen24← pasal 4 pasal 6 → Yeremia 5 (disingkat Yer 5) adalah bagian dari Kitab Yeremia dalam Alkitab Ibrani dan Perjanjian Lama di Alkitab Kristen. Berisi perkataan nabi Yeremia bin Hilkia, tentang Yehuda dan Yerusalem, yang hidup pada zaman raja Yosia, Yoahas, Yoyakim, Yoyakhin dan Zedekia dari Kerajaan Yehuda sekitar...

Indoor soccer team based in Independence, Missouri For other uses, see Kansas City Comets. This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article may contain an excessive amount of intricate detail that may interest only a particular audience. Please help by spinning off or relocating any relevant information, and removing excessive detail that may be against Wikipedia's inclusion p...

2006 live album by DredgLive at the FillmoreLive album by DredgReleasedNovember 6, 2006VenueThe Fillmore, San Francisco, California, May 11, 2006GenreAlternative rockprogressive rockexperimental rockart rockLength76:55LabelInterscopeDredg chronology Catch Without Arms(2005) Live at the Fillmore(2006) The Pariah, the Parrot, the Delusion(2009) Professional ratingsReview scoresSourceRatingAllMusic linkAbsolutePunk.net(79%) linkDecoy Music linkSputnikmusic link Live at the Fillmore is th...

Town and civil parish in Bedfordshire, England For other uses, see Ampthill (disambiguation). Human settlement in EnglandAmpthillAmpthill town centre with clock tower (1852) and market placeAmpthillLocation within BedfordshirePopulation13,307 [1]OS grid referenceTL035375• London40 mi (64 km) SECivil parishAmpthillUnitary authorityCentral BedfordshireCeremonial countyBedfordshireRegionEastCountryEnglandSovereign stateUnited KingdomPos...

2010–11 season of Everton F.C. Everton 2010–11 football seasonEverton2010–11 seasonGoodison ParkChairmanBill KenwrightManagerDavid MoyesPremier League7thFA CupFifth roundFootball League CupThird roundTop goalscorerLeague: Tim Cahill (9)All: Jermaine Beckford,Louis Saha (10)Highest home attendance40,127 (22 May v. Chelsea)Lowest home attendance28,376 (29 Jan v. Chelsea)Average home league attendanceLeague: 36,113All: 35,154 Home colours Away colours Third colours ← 2009–1020...

2018 Russian filmIceTheatrical release posterRussianЛёд Directed byOleg TrofimScreenplay by Andrey Zolotarev Oleg Malovichko Produced by Fyodor Bondarchuk Dmitriy Rudovskiy Alexander Andryuschenko Mikhail Vrubel Vyacheslav Murugov (ru) Starring Aglaya Tarasova Alexander Petrov Miloš Biković Mariya Aronova Yan Tsapnik Kseniya Rappoport Kseniya Lavrova-Glinka Pavel Maykov CinematographyMikhail MilashinMusic byAnton BelyaevProductioncompanies Columbia Pictures Art Pictures Studio Vodorod Ru...