Motorola M68CPU32BUG Manuel d'utilisateur Page 139

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 196
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 138
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
Vue de la page 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 195 196

Commentaires sur ces manuels

Pas de commentaire