Renesas M16C Series User Manual page 176

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group
Selecting event counter mode and functions
b7
0
1
0
1
0
0
Two-phase pulse signal processing select bit
b7
Setting divide ratio
(b15)
b7
Setting count start flag
b7
Figure 2.18: Set-up procedure for 2-phase pulse signal process in event counter mode with normal
mode selected
Rev.1.00 Sep 24, 2003 Page 158 of 360
b0
Timer Ai mode register (i= 2, 3) [Address 0398
0
1
TAiMR (i= 2, 3)
Selection of event counter mode
0 (Must always be "0" when using two-phase pulse signal processing)
0 (Must always be "0" when using two-phase pulse signal processing)
1 (Must always be "1" when using two-phase pulse signal processing)
0 (Must always be "0" when using two-phase pulse signal processing)
Count operation type select bit
1 : Free-run type
Two-phase pulse signal processing operation select bit
0 : Normal processing operation
b0
Up/down flag [Address 0384
UDF
Timer A2 two-phase pulse signal processing select bit
1 : Two-phase pulse signal processing enabled
Timer A3 two-phase pulse signal processing select bit
1 : Two-phase pulse signal processing enabled
(b8)
b0
b7
Can be set to 0000
b0
Count start flag [Address 0380
TABSR
Timer A2 count start flag
Timer A3 count start flag
Start count
, 0399
16
]
16
b0
Timer A2 register [Address 038B
Timer A3 register [Address 038D
to FFFF
16
16
]
16
Timer A
]
16
, 038A
] TA2
16
16
, 038C
] TA3
16
16

Advertisement

Table of Contents
loading

Table of Contents