|
M38002M4 Datasheet, PDF (56/173 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.2 Timer
Timer XY mode register
b7 b6 b5 b4 b3 b2 b1 b0
Timer XY mode register (TM) [Address : 2316]
B
Name
0 Timer X operating mode bit
1
Function
b1 b0
0 0 : Timer mode
0 1 : Pulse output mode
1 0 : Event counter mode
1 1 : Pulse width measurement mode
At reset R W
0
0
2 CNTR0 active edge switch bit It depends on the operating mode
0
of the Timer X (refer to Table 2.2.1).
3 Timer X count stop bit
0 : Count start
1 : Count stop
0
4 Timer Y operating mode bit
b5 b4
0 0 : Timer mode
0
0 1 : Pulse output mode
5
1 0 : Event counter mode
0
1 1 : Pulse width measurement mode
6 CNTR1 active edge switch bit It depends on the operating mode 0
of the Timer Y (refer to Table 2.2.1).
7 Timer Y count stop bit
0 : Count start
0
1 : Count stop
Fig. 2.2.5 Structure of Timer XY mode register
Table. 2.2.1 Function of CNTR0/CNTR1 edge switch bit
Operating mode of
Timer X/Timer Y
Timer mode
Function of CNTR0/CNTR1 edge switch bit (bits 2 and 6)
⢠Generation of CNTR0/CNTR1 interrupt request : Falling edge
â0â
(No effect on timer count)
⢠Generation of CNTR0/CNTR1 interrupt request : Rising edge
â1â
(No effect on timer count)
Pulse output mode
⢠Start of pulse output : From âHâ level
â0â
⢠Generation of CNTR0/CNTR1 interrupt request : Falling edge
⢠Start of pulse output : From âLâ level
â1â
⢠Generation of CNTR0/CNTR1 interrupt request : Rising edge
Event counter mode
⢠Timer X/Timer Y : Count of rising edge
â0â
⢠Generation of CNTR0/CNTR1 interrupt request : Falling edge
⢠Timer X/Timer Y : Count of falling edge
â1â
⢠Generation of CNTR0/CNTR1 interrupt request : Rising edge
Pulse width measurement mode
⢠Timer X/Timer Y : Measurement of âHâ level width
â0â
⢠Generation of CNTR0/CNTR1 interrupt request : Falling edge
⢠Timer X/Timer Y : Measurement of âLâ level width
â1â
⢠Generation of CNTR0/CNTR1 interrupt request : Rising edge
2-8
3800 GROUP USERâS MANUAL
|
▷ |