Epson Arm S1C31 Series Technical Manual page 248

Cmos 32-bit single chip microcontroller
Table of Contents

Advertisement

17 16-BIT PWM TIMERS (T16B)
The comparator MATCH signal and counter MAX/ZERO signals are also used to generate a timer output wave-
form (TOUT). Refer to "TOUT Output Control" for more information.
Compare buffer
The comparator loads the comparison value, which has been written to the T16B_nCCRm register, to the
compare buffer before comparing it with the counter value. For example, when generating a PWM wave-
form, the waveform with the desired duty ratio may not be generated if the comparison value is altered
asynchronous to the count operation. To avoid this problem, the timing to load the comparison value to the
compare buffer can be configured using the T16B_nCCCTLm.CBUFMD[2:0] bits for synchronization with
the count operation.
(1) Repeat up count mode
(1.1) T16B_nCCCTLm.CBUFMD[2:0] bits = 0x0
Data (W) → CC[15:0]
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Count cycle
Compare period
Counter
0x0000
(1.2) T16B_nCCCTLm.CBUFMD[2:0] bits = 0x1
Data (W) → CC[15:0]
Data (W) → MC[15:0]
MODEN = 1
PRESET = 1
RUN = 1
0xffff
Count cycle
Compare period
Counter
0x0000
17-10
Data (W) → CC[15:0]
CNTMAXIF = 1
CNTMAXIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
Data (W) → CC[15:0]
CNTMAXIF = 1
CNTMAXIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
Seiko Epson Corporation
Data (W) → CC[15:0]
CNTMAXIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
Data (W) → CC[15:0]
CNTMAXIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
S1C31D41 TECHNICAL MANUAL
Software operation
Hardware operation
MAX value
(T16B_nMC register)
Compare buffer
value
Time
MAX value
(T16B_nMC register)
Compare buffer
value
Time
(Rev. 1.1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Arm s1c31d41

Table of Contents