English
Language : 

M38203M4 Datasheet, PDF (143/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.3 Timer X and timer Y
(5) Timer X mode register (TXM)
The timer X mode register (address 002716) consists of bits which select operation or control counting.
Figure 2.3.17 shows a structure of the timer X mode register. Each bit is described below.
Timer X mode register
b7 b6 b5 b4 b3 b2 b1 b0
Timer X mode register (TXM) [Address 2716]
B
Name
Functions
0 Timer X write
control bit
0 : Write value in latch and
counter
1 : Write value in latch only
1 Real time port
control bit
0 : Real time port function
invalid
1 : Real time port function
valid
2 P60 data for real time 0 : “L” level output
port
1 : “H” level output
3 P61 data for real time 0 : “L” level output
port
1 : “H” level output
4 Timer X operating
mode bits
b5b4
0 0 : Timer mode
0 1 : Pulse output mode
1 0 : Event counter mode
5
1 1 : Pulse width measurement
mode
6 CNTR0 active edge •CNTR0 interrupt
switch bit
0 : Falling edge active
1 : Rising edge active
At reset R W
0
0
0
0
0
0
0
•Pulse output mode
0 : Start at initial level “H” output
1 : Start at initial level “L” output
•Event counter mode
0 : Rising edge active
1 : Falling edge active
•Pulse width measurement mode
0 : Measure “H” level width
1 : Measure “L” level width
7 Timer X stop control 0 : Count start
0
bit
1 : Count stop
Fig. 2.3.17 Structure of timer X mode register
3820 GROUP USER’S MANUAL
2–57