Renesas M16C Series User Manual page 166

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

Advertisement

M30240 Group
Selecting timer mode and functions
b7
0
0
Setting divide ratio
(b15)
b7
Setting count start flag
b7
Figure 2.8:
Set-up procedure for timer mode
Rev.1.00 Sep 24, 2003 Page 148 of 360
b0
Timer Ai mode register (i=0 to 4) [Address 0396
0
0
0
TAiMR (i=0 to 4)
Selection of timer mode
Pulse output function select bit
0 : Pulse is not output (TA
Gate function select bit
b4 b3
0 0 :
Gate function not available (TAi
0 1 :
0 (Must always be "0" in timer mode)
Count source select bit
b7 b6
0 0 : f
1
0 1 : f
8
1 0 : f
32
1 1 : Reserved
(b8)
b0
b7
Can be set to 0000
b0
Count start flag [Address 0380
TABSR
Timer A0 count start flag
Timer A1 count start flag
Timer A2 count start flag
Timer A3 count start flag
Timer A4 count start flag
Start count
to 039A
16
pin is a normal port pin)
iOUT
pin is a normal port pin)
IN
Count source period
Count
b7 b6
source
0
0
f
1
0
1
f
8
0
1
f
32
Timer A0 register [Address 0387
Timer A1 register [Address 0389
b0
Timer A2 register [Address 038B
Timer A3 register [Address 038D
Timer A4 register [Address 038F
to FFFF
16
16
]
16
Timer A
]
16
f(X
) : 12MH
IN
Z
83.3ns
667ns
2.67 µs
, 0386
] TA0
16
16
, 0388
] TA1
16
16
, 038A
] TA2
16
16
, 038C
] TA3
16
16
, 038E
] TA4
16
16

Advertisement

Table of Contents
loading

Table of Contents