17-6
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
Operations in repeat up count and one-shot up count modes
In these modes, the counter operates as an up counter and counts from 0x0000 (or current value)
to the MAX value.
In repeat up count mode, the counter returns to 0x0000 if it exceeds the MAX value and continues
counting until the T16B_
n
CTL.RUN bit is set to 0. If the MAX value is altered to a value larger than the
current counter value during counting, the counter keeps counting up to the new MAX value. If the
MAX value is altered to a value smaller than the current counter value, the counter is cleared to
0x0000 and continues counting up to the new MAX value.
In one-shot up count mode, the counter returns to 0x0000 if it exceeds the MAX value and stops
automatically at that point.
(1)
Repeat up count mode
(2)
One-shot up count mode
Figure 17.4.2.1 Operations in Repeat Up Count and One-shot Up Count Modes
Software operation
Hardware operation
RUN = 1
RUN = 1
MODEN = 1
PRESET = 1
RUN = 0
Data (W)
→
MC[15:0]
Data (W)
→
MC[15:0]
Data (W)
→
MC[15:0]
0xffff
0x0000
Count cycle
Counter
MAX value
Time
RUN = 0
RUN = 0
Data (W)
→ MC[15:0]
RUN = 1
MODEN = 1
PRESET = 1
Data (W)
→
MC[15:0]
0xffff
0x0000
Counter
MAX value
Time
RUN = 1
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...