192
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
Remarks
1. f
XX
: Main system clock frequency (f
X
or f
X
/2)
2. f
X
: Main system clock oscillation frequency
3. f
XT
: Subsystem clock oscillation frequency
4. TI00 : 16-bit timer/event counter input pin
5. TM0 : 16-bit timer register
6. MCS : Bit 0 of oscillation mode selection register (OSMS)
7. Figures in parentheses apply to operation with f
X
= 5.0 MHz or f
XT
= 32.768 kHz.
(2) 16-bit timer mode control register (TMC0)
This register sets the 16-bit timer operating mode, the 16-bit timer register clear mode and output timing,
and detects an overflow.
TMC0 is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets TMC0 value to 00H.
Caution The 16-bit timer register starts operation when a value other than 0, 0, 0 (operation stop mode)
is set in TMC01 to TMC03, respectively. Set 0, 0, 0 in TMC01 to TMC03 to stop the operation.
Figure 8-4. 16-Bit Timer Mode Control Register Format
0
0
0
0
TMC03 TMC02 TMC01 OVF0
7
6
5
4
3
2
1
<0>
Symbol
TMC0
FF48H
00H
R/W
Address
After Reset
R/W
OVF0 16-Bit Timer Register Overflow Detection
0
Overflow not detected
1
Overflow detected
TMC03 TMC02 TMC01
Operating Mode and Clear Mode
TO0 Output Timing
Interrupt Generation
0
0
0
Operation stop (TM0 cleared to 0)
No change
Not Generated
0
0
1
PWM mode (free running)
PWM pulse output
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
Free running mode
TM0 and CR00 match,
or TM0 and CR01 match.
TM0 and CR00 match,
TM0 and CR01 match,
or on TI00 valid edge.
TM0 and CR00 match,
or TM0 and CR01 match.
TM0 and CR00 match,
TM0 and CR01 match,
or on TI00 valid edge
TM0 and CR00 match,
or TM0 and CR01 match.
TM0 and CR00 match,
TM0 and CR01 match,
or on TI00 valid edge
Clear & start on TI00 valid edge
Clear & start when TM0 and CR00
match
Generated when
TM0 and CR00 match,
or TM0 and CR01 match.
Содержание PD78076
Страница 2: ...2 MEMO ...
Страница 12: ...12 MEMO ...
Страница 48: ...48 MEMO ...
Страница 64: ...64 MEMO ...
Страница 82: ...82 MEMO ...
Страница 100: ...100 MEMO ...
Страница 130: ...130 MEMO ...
Страница 180: ...180 MEMO ...
Страница 222: ...222 MEMO ...
Страница 248: ...248 MEMO ...
Страница 288: ...288 MEMO ...
Страница 308: ...308 MEMO ...
Страница 364: ...364 MEMO ...
Страница 494: ...494 MEMO ...
Страница 526: ...526 MEMO ...
Страница 544: ...544 MEMO ...
Страница 558: ...558 MEMO ...
Страница 580: ...580 MEMO ...
Страница 596: ...596 MEMO ...
Страница 598: ...598 MEMO ...
Страница 626: ...626 MEMO ...