M30622MA-XXXFP RENESAS [Renesas Technology Corp], M30622MA-XXXFP Datasheet - Page 304

no-image

M30622MA-XXXFP

Manufacturer Part Number
M30622MA-XXXFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Timer A
Figure 2.2.9. Set-up procedure of timer mode, gate function selected
Note: Set the corresponding port direction register to “0”.
Setting clock prescaler reset flag
(This function is effective when f
dividing the X
b7
Setting count start flag
Setting divide ratio
(b15)
b7
Selecting timer mode and functions
b7
b7
0
1
CIN
1
by 32.)
0
0
b0
b0
b0
0
(b8)
b0
Selection of timer mode
Pulse output function select bit
Gate function select bit
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
Count start flag [Address 0380
b7 b6
Clock prescaler reset flag [Address 0381
CPSRF
Clock prescaler reset flag
TABSR
0 : Pulse is not output (TA
1 1 : Timer counts only when TA
0 0 : f
0 1 : f
1 0 : f
1 1 : f
0 : No effect
1 : Prescaler is reset (When read, the value is “0”)
Timer Ai mode register (i=0 to 4) [Address 0396
TAiMR (i=0 to 4)
C32
1
8
32
C32
is selected as the count source. Reset the prescaler for generating f
Can be set to 0000
Start count
b0
iOUT
16
16
pin is a normal port pin)
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
to FFFF
iIN
]
b7 b6
0
0
1
1
pin is held “H” (Note)
0
1
1
0
16
16
source
Count
f
f
f
f
1
8
]
32
C32
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
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
Mitsubishi microcomputers
IN
M16C / 62 Group
) : 32.768kH
16
16
16
16
16
C32
] TA0
] TA1
] TA4
] TA2
] TA3
by
Z
289

Related parts for M30622MA-XXXFP