Motorola MVME172 Programmer's Reference Manual page 338

Vme embedded controller
Table of Contents

Advertisement

VMEchip2 Tick Timer 1 Periodic Interrupt Example
B
B-2
Step
Register and Address
4
Tick Timer 1
Control Register
$FFF40060 (8 bits)
2.
Set up local bus interrupter:
Step
Register and Address
5
Vector Base Register
$FFF40088 (8 of 32 bits)
6
Interrupt Level Register 1
(bits 0-7)
$FFF40078 (8 of 32 bits)
7
Local Bus Interrupter
Enable Register
$FFF4006C (8 of 32 bits)
8
I/O Control Register 1
$FFF40088 (8 of 32 bits)
Periodic Tick Timer 1 interrupts now occur, so you need an interrupt
handler. Section 3 gives the details, as follows.
Action and Reference
Write $07 to this register (set bits
0, 1, and 2). This enables the Tick
Timer 1 counter to increment,
resets the count to zero on
compare, and clears the overflow
counter.
Action and Reference
If not already initialized by the
debugger, set interrupt base
register 0 by writing to bits 28-31.
Refer to the
Vector Base Register
description and to Table 2-3.
Local Bus Interrupter Summary,
in Chapter 2.
Write desired level of Tick Timer
1 interrupt to bits 0-2.
Set bit 24 (ETIC1) to one to
enable Tick Timer 1 interrupts.
Write a one to bit 23 to enable
interrupts from the VMEchip2. A
zero masks all interrupts from the
VMEchip2.
Computer Group Literature Center Web Site

Advertisement

Table of Contents
loading

Table of Contents