English
Language : 

M38203M4 Datasheet, PDF (157/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.3 Timer X and timer Y
(2) Timer Y
sTimer mode
Figure 2.3.28 shows an example of setting registers for using the timer mode.
[Notes on use]
Notes 1: For using interrupt processing, set the following :
•Before setting Œ below, clear the timer Y interrupt enable bit and the timer Y
interrupt request bit to “0.”
•After setting  below, set the timer Y interrupt enable bit to “1” (interrupts enabled) .
2: Write values in the order of the timer Y (low-order) and the timer Y (high-order).
ŒSetting of timer Y mode register
Select timer mode or others
b7
1 00
b0
TYM : Timer Y mode register [Address 2816]
b5, b4 : Timer Y operating mode bits
0 0 : Timer mode
b6 : CNTR1 active edge switch bit
b7 : Timer Y stop control bit
1 : Count stop
: Nothing is allocated
Set count value (low-order) to timer Y (low-order) (TYL) [Address 2216]
ŽSet count value (high-order) to timer Y (high-order) (TYH) [Address 2316]
Set timer Y stop control bit of timer Y mode register to “0” to start counting
Fig. 2.3.28 Example of setting registers for using timer mode
3820 GROUP USER’S MANUAL
2–71