Download ANI sr2, byte - Renesas Electronics

Transcript
CHAPTER 6
TIMER/EVENT COUNTER FUNCTIONS
Figure 6-2. Timer/Event Counter Mode Register Format
7
6
5
4
3
ETMM CO11 CO10 CO01 CO00 EM1
2
1
0
EM0
ET1
ET0
ECNT input clock
0
0
Internal clock ( φ 12)
0
1
φ 12 while CI input is high
1
0
CI input
1
1
CI input while TO is high
ECNT clear mode
0
0
0
1
1
0
1
1
Stop after clearing
Free running
Cleared every full count
Cleared on fall of CI input
(ET1=0)
Cleared on fall of TO
(ET1=1)
Cleared by match between ECNT and ETM1
CO0 output timing
0
0
Match between ECNT and ETM0
0
1
Setting prohibited
1
0
1
1
Match between ECNT and ETM0, or fall of
CI input
Match between ECNT and ETM0, or match
between ECNT and ETM1
CO1 output timing
0
0
Match between ECNT and ETM1
0
1
Setting prohibited
1
0
1
1
Match between ECNT and ETM1, or fall of
CI input
Match between ECNT and ETM0, or match
between ECNT and ETM1
87