AMX Target Guide Computer Accessories User Manual


 
AMX 68000 Target Guide
K
A
DAK
43
5.3.3 MC68230 Clock Driver
The AMX clock driver for the Motorola MC68230 Parallel Interface/Timer is ready for
use on the Motorola M68EC040 Integrated Development Platform (IDP). It is
configured to operate at approximately 1 KHz (1 ms period). Source code for this AMX
clock driver is provided in file CH68230T.C.
You must compile clock source module CH68230T.C and link the resulting object module
with the rest of your AMX application.
To use the AMX MC68230 clock driver, you must create a clock ISP root as described in
Chapter 4.3. Simply check the box next to the MC68230 clock ISP on the list provided
via the Prebuilt Clock ISPs... button.
Your Target Configuration Module will include a clock ISP root named _ch68230clk.
The clock driver's initialization procedure will install the pointer to this clock ISP into the
AMX Vector Table. On the Motorola M68EC040 Integrated Development Platform
(IDP), the pointer is installed into the entry for interrupt vector number 96 ($60).
Clock driver module CH68230T.C includes the clock initialization procedure
chclockinit and the clock shutdown procedure chclockexit. Insert procedure
chclockinit into the list of Restart Procedures provided in your System Configuration
Module at the point at which you wish the clock to be enabled during the launch. If you
intend to launch AMX for temporary execution, insert chclockexit into the list of Exit
Procedures at the point at which you wish the clock to be disabled during the shutdown.
Porting the MC68230 Clock Driver
If you wish to change the MC68230 timer frequency or use a different AMX vector
number, you must edit the definitions in source file CH68230T.C and recompile the
module. Edit instructions are included in the file.