Chapter 2
Startup and Shutdown
2-4
3.
Write FFh to dual-port locations :0000h through :07FFh.
4.
Read and check :0000h through :07FFh for compliance.
Three Poweron Selfdiagnostic Tests: RAM, CTC, and SIO
Your driver must run these three power-on self-diagnostic tests (and they
must be performed in this order):
1.
Random Access Memory (RAM) Test — file KTXST0.BIN
This test performs a pattern write to all of RAM and verifies this with
a read cycle. The test order is RAM1, RAM0, Dual-port RAM.
2.
Counter Timer Circuit (CTC) Test — file KTXST1.BIN
This program performs a timing test on all KTx card CTC channels.
3.
Serial Input Output (SIO) Test — file KTXST2.BIN
This program performs a loopback test on the KTx card SIO.
Table 2.A shows the diagnostics memory map associated with these tests.
Table 2.A
Diagnostics Memory Map of Dual Port
Host Dualport Address
Dualport Contents
:0000h - :07FDh
KTXST0.BIN or
KTXST1.BIN or
KTXST2.BIN
:07FEh
Status Code
:07FFh
Done
These bytes are memory-mapped hardware addresses:
:0800h
Reserved
:0801h
Interrupt KT
x
by writing a 1
:0802h
Assert (Release) Z80
:0803h
Deassert (Reset) Z80
:0804h
KT
x
status register
:0805h - :0807h
Reserved
:0808h
Ack KT
x
interrupt by writing a 1
:080Ah
Card Control Write Register
:080Ch
Card Control Read Register
RAM
CTC
SIO