5.2 Exception Processing Registers

Compare Register (11)


The Compare register acts as a timer (see also the Count register); it maintains a stable value that does not change on its own.

When the value of the Count register equals the value of the Compare register, interrupt bit IP(7) in the Cause register is set. This causes an interrupt as soon as the interrupt is enabled.

Writing a value to the Compare register, as a side effect, clears the timer interrupt.

For diagnostic purposes, the Compare register is a read/write register. In normal use however, the Compare register is write-only. Figure 5-4 shows the format of the Compare register.



Figure 5-4 Compare Register Format



Copyright 1996, MIPS Technologies, Inc. -- 21 MAR 96

Generated with CERN WebMaker
statistics