Download Print this page

Epson S1C31D50 Technical Instructions page 272

Cmos 32-bit single chip microcontroller
Hide thumbs Also See for S1C31D50:

Advertisement

Operations in repeat down count and one-shot down count modes
In these modes, the counter operates as a down counter and counts from the MAX value (or
current value) to 0x0000.
In repeat down count mode, the counter returns to the MAX value if a counter underflow occurs and
continues counting until the T16B_nCTL.RUN bit is set to 0. If the MAX value is altered during
counting, the counter keeps counting down to 0x0000 and continues counting down from the new
MAX value after a counter under- flow occurs.
In one-shot down count mode, the counter returns to the MAX value if a counter underflow occurs
and stops automatically at that point.
Repeat down count mode
(1)
MODEN = 1
0xffff
Counter
0x0000
One-shot down count mode
(2)
Data (W) →MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Counter
0x0000
Figure 17.4.2.2 Operations in Repeat Down Count and One-shot Down Count Modes
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
Data (W) →MC[15:0]
PRESET = 1
RUN = 1
RUN = 1
RUN = 0
Count cycle
PRESET = 1
Data (W) → MC[15:0]
RUN = 1
RUN = 0
Seiko Epson Corporation
Data (W) → MC[15:0]
Data (W) → MC[15:0]
RUN = 0
Software operation
Hardware operation
MAX value
Time
MAX value
Time
17-7

Advertisement

loading