Epson S1C17W03 Technical Manual page 175

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

15 16-BIT PWM TIMERS (T16B)
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
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Counter
0x0000
(2) One-shot up count mode
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Counter
0x0000
Figure 15.4.2.1 Operations in Repeat Up Count and One-shot Up Count Modes
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 T16BnCTL.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.
(1) Repeat down count mode
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Counter
0x0000
15-6
RUN = 1
RUN = 0
Count cycle
RUN = 0
RUN = 1
RUN = 0
Count cycle
Seiko Epson Corporation
Data (W) → MC[15:0]
Data (W) → MC[15:0]
Data (W) → MC[15:0]
RUN = 1
RUN = 0
Data (W) → MC[15:0]
Data (W) → MC[15:0]
Software operation
Hardware operation
MAX value
Time
MAX value
Time
Software operation
Hardware operation
MAX value
Time
S1C17W03/W04 TECHNICAL MANUAL
(Rev. 1.2)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17w04

Table of Contents