|
3802_M Datasheet, PDF (166/208 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES | |||
|
◁ |
APPENDIX
3.5 List of registers
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
1
2 CNTR0 active edge switch
bit
3 Timer X count stop bit
4 Timer Y operating mode
5
6 CNTR1 active edge switch
bit
7 Timer Y count stop bit
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
It depends on the operating mode
0
of the Timer X (refer to Table 3.5.1).
0 : Count start
1 : Count stop
0
b5 b4
0 0 : Timer mode
0
0 1 : Pulse output mode
1 0 : Event counter mode
0
1 1 : Pulse width measurement mode
It depends on the operating mode
0
of the Timer Y (refer to Table 3.5.1 ).
0 : Count start
0
1 : Count stop
Fig. 3.5.13 Structure of Timer XY mode register
Table. 3.5.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
3802 GROUP USERâS MANUAL
3-39
|
▷ |