Epson S1C17M20 Technical Manual page 181

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

(2) One-shot down count mode
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Counter
0x0000
Figure 15.4.2.2 Operations in Repeat Down Count and One-shot Down Count Modes
Operations in repeat up/down count and one-shot up/down count modes
In these modes, the counter operates as an up/down counter and counts as 0x0000 (or current value) → the
MAX value → 0x0000.
In repeat up/down count mode, the counter repeats counting up from 0x0000 to the MAX value and counting
down from the MAX value to 0x0000 until the T16BnCTL.RUN bit is set to 0. If the MAX value is altered to a
value larger than the current counter value during count up operation, 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. If the MAX value is altered during count down
operation, the counter keeps counting down to 0x0000 and then starts counting up to the new MAX value.
In one-shot up/down count mode, the counter stops automatically when it reaches 0x0000 during count down
operation.
(1) Repeat up/down count mode
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Counter
0x0000
(2) One-shot up/down count mode
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Counter
0x0000
Figure 15.4.2.3 Operations in Repeat Up/Down Count and One-shot Up/Down Count Modes
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
Data (W) → MC[15:0]
RUN = 0
RUN = 1
RUN = 0
Count cycle
RUN = 0
Seiko Epson Corporation
15 16-BIT PWM TIMERS (T16B)
PRESET = 1
RUN = 1
RUN = 0
Data (W) → MC[15:0]
Data (W) → MC[15:0]
Data (W) → MC[15:0]
RUN = 1
MAX value
Time
Software operation
Hardware operation
MAX value
Time
MAX value
Time
15-7

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17m25S1c17m21S1c17m22S1c17m23S1c17m24

Table of Contents