Introduction
This appendix demonstrates how to use interrupts on the
MVME162FX. It gives an example of how to generate and handle a
VMEchip2 Tick Timer 1 interrupt on a MVME162FX that has a
VMEbus connection. Specific values have been given for the
register writes.
Read this entire appendix before performing any of these
procedures.
VMEchip2 Tick Timer 1 Periodic Interrupt
Example
A. Set up Tick Timer 1.
Step
1.
2.
3.
AUsing Interrupts on
Register and Address
Prescaler Control Register
$FFF4004C
Tick Timer 1 Compare
Register
$FFF40050
Tick Timer 1 Counter
Register
$FFF40054
the MVME162FX
Action and Reference
If not already initialized by the
debugger, initialize as follows:
Prescaler Register = 256 - Bclock
(MHz). This gives a 1 MHz clock to
the tick timers. Bclock is the bus clock
rate, such as 25 MHz.
256 - 25 = $E7.
For periodic interrupts, set the
Compare Register value = Period (s).
For example, if you want an interrupt
every millisecond, set the register
value to 1000 ($3E8). Refer to the
Timer 1 Compare Register
Chapter 2.
Write a zero to clear.
A
Tick
description in
A-1