Publication 1762-RM001C-EN-P
8-2 Timer and Counter Instructions
Each timer address is made of a 3-word element. Word 0 is the control
and status word, word 1 stores the preset value, and word 2 stores the
accumulated value.
EN = Timer Enable Bit
TT = Timer Timing Bit
DN = Timer Done Bit
Addressing Modes and File Types can be used as shown in the following
table:
Table 8.2 Timer File
Word Bit
1514131211109 8 76543210
Word 0 EN TT DN Internal Use
Word 1 Preset Value
Word 2 Accumulated Value
ATTENTION
!
Do not copy timer elements while the timer enable bit
(EN) is set. Unpredictable machine operation may occur.
Table 8.3 Timer Instructions Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page4-2.
Parameter
Data Files
(1)
(1) Valid for Timer Files only.
Function Files
CS - Comms
IOS - I/O
Address
Mode
Address
Level
O
I
S
B
T, C, R
N
ST
L
MG, PD
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
DAT
TPI
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Timer • • •
Time Base
• •
Preset
• •
Accumulator
• •
NOTE
Use an RES instruction to reset a timer’s accumulator and
status bits.