14 16-BIT PWM TIMERS (T16B)
S1C17M12/M13 TECHNICAL MANUAL
Seiko Epson Corporation
14-13
(Rev. 1.2)
0xffff
0x0000
RUN = 1
Data (W)
→
MC[15:0]
Data (W)
→
CC[15:0]
PRESET = 1
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
MODEN = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CNTMAXIF = 1
CNTZEROIF = 1
CNTZEROIF = 1
CNTMAXIF = 1
Counter
(3.1) T16BnCCCTLm.CBUFMD[2:0] bits = 0x0
(3) Repeat up/down count mode
Time
Count cycle
Compare buffer
value
MAX value
(T16BnMC register)
Software operation
Hardware operation
Compare period
during counting
down
Compare period
during counting up
(3.2) T16BnCCCTLm.CBUFMD[2:0] bits = 0x1
CNTZEROIF = 1
0xffff
0x0000
RUN = 1
Data (W)
→
MC[15:0]
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
MODEN = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CNTMAXIF = 1
CNTZEROIF = 1
CNTMAXIF = 1
PRESET = 1
Counter
Time
Count cycle
Compare buffer
value
MAX value
(T16BnMC register)
Compare period
during counting
down
Compare period
during counting up
(3.3) T16BnCCCTLm.CBUFMD[2:0] bits = 0x2
CNTZEROIF = 1
0xffff
0x0000
RUN = 1
Data (W)
→
MC[15:0]
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
Data (W)
→
CC[15:0]
MODEN = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CMPCAPmIF = 1
CNTMAXIF = 1
CNTZEROIF = 1
CNTMAXIF = 1
PRESET = 1
Counter
Time
Count cycle
Compare buffer
value
MAX value
(T16BnMC register)
Compare period
during counting
down
Compare period
during counting up