Rev.2.00 Oct 16, 2006 page 25 of 354
REJ09B0340-0200
M30245 Group
2. Timer A
Figure 2.2.19. Set-up procedure of two-phase pulse signal process in event counter mode,
multiply-by-4 mode selected
Selecting event counter mode and functions
Timer Ai mode register (i= 3, 4) [Address 0399
16
, 039A
16
]
TAiMR (i= 3, 4)
1 (Must always be “1” when using two-phase pulse signal processing)
Selection of event counter mode
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
1
1
Two-phase pulse signal processing select bit
b7
b0
Up/down flag [Address 0384
16
]
UDF
Timer A3 two-phase pulse signal processing select bit
1 : Two-phase pulse signal processing enabled
Timer A4 two-phase pulse signal processing select bit
1 : Two-phase pulse signal processing enabled
Setting divide ratio
Can be set to 0000
16
to FFFF
16
b7
b0
(b15)
(b8)
b7
b0
Timer A3 register [Address 038D
16
, 038C
16
] TA3
Timer A4 register [Address 038F
16
, 038E
16
] TA4
Start count
Setting count start flag
Timer A3 count start flag
Timer A4 count start flag
b7
b0
Two-phase pulse signal processing operation select bit
1 : Multiply-by-4 processing operation
Setting trigger select register
b7
b0
Trigger select register [Address 0383
16
]
TRGSR
Timer A3 event/trigger select bit
b5 b4
0 0 : Input on TA3
IN
is selected (Note 2)
Timer A4 event/trigger select bit
b7 b6
0 0 : Input on TA4
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”.
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...