CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
272
Figure 7-32. Example of Register Settings for PPG Output Operation
(a) 16-bit timer mode control register 01 (TMC01)
0
0
0
0
1
1
0
0
TMC013 TMC012 TMC011
OVF01
Clears and starts on match
between TM01 and CR010.
(b) Capture/compare control register 01 (CRC01)
0
0
0
0
0
0
0
0
CRC012 CRC011 CRC010
CR010 used as
compare register
CR011 used as
compare register
(c) 16-bit timer output control register 01 (TOC01)
0
0
0
1
0/1
LVR01
LVS01
TOC014
OSPE01
OSPT01
TOC011
TOE01
Enables TO01 output
11: Inverts TO01 output on
match between TM01
and CR010/CR011.
00: Disables one-shot pulse
output
Specifies initial value of
TO01 output F/F
0/1
1
1
(d) Prescaler mode register 01 (PRM01), selector operation control register 1 (SELCNT1)
0
PRM01
0
0
0
0
PRM011
PRM010
ISEL11
ES111
ES110
ES101
ES100
Selects count clock
0
0/1
0/1
0/1
SELCNT1
(e) 16-bit timer counter 01 (TM01)
By reading the TM01 register, the count value can be read.
(f) 16-bit capture/compare register 010 (CR010)
An interrupt signal (INTTM010) is generated when the value of this register matches the count value of the
TM01 register.
(g) 16-bit capture/compare register 011 (CR011)
An interrupt signal (INTTM011) is generated when the value of this register matches the count value of the
TM01 register.
Caution Set values to the CR010 and CR011 registers such that the condition
0000H
≤
CR011 < CR010
≤
FFFFH is satisfied.