SYSTEM CALLS
M68CPU32BUG/D REV 1
5-25
.TM_STR0
Start Timer at T=0
.TM_STR0
5.2.21 Start Timer at T=0
SYSCALL
.TM_STR0
TRAP CODE:
$0041
Use this routine to reset the timer to 0 and start it. The user can select values for the MCU
periodic interrupt timer (periodic interrupt timing register (PICR) and periodic interrupt control
register (PITR)), or use the default values. The default values set the interrupt frequency to 125
milliseconds and use level 6, vector 66. See Appendix C of this manual and the MC68332 User’s
Manual, MC68332UM/AD, concerning the Periodic Interrupt Timer for more details.
Entry Conditions:
SP ==>
Timer control value (for PICR) <word>
Timer period value (for PITR) <word>
Exit Conditions Different From Entry:
Parameters are removed from the stack, the timer is started, and the interrupt pulse
counter is cleared. If the user’s interrupt level, as defined in the status register
(SR), disables the timer interrupts, the SR interrupt mask bits are changed to allow
timer interrupts.
If the value of PICR is not equal to the power-up default value, $000F, the old
vector number is restored to the default CPU32Bug value.
EXAMPLES
SYSCALL
.TM_STR0
MOVE.L
#0,-(A7)
Reset the timer to zero and start it with the default values.
SYSCALL
.TM_STR0
Содержание M68CPU32BUG
Страница 16: ...GENERAL INFORMATION M68CPU32BUG D REV 1 1 8 ...
Страница 30: ...DEBUG MONITOR DESCRIPTION M68CPU32BUG D REV 1 2 14 ...
Страница 102: ...DEBUG MONITOR COMMANDS M68CPU32BUG D REV 1 3 72 ...
Страница 168: ...DIAGNOSTIC FIRMWARE GUIDE M68CPU32BUG D REV 1 6 24 ...