![NEC mPD780065 Series Preliminary User'S Manual Download Page 109](http://html.mh-extra.com/html/nec/mpd780065-series/mpd780065-series_preliminary-users-manual_249264109.webp)
109
CHAPTER 6 16-BIT TIMER/EVENT COUNTER
Preliminary User’s Manual U13420EJ2V0UM00
Figure 6-2. Format of 16-Bit Timer Mode Control Register 0 (TMC0)
TMC03
TMC02
TMC01
Operating mode
TO0 output timing selection
Interrupt request generation
and clear mode selection
0
0
0
Operation stop
No change
Not generated
0
0
1
(TM0 cleared to 0)
0
1
0
Free running mode
Match between TM0 and
CR00 or match between TM0
and CR01
0
1
1
Match between TM0 and
CR00, match between TM0
and CR01 or TI00 valid edge
1
0
0
Clear & start on TI00 valid
—
1
0
1
edge
1
1
0
Clear & start on match
Match between TM0 and
between TM0 and CR00
CR00 or match between TM0
and CR01
1
1
1
Match between TM0 and
CR00, match between TM0
and CR01 or TI00 valid edge
OVF0
TM0 overflow detection
0
Overflow not detected
1
Overflow detected
Cautions 1. Timer operation must be stopped before writing to bits other than the OVF0 flag.
2. Set the valid edge of the TI00/TO0/P20 pin with prescaler mode register 0 (PRM0).
3. If clear & start mode on match between TM0 and CR00 is selected, when the set value of
CR00 is FFFFH and the TM0 value changes from FFFFH to 0000H, OVF0 flag is set to 1.
Remarks 1. TO0:
16-bit timer/event counter output pin
2. TI00:
16-bit timer/event counter input pin
3. TM0:
16-bit timer/counter 0
4. CR00: Compare register 00
5. CR01: Compare register 01
Generated on match
between TM0 and CR00, or
match between TM0 and
CR01
7
0
6
0
5
0
4
0
3
TMC03
2
TMC02
1
TMC01
0
OVF0
Symbol
TMC0
Address FF60H After reset: 00H R/W
Summary of Contents for mPD780065 Series
Page 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Page 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...