Motorola MVME1X7P Programmer's Reference Manual page 74

Single-board computer
Table of Contents

Advertisement

Programming Issues
1
Step
Register and Address
1
Prescaler Control register
$FFF4004C
2
Tick Timer 1
Compare register
$FFF40050
3
Tick Timer 1
Counter register
$FFF40054
4
Tick Timer 1
Control register
$FFF40060 (8 bits)
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)
1-48
1.
Set up Tick Timer:
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 25MHz.
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
Tick Timer 1 Compare Register
Chapter 2.
Write a zero to clear the register.
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.
2.
Set up local bus interrupter:
If not already initialized by the debugger, set Interrupt
Base register 0 by writing to bits 28-31. Refer to the
Vector Base Register
Bus Interrupter Summary, in Chapter 2.
Write desired level of Tick Timer 1 interrupt to bits 0-2.
Set bit 24 (ETIC1) to 1 to enable Tick Timer 1 interrupts.
Write a 1 to bit 23 to enable interrupts from the
VMEchip2. A 0 masks all interrupts from the VMEchip2.
Action and Reference
description in
Action and Reference
description and to Table 2-4, Local
Computer Group Literature Center Web Site

Advertisement

Table of Contents
loading

Table of Contents