The Z80 CPU
The microprocessor is a standard Z80 running in CMOS version for low working and standby power consumption. For Z88, 4MHz and 6MHz capable Z80 CMOS were used : Z84C004PSC or Z84C0006PSC.
|
|
|
|
|
|
Z80 Clocks
Two clocks are driving the Z80. MCK, the master clock and SCK, the standby clock. The MCK (3.2768 MHz) is generated by a 9.8304 Xtal to the Blink and divided by 3, given to the pin 6. The SCK pulses at 25.6 KHz and is active on COMA state.
Interrupts
There are three pins for dealing with interrupts :
BUSRQ (Bus Request) : used for DMA (not connected on the Z88)
NMI (Non Maskable Interrupt) : Jumps to $0066 (Battery failure, card insertion by a SNS low)
INT (Ordinary Interrupt) : used in mode 1 (IM1)
For dealing with the maskable interruptions (INT), the Z80 can be switch in three modes.
The interrupt mode 0 (IM0) : for 8080 compatibility
The interrupt mode 1 (IM1) : for non-zilog environment (our case)
The interrupt mode 2 (IM2) : for zilog environment
On reset, OZ puts the Z80 in IM1.
If interrupts are enabled every INT signal jumps to $0038.
These vector routines deals with the serial port, the keyboard, the bleep, the small timer, RTC and alarms.