17.11.2012 Views

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Functional Description<br />

When not being loaded, the timer will continuously decrement itself until<br />

either reloaded by software or a count of zero is reached. If a timer reaches<br />

a count of zero, an output signal will be asserted and the count will remain<br />

at zero until reloaded by software or PHB reset is asserted. External logic<br />

can use the output signals of the timers to generate interrupts, machine<br />

checks, etc.<br />

Each timer is composed of a prescaler and a counter. The prescaler<br />

determines the resolution of the timer, and is programmable to any binary<br />

value between 1 microseconds and 32,768 microsecons. The counter<br />

counts in the units provided by the prescaler. For example, the watchdog<br />

timer would reach a count of zero within 24 microseconds if the prescaler<br />

was programmed to 2 microseconds and the counter was programmed to<br />

12.<br />

The watchdog timers are controlled by registers mapped within the PPC<br />

control register space. Each timer has a WDTxCNTL register and a<br />

WDTxSTAT register. The WDTxCNTL register can be used to start or<br />

stop the timer, write a new reload value into the timer, or cause the timer<br />

to initialize itself to a previously written reload value. The WDTxSTAT<br />

register is used to read the instantaneous count value of the watchdog<br />

timer.<br />

Programming of the Watchdog Timers is performed through the<br />

WDTxCNTL register and is a two step process.<br />

❏ Step 1 is to ‘arm’ the WDTxCNTL register by writing<br />

PATTERN_1 into the KEY field. Only the KEY byte lane may be<br />

selected during this process. The WDTxCNTL register will not arm<br />

itself if any of the other byte lanes are selected or the KEY field is<br />

written with any other value than PATTERN_1. The operation of<br />

the timer itself remains unaffected by this write.<br />

❏ Step 2 is to write the new programming information to the<br />

WDTxCNTL register. The KEY field byte lane must be selected<br />

and must be written with PATTERN_2 for the write to take affect.<br />

The effects on the WDTxCNTL register depend on the byte lanes<br />

that are written to during step 2 and are shown in Table 2-14.<br />

http://www.motorola.com/computer/literature 2-43<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!