Rev.2.00 Oct 16, 2006 page 23 of 354
REJ09B0340-0200
M30245 Group
2. Timer A
Figure 2.2.17. Set-up procedure of two-phase pulse signal process in event counter mode, normal mode selected
Setting divide ratio
Can be set to 0000
16
to FFFF
16
b7
b0
(b15)
(b8)
b7
b0
Start count
Selecting event counter mode and functions
1 (Must always be “1” when using two-phase pulse signal processing)
Selection of event counter mode
Two-phase pulse signal processing operation select bit
0 : Normal processing operation
Count operation type select bit (Note 1)
1 : Free-run type
0 (Must always be “0” when using two-phase pulse signal processing)
0 (Must always be “0” when using two-phase pulse signal processing)
b7
b0
0
1
0
1
0
0
1
Two-phase pulse signal processing select bit
b7
b0
Up/down flag [Address 0384
16
]
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
Setting count start flag
Timer A2 count start flag
Timer A3 count start flag
b7
b0
Setting trigger select register
b7
b0
Trigger select register [Address 0383
16
]
TRGSR
Timer A2 event/trigger select bit
b3 b2
0 0 : Input on TA2
IN
is selected (Note 2)
Timer A3 event/trigger select bit
b5 b4
0 0 : Input on TA3
IN
is selected (Note 2)
Note 2: Set the corresponding port direction register to “0”.
0 (Must always be “0” when using two-phase pulse signal processing)
0
Note 1: First set to “Reload type” operation. Once the first counting pulse has occurred,
the timer may be changed to “Free-Run type”.
Timer Ai mode register (i=2, 3) [Address 0398
16
, 0399
16
]
TAiMR (i=2, 3)
Timer A2 register [Address 038B
16
, 038A
16
] TA2
Timer A3 register [Address 038D
16
, 038C
16
] TA3
Count start flag [Address 0380
16
]
TABSR
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...