Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 660

Table of Contents

Advertisement

Register Overview
Register Overview
The following sections provide brief descriptions of the primary registers
used to program the timers. For information on the timer registers, see
"Peripheral Timer Registers" on page
Status and Control Registers (TMSTAT). The (
the status of both timers using a single read. The
tains timer enable bits. Within
status bits, that require a write one-to-set (
(
) to enable and disable the timer respectively.
TIMxDIS
Counter Registers (TMxCNT). When disabled, the timer counter retains
its state. When re-enabled, the timer counter is re initialized from the
period/width registers based on configuration and mode. The timer coun-
ter value should not be set directly by the software. It can be set indirectly
by initializing the period or width values in the appropriate mode. The
counter should only be read when the respective timer is disabled. This
prevents erroneous data from being returned.
Period Registers (TMxPRD). When enabled and running, the processor
writes new values to the timer period and pulse width registers. The writes
are buffered and do not update the registers until the end of the current
period (when the timer counter register equals the timer period register).
During the pulse width modulation (PWM_OUT), the period value is
written into the timer period registers. Both period and width register val-
ues must be updated "on the fly" since the period and width (duty cycle)
change simultaneously. To insure the period and width value concurrency,
a 32-bit period buffer and a 32-bit width buffer are used.
During the pulse width and period capture (WDTH_CAP) mode, the
period values are captured at the appropriate time. Since both the period
and width registers are read-only in this mode, the existing 32-bit period
and width buffers are used.
16-4
www.BDTIC.com/ADI
A-269.
, each timer has a pair of sticky
TMSTAT
ADSP-214xx SHARC Processor Hardware Reference
) register indicates
TMSTAT
register also con-
TMSTAT
) or write one-to-clear
TIMxEN

Advertisement

Table of Contents
loading

Table of Contents