15 16-BIT PWM TIMERS (T16B)
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
15-11
TECHNICAL MANUAL (Rev. 1.0)
0xffff
0x0000
(1.5) T16BnCCCTLm.CBUFMD[2:0] bits = 0x4
Count cycle
RUN = 1
Compare period
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
MODEN = 1
CMPCAPmIF = 1
CNTMAXIF = 1
CNTMAXIF = 1
Data (W)
→
MC[15:0]
Data (W)
→
CC[15:0]
PRESET = 1
Counter
Time
Compare buffer
value
MAX value
(T16BnMC register)
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
0xffff
0x0000
RUN = 1
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
MODEN = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CNTZEROIF = 1 CNTZEROIF = 1
CNTZEROIF = 1
Data (W)
→
MC[15:0]
Data (W)
→
CC[15:0]
PRESET = 1
Counter
Time
Compare buffer
value
MAX value
(T16BnMC register)
Count cycle
Compare
period
(2.1) T16BnCCCTLm.CBUFMD[2:0] bits = 0x0
(2) Repeat down count mode
Software operation
Hardware operation
(2.2) T16BnCCCTLm.CBUFMD[2:0] bits = 0x1
0xffff
0x0000
RUN = 1
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
MODEN = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CNTZEROIF = 1
CNTZEROIF = 1
CNTZEROIF = 1
Data (W)
→
MC[15:0]
Data (W)
→
CC[15:0]
PRESET = 1
Counter
Time
Compare buffer
value
MAX value
(T16BnMC register)
Count cycle
Compare
period