MC146818A real-time clock with RAM pinout

DIP-24. Clock, calendar, alarm and 50 bytes of battery-backed RAM.

A multiplexed-bus clock: the CPU puts an address on AD0-AD7, strobes AS, then reads or writes the data. It keeps time on a 32.768 kHz crystal and has no battery pin, so it keeps time only while VDD stays up. /STBY blocks bus access while the main supply is down. A dead RTC gives a wrong or stopped clock and failed boot checks. HERO Jr (U213): decoded at $D810-$D81F; MOT tied high; VDD comes from U209 (Vca), which stays on in sleep while SW1 is ON, so turning POWER off loses the time; the RESET key drives /RESET; /IRQ feeds the sleep wake path (not the CPU) and pulses it every 5 s; the ROM sets SQW to 256 Hz. BBC Master (IC11): not memory-mapped; the system VIA and its addressable latch drive the clock enable, R/W, address strobe and data (Master Series Service Manual pp. 21, 23), with a 3 V lithium cell for backup.

Open the interactive RTC pinout

Pins

PinNameTypeSignal
1MOTctrlBus timing select: high = Motorola-style timing (AS, DS), low = Intel-style.
2OSC1clockCrystal pin 1.
3OSC2clockCrystal pin 2.
4AD0dataMultiplexed address/data bit 0.
5AD1dataMultiplexed address/data bit 1.
6AD2dataMultiplexed address/data bit 2.
7AD3dataMultiplexed address/data bit 3.
8AD4dataMultiplexed address/data bit 4.
9AD5dataMultiplexed address/data bit 5.
10AD6dataMultiplexed address/data bit 6.
11AD7dataMultiplexed address/data bit 7.
12VSSgroundGround.
13/CSctrlChip select, active low.
14ASctrlAddress strobe: latches the address on the falling edge.
15R/WctrlRead/write from the CPU.
16/STBYctrlStandby, active low: blocks AS, DS, R/W and AD0-AD7 so the bus cannot corrupt the clock while the main supply is off. Not a battery input.
17DSctrlData strobe (E clock in Motorola mode).
18/RESETctrlReset: clears the interrupt enables but not time or RAM.
19/IRQctrlInterrupt request, open drain.
20CKFSctrlClock output frequency select.
21CKOUTclockClock output (divided time base).
22PSctrlPower sense input: held low at power-up it clears the VRT (valid RAM and time) bit.
23SQWctrlSquare-wave output. Rate set by register A.
24VDDpower+5 V supply.

Fitted in

Sources