Timer Initialization (.Tm_Ini) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

.TM_INI
5.2.19 Timer Initialization
SYSCALL
TRAP CODE: $0040
Use .TM_INI to initialize the MCU periodic interrupt timer. .TM_INI stops the timer and then
initializes it. .TM_INI does not restart the timer; use .TM_STR0 to restart the timer. Timing is
accomplished by counting the number of interrupt pulses generated. The default interrupt pulse
frequency is 125 milliseconds. Use this routine the first time the timer functions are used.
Entry Conditions:
No arguments required.
Exit Conditions Different From Entry:
Periodic interrupt timer is stopped (no interrupts) and initialized for future
operation.
EXAMPLE
SYSCALL
.TM_INI
M68CPU32BUG/D REV 1
Timer Initialization
.TM_INI
Initialize timer
5-23
SYSTEM CALLS
.TM_INI

Advertisement

Table of Contents
loading

Table of Contents