Operation Of 8-Bit Timer 3 (Tm3); Basic Operation Of 8-Bit Timer 3 (Tm3) - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

µ PD78214 Sub-Series

7.4.4 Operation of 8-Bit Timer 3 (TM3)

(1) Basic operation
Eight-bit timer/counter 3 performs count operation by counting up with the count clock specified by the higher
4 bits of prescaler mode register 0 (PRM0).
When the RESET signal is applied, TM3 is cleared to 00H, and count operation stops.
Bit 7 (CE3) of timer control register 0 (TMC0) is used to enable/disable count operation. (The higher 4 bits of
the TMC0 register are used to control the operation of 8-bit timer/counter 3.) When the CE3 bit is set to 1 by
software, TM3 is cleared to 00H by the first count clock pulse, then count-up operation starts. When the CE3
bit is reset to 0, TM3 is cleared to 00H by the next count clock pulse, then coincide with signal generation stops.
If the CE3 bit is set to 1 when the CE3 bit is already set to 1, TM3 is not cleared, but continues count operation.
Count clock
TM3
Count starts
CE3←1
(b) When the CE3 bit is set to 1 again after count operation starts
208
Fig. 7-125 Basic Operation of 8-Bit Timer 3 (TM3)
(a) Count start → count stop → count start
0H
1H
2H
Count clock
0H
TM3
Count starts
CE3←1
10H
11H
0FH
Count stops
CE3←0
1H
2H
3H
Count starts
CE3←1
0H
0H
1H
Count starts
CE3←1
4H
5H

Advertisement

Table of Contents
loading

Table of Contents