English
Language : 

UPD78F9234MC-5A4-A Datasheet, PDF (135/419 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
CHAPTER 7 8-BIT TIMER 80
7.4 Operation of 8-bit Timer 80
7.4.1 Operation as interval timer
When 8-bit timer 80 operates as an interval timer, it can repeatedly generate an interrupt at intervals specified by
the count value set in advance to 8-bit compare register 80 (CR80).
To use 8-bit timer 80 as an interval timer, make the following setting.
<1> Disable the operation of 8-bit timer counter 80 (clear TCE80 (bit 7 of 8-bit timer mode control register 80
(TMC80)) to 0).
<2> Set the count clock of 8-bit timer 80 (refer to Tables 7-3 and 7-4).
<3> Set the count value to CR80.
<4> Enable the operation of TM80 (set TCE80 to 1).
When the count value of 8-bit timer counter 80 (TM80) matches the set value of CR80, the value of TM80 is
cleared to 00H and counting is continued. At the same time, an interrupt request signal (INTTM80) is generated.
Tables 7-3 and 7-4 show the interval time, and Figure 7-5 shows the timing of the interval timer operation.
Cautions 1. When changing the value of CR80, be sure to stop the timer operation. If the value of CR80 is
changed with the timer operation enabled, a match interrupt request signal may be generated
immediately.
2. If the count clock of TMC80 is set and the operation of TM80 is enabled at the same time by
using an 8-bit memory manipulation instruction, the error of one cycle after the timer is
started may be 1 clock or more (refer to 7.5 (1) Error when timer starts). Therefore, be sure to
follow the above sequence when using TM80 as an interval timer.
Table 7-3. Interval Time of 8-bit Timer 80 (fXP = 8.0 MHz)
TCL801
TCL800
Minimum Interval Time
Maximum Interval Time
0
0
26/fXP (8 μs)
0
1
28/fXP (32 μs)
1
0
210/fXP (128 μs)
1
1
216/fXP (8.19 ms)
214/fXP (2.05 ms)
216/fXP (8.19 ms)
218/fXP (32.7 ms)
224/fXP (2.01 s)
Remark fXP: Oscillation frequency of clock to peripheral hardware
Resolution
26/fXP (8 μs)
28/fXP (32 μs)
210/fXP (128 μs)
216/fXP (8.19 ms)
Table 7-4. Interval Time of 8-bit Timer 80 (fXP = 10.0 MHz)
TCL801
TCL800
Minimum Interval Time
Maximum Interval Time
0
0
26/fXP (6.4 μs)
0
1
28/fXP (25.6 μs)
1
0
210/fXP (102 μs)
1
1
216/fXP (6.55 ms)
214/fXP (1.64 ms)
216/fXP (6.55 ms)
218/fXP (26.2 ms)
224/fXP (1.68 s)
Remark fXP: Oscillation frequency of clock to peripheral hardware
Resolution
26/fXP (6.4 μs)
28/fXP (25.6 μs)
210/fXP (102 μs)
216/fXP (6.55 ms)
User’s Manual U17446EJ5V0UD
133