M30245_06 RENESAS [Renesas Technology Corp], M30245_06 Datasheet - Page 26

no-image

M30245_06

Manufacturer Part Number
M30245_06
Description
RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/20 SERIES
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
M30245 Group
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Figure 2.2.11. Set-up procedure of timer mode, pulse output function selected
Note: The setting of the corresponding port register and
(b15)
b7
Setting divide ratio
Setting count start flag
Selecting timer mode and functions
Setting clock prescaler reset flag
(This function is effective when f
dividing the X
b7
b7
b7
the direction register are invalid.
0
0
CIN
page 17 of 354
by 32.)
1
0
b0
b0
b0
0
(b8)
b0
Pulse output function select bit
Gate function select bit
Selection of timer mode
0 (Must always be “0” in timer mode)
Count source select bit
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
b4 b3
b7 b6
b7
Count start flag [Address 0380
TABSR
1 : Pulse is output (TAi OUT pin is a pulse output pin) (Note)
0 0 :
0 1 :
0 0 : f
0 1 : f
1 0 : f
1 1 : f
Clock prescaler reset flag
Clock prescaler reset flag [Address 0381
CPSRF
Timer Ai mode register (i=0 to 4) [Address 0396
TAiMR (i=0 to 4)
0 : No effect
1 : Prescaler is reset (When read, the value is “0”)
C32
1
8
32
C32
is selected as the count source. Reset the prescaler for generating f
Gate function not available (TAi
Can be set to 0000
Start count
b0
16
Timer A0 register [Address 0387
Timer A1 register [Address 0389
Timer A2 register [Address 038B
Timer A3 register [Address 038D
Timer A4 register [Address 038F
16
to FFFF
]
b7 b6
0
0
1
1
0
1
0
1
IN
16
pin is a normal port pin)
16
source
Count
f
f
f
f
32
C32
1
8
]
16
f(X
to 039A
IN
) : 16MH
Count source period
16
976.56µs
]
Z
62.5ns
500ns
16
16
16
16
16
f(Xc
2µs
, 0386
, 0388
, 038E
, 038A
, 038C
IN
) : 32.768kH
16
16
16
16
16
] TA0
] TA1
] TA4
C32
] TA2
] TA3
by
Z
2. Timer A

Related parts for M30245_06