ST62T32B ST62E32B
4.3 ARTIMER 16
The ARTIMER16 is a timer module based on a 16
bit downcounter with Reload, Capture and Com-
pare features to manage timing requirements. Two
outputs provide PWM and Overflow (OVF) output
signals each with programmable polarity, and two
inputs CP1 and CP2 control start-up, capture
and/or reload operations on the central counter.
The ARTIMER16 includes four 16-bit registers
CMP,RLCP,MASK and CP for the Reload, Cap-
ture and compare functions, four 8-bit status/con-
trol registers and the associated control logic.The
16-bit registers are accessed from the 8-bit inter-
nal bus. The full 16-bit word is written in two bytes,
the high byte first and then the low byte. The high
byte is stored in an intermediate register and is
written to the target 16-bit register at the same
Figure 27. ARTIMER16 Block Diagram
time as the write to the low byte. This high byte will
remain constant if further writes are made to the
low bytes, until the high byte is changed. Full
Read/Write access is available to all registers ex-
cept where mentioned.
The ARTIMER16 may be placed into the reset
mode by resetting RUNRES to 0 in order to
achieve lower consumption. The contents of
RLCP, CP, MASK and CMP are not affected, nor
is the previous run mode of the timer changed. If
RUNRES is subsequently set to 1, the timer re-
starts in the same RUN mode as previously set if
no changes are made to the timer status registers.
Finally, interrupt capabilities are associated to the
Reload, Capture and Compare features.
8
SCR1
8
SCR2
8
SCR3
4
SCR4
8
16
16
CMP
16
MASK
16
RLCP
16-Bit
16
CP
16-Bit
PSC
fINT
Compare
PWM
16-Bit
Compare-to-0
OVF
16-Bit
COUNTER
CP1
INT
CONTROL LOGIC
CP2
4.3.1 CENTRAL COUNTER
The core of the 16 bit Auto-Reload Timer is a 16-
VR02014
bit synchronous downcounter which accepts the
MCU internal clock through a prescaler with a pro-
grammable ratio (1/1, 1/4, 1/16).
46/84