select the baud rate by writing a
constant to link_baud_rate in
the dual port
clear the dualport
RAM by writing 00
to each byte
initialize the boot_code
by writing hex C3 00 00 00
into the dual port
select the link protocol by
writing 06h to link_protocoL
in the dual port
set the link address by
writing 0FDh to link_address
in the dual port
write 01h to :802 to
start the KT
x
scanner
wait for an interrupt from
the KT
x
before sending
any commands
During initialization,
your program should:
Chapter 2
Startup and Shutdown
2-12
Table 2.E
Loader Memory Map of Dual Port
Host Dualport Address
Dualport Contents
:0000h - :006Fh
LOADPCL.BIN
:0070h
Total Word (low byte)
:0071h
Total Word (high byte)
:0072h
Size Word (low byte)
:0073h
Size Word (high byte)
:0074h
Error Status
:0075h
Handshake
:0076h - :007Fh
LOADPCL.BIN
:0080h - :07FFh
Load Space
Initialization responsibilities are divided between the host and the
KTx card.
Host Responsibilities
Constant
Baud Rate
FCh
57.6k
FDh
115.2k
FEh
230.4k
When the interrupt occurs, check
init_status
for
≠
init_in_progress
, i.e.,
SUCCESS
or an error code.
Dual-port locations
boot_code, link_baud_rate, link_address,
and
link_protocol
are defined in appendix A.
Initialization