Motorola MVME5100 Programmer's Reference Manual page 82

Hide thumbs Also See for MVME5100:
Table of Contents

Advertisement

When not being loaded, the timer will continuously decrement itself until
either reloaded by software or a count of zero is reached. If a timer reaches
a count of zero, an output signal will be asserted and the count will remain
at zero until reloaded by software or PHB reset is asserted. External logic
can use the output signals of the timers to generate interrupts, machine
checks, etc.
Each timer is composed of a prescaler and a counter. The prescaler determines
the resolution of the timer, and is programmable to any binary value between
1 microseconds and 32,768 microsecons. The counter counts in the units
provided by the prescaler. For example, the watchdog timer would reach a
count of zero within 24 microseconds if the prescaler was programmed to 2
microseconds and the counter was programmed to 12.
The watchdog timers are controlled by registers mapped within the PPC
control register space. Each timer has a WDTxCNTL register and a
WDTxSTAT register. The WDTxCNTL register can be used to start or
stop the timer, write a new reload value into the timer, or cause the timer
to initialize itself to a previously written reload value. The WDTxSTAT
register is used to read the instantaneous count value of the watchdog
timer.
Programming of the Watchdog Timers is performed through the
WDTxCNTL register and is a two step process.
http://www.motorola.com/computer/literature
Step 1 is to 'arm' the WDTxCNTL register by writing
PATTERN_1 into the KEY field. Only the KEY byte lane may be
selected during this process. The WDTxCNTL register will not arm
itself if any of the other byte lanes are selected or the KEY field is
written with any other value than PATTERN_1. The operation of
the timer itself remains unaffected by this write.
Step 2 is to write the new programming information to the
WDTxCNTL register. The KEY field byte lane must be selected
and must be written with PATTERN_2 for the write to take affect.
The effects on the WDTxCNTL register depend on the byte lanes
that are written to during step 2 and are shown in Table 2-14.
Functional Description
2-43
2

Advertisement

Table of Contents
loading

Table of Contents