AMX Target Guide Computer Accessories User Manual


 
AMX 68000 Target Guide
K
A
DAK
A-7
AMX Clock Handler Declaration
The Target Parameter File must include a definition of an ISP root for your AMX clock
handler. The clock ISP root definition must be provided using one of the following
directives. The clock ISP root is declared using
...CLKC if its Interrupt Handler is coded
in C or
...CLKA if its Interrupt Handler is coded in assembly language. The clock ISP
root can be declared using ...CLKFAST if an Interrupt Handler is not required to service
the clock.
...CLK68TPU Prebuilt Motorola MC683xx TPU Clock ISP
...CLK68360 Prebuilt Motorola MC68360 PIT Clock ISP
...CLK68230 Prebuilt Motorola MC68230 Clock ISP
...CLK68901 Prebuilt Motorola MC68901 Clock ISP
...CLKC CLKROOT,CLKHAND,VNUM,PARAM,PARTYPE
...CLKA CLKROOT,CLKHAND,VNUM,PARAM,PARTYPE
...CLKFAST CLKROOT,CLKADR,CLKCMD,CLKADR2,CLKCMD2,IODELAY,VNUM
...CLKFAST16 CLKROOT,CLKADR,CLKCMD,CLKADR2,CLKCMD2,IODELAY,VNUM
...CLKFAST32 CLKROOT,CLKADR,CLKCMD,CLKADR2,CLKCMD2,IODELAY,VNUM
CLKROOT
Name of the clock ISP root entry point
CLKHAND Name of the public clock device Interrupt Handler
VNUM Interrupt vector number assigned to the clock device
PARAM Interrupt Handler parameter
PARTYPE Parameter PARAM type
If your clock Interrupt Handler does not require a parameter, leave field PARAM blank
(empty) and set PARTYPE to 0.
If your clock Interrupt Handler requires a numeric parameter, set PARAM to the 32-bit
signed or unsigned value and set PARTYPE to 0. The numeric value must be expressed in
a form acceptable to your assembler.
If your clock Interrupt Handler requires a pointer to a public variable as a parameter, let
PARAM be the name of that variable and set PARTYPE to 1.
The definition of parameter VNUM is exactly the same as that described for conforming
ISPs declared using the
...ISPC or ...ISPA directives. However, unless warranted by
exceptional circumstances, parameter VNUM should always be set to -1 in the declaration
of your clock ISP root. It is the responsibility of your clock initialization procedure to
install the pointer to the ISP root
ISPROOT into the AMX Vector Table.
Note
Parameter VNUM cannot be adjusted using the AMX
Configuration Builder. This parameter is provided for
compatibility with other AMX implementations.