Hades logoHades applet banner
Intel MCS4 (i4004) Counter with Multiplexed Display

applet icon

The image above shows a thumbnail of the interactive Java applet embedded into this page. Unfortunately, your browser is not Java-aware or Java is disabled in the browser preferences. To start the applet, please enable Java and reload this page. (You might have to restart the browser.)

Circuit Description

This circuit realizes a BCD-counter with multiplexed seven-segment display. The software running on the i4004 microprocessor consists of an (endless) main loop which increments the value stored in the first register of the i4002 RAM IC. To see the assembly source code for the application, click here: zaehler.asm.

As usual for this type of application, the number is stored in BCD encoding, one digit per RAM cell. When you open the property editor of the RAM component, you can watch the counting process. To change the current counter value, just type in new data into the RAM register cells.

After the current counter value has been incremented, the processor enters a subroutine that displays the value on the multiplexed seven-segment display. First, the segment line of the first (least significant) digit is activated via writing the corresponding to the i4003 decoder. Next, the BCD value of the current digit is decoded to an eight-bit code, which is then written to the output ports of the first and second i4001 ROM components. This process is repeated for each of the multiplexed digits, where the next digit is selected simply by asserting one shift-clock for the i4003 decoder.

We use the 'smart' seven-segment displays in the schematics, with the time-constants for the averaging algorithm chosen to to reduce the flickering as much as possible. Please allow for the extra latency introduced by the averaging process - not all seven-segment displays will switch at exactly the same time.

Note: you may want to switch glow-mode off in order to reduce flicker and to speed-up the simulation slightly.

See also:

Print version | Run this demo in the Hades editor (via Java WebStart)
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German)
Impressum http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/80-mcs4/zaehler/zaehler.html