Renesas M16C Series User Manual page 22

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

Advertisement

M30245 Group
Selecting timer mode and functions
b7
www.DataSheet4U.com
Setting divide ratio
(b15)
b7
Setting clock prescaler reset flag
(This function is effective when f
dividing the X
b7
Setting count start flag
b7
Figure 2.2.7. Set-up procedure of timer mode
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
b0
Timer Ai mode register (i=0 to 4) [Address 0396
0
0
0
0
0
TAiMR (i=0 to 4)
Selection of timer mode
Pulse output function select bit
0 : Pulse is not output (TAi OUT pin is a normal port pin)
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 : f
C32
(b8)
b0
b7
Can be set to 0000
is selected as the count source. Reset the prescaler for generating f
C32
by 32.)
CIN
b0
Clock prescaler reset flag [Address 0381
CPSRF
Clock prescaler reset flag
0 : No effect
1 : Prescaler is reset (When read, the value is "0")
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
page 13 of 354
pin is a normal port pin)
IN
Count
b7 b6
source
0
0
f
1
0
1
f
8
1
0
f
32
1
1
f
C32
Timer A0 register [Address 0387
Timer A1 register [Address 0389
Timer A2 register [Address 038B
b0
Timer A3 register [Address 038D
Timer A4 register [Address 038F
to FFFF
16
16
]
16
]
16
Start count
to 039A
]
16
16
Count source period
f(X
) : 16MH
f(Xc
) : 32.768kH
IN
Z
IN
62.5ns
500ns
2µs
976.56µs
, 0386
] TA0
16
16
, 0388
] TA1
16
16
, 038A
] TA2
16
16
, 038C
] TA3
16
16
, 038E
] TA4
16
16
by
C32
2. Timer A
Z

Advertisement

Table of Contents
loading

Table of Contents