AMX Target Guide Computer Accessories User Manual


 
B-8
K
A
DAK
AMX 68000 Target Guide
cjcfhwdelay cjcfhwdelay
Purpose Delay n Microseconds
Used by
n Task n ISP n Timer Procedure n Restart Procedure n Exit Procedure
Setup Prototype is in file
CJZZZIF.H.
#include "CJZZZ.H"
void CJ_CCPP cjcfhwdelay(int n);
Description n is the delay interval measured in microseconds.
Use cjcfhwdelay to generate a software delay loop of approximately n
microseconds. This procedure is intended for use in device drivers which
must introduce device access delays to avoid violating the minimum
timing delay needed between sequential references to a device I/O port.
The ...DELAY directive in your Target Parameter File is used by AMX to
derive the delay loop count needed to produce an n microsecond delay.
Interrupts o Disabled o Enabled o Restored
Returns Nothing
Note This procedure can be used at any time, even prior to launching AMX or
after exiting from AMX.
If the ...DELAY directive in your Target Parameter File indicates that the
processor frequency is 0, then you must install the frequency value into
the public long variable cjcfhwdelayf prior to launching AMX. If you
call procedure cjcfhwdelay() prior to launching AMX, be sure that
variable cjcfhwdelayf is initialized before making the call.