Renesas M16C Series User Manual page 26

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
Note: The setting of the corresponding port register and
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.11. Set-up procedure of timer mode, pulse output function selected
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
b0
Timer Ai mode register (i=0 to 4) [Address 0396
0
0
1
0
0
TAiMR (i=0 to 4)
Selection of timer mode
Pulse output function select bit
1 : Pulse is output (TAi OUT pin is a pulse output pin) (Note)
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
the direction register are invalid.
(b8)
b0
b7
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 17 of 354
IN
b7 b6
0
0
0
1
1
0
1
1
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
Can be set to 0000
to FFFF
16
16
]
16
Start count
to 039A
]
16
16
pin is a normal port pin)
Count source period
Count
source
f(X
) : 16MH
f(Xc
) : 32.768kH
IN
Z
IN
f
62.5ns
1
f
500ns
8
f
2µs
32
f
976.56µs
C32
, 0386
16
, 0388
16
, 038A
16
, 038C
16
, 038E
16
]
16
2. Timer A
Z
] TA0
16
] TA1
16
] TA2
16
] TA3
16
] TA4
16
by
C32

Advertisement

Table of Contents
loading

Table of Contents