English
Language : 

M38203M4 Datasheet, PDF (146/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.3 Timer X and timer Y
(6) Timer Y Mode Register (TYM)
The timer Y mode register (address 002816) consists of bits which select operation or control counting.
Figure 2.3.18 shows a structure of the timer Y mode register. Each bit is described below.
Timer Y mode register
b7 b6 b5 b4 b3 b2 b1 b0
Timer Y mode register (TYM) [Address 2816]
B
Name
Functions
At reset R W
0 Nothing is allocated. These bits cannot be written
to and are fixed to “0” at reading.
0 0×
3
4 Timer Y operating b5b4
0
mode bits
0 0 : Timer mode
0 1 : Period measurement mode
5
1 0 : Event counter mode
1 1 : Pulse width HL continuously
0
measurement mode
6 CNTR1 active edge
switch bit
•CNTR1 interrupt
0 : Falling edge active
1 : Rising edge active
0
•Period measurement mode
0 : Measure falling edge to
falling edge
1 : Measure rising edge to
rising edge
•Event counter mode
0 : Rising edge active
1 : Falling edge active
7 Timer Y stop control 0 : Count start
0
bit
1 : Count stop
Fig. 2.3.18 Structure of timer Y mode register
2–60
3820 GROUP USER’S MANUAL