CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01
Preliminary User’s Manual U17260EJ3V1UD
189
Figure 7-18. Example of Register Settings for Interval Timer Operation
(a) 16-bit timer mode control register 0n (TMC0n)
0
0
0
0
1
1
0
0
TMC0n3 TMC0n2 TMC0n1
OVF0n
Clears and starts on match
between TM0n and CR00n.
(b) Capture/compare control register 0n (CRC0n)
0
0
0
0
0
0
0
0
CRC0n2 CRC0n1 CRC0n0
CR00n used as
compare register
(c) 16-bit timer output control register 0n (TOC0n)
0
0
0
0
0
LVR0n
LVS0n
TOC0n4
OSPE0n
OSPT0n
TOC0n1
TOE0n
0
0
0
(d) Prescaler mode register 0n (PRM0n)
0
0
0
0
0
3
2
PRM0n1
PRM0n0
ES1n1
ES1n0
ES0n1
ES0n0
Selects count clock
0
0/1
0/1
(e) 16-bit timer counter 0n (TM0n)
By reading TM0n, the count value can be read.
(f) 16-bit capture/compare register 00n (CR00n)
If M is set to CR00n, the interval time is as follows.
•
Interval time = (M + 1)
×
Count clock cycle
Setting CR00n to 0000H is prohibited.
(g) 16-bit capture/compare register 01n (CR01n)
Usually, CR01n is not used for the interval timer function. However, a compare match interrupt (INTTM01n)
is generated when the set value of CR01n matches the value of TM0n.
Therefore, mask the interrupt request by using the interrupt mask flag (TMMK01n).
Remark
n = 0:
µ
PD78F0531, 78F0532, 78F0533
n = 0, 1:
µ
PD78F0534, 78F0535, 78F0536, 78F0537, 78F0537D
Содержание 78K/0 Series
Страница 2: ...Preliminary User s Manual U17260EJ3V1UD 2 MEMO ...
Страница 10: ......
Страница 53: ...CHAPTER 3 CPU ARCHITECTURE Preliminary User s Manual U17260EJ3V1UD 53 Figure 3 6 Memory Map µPD78F0536 ...
Страница 120: ......