English
Language : 

M16C62_M Datasheet, PDF (334/615 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Timer A
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Selecting timer mode and functions
b7
b0
Timer Ai mode register (i=0 to 4) [Address 039616 to 039A16]
00
1 0 0 TAiMR (i=0 to 4)
Selection of timer mode
1 : Pulse is output (Note) (TAiOUT pin is a pulse output pin)
Gate function select bit
b4 b3
00:
01:
Gate function not available (TAiIN pin is a normal port pin)
0 (Must always be “0” in timer mode)
Count source select bit
b7 b6
0 0 : f1
0 1 : f8
1 0 : f32
1 1 : fC32
b7 b6
00
01
10
11
Count
source
f1
f8
f32
fC32
Count source period
f(XIN) : 16MHZ f(XcIN) : 32.768kHZ
62.5ns
500ns
2µs
976.56µs
Note: The settings of the corresponding port register and port direction register are invalid.
Setting counter value
(b15)
b7
(b8)
b0 b7
Timer A0 register [Address 038716, 038616] TA0
b0 Timer A1 register [Address 038916, 038816] TA1
Timer A2 register [Address 038B16, 038A16] TA2
Timer A3 register [Address 038D16, 038C16] TA3
Timer A4 register [Address 038F16, 038E16] TA4
Can be set to 000016 to FFFF16
Setting clock prescaler reset flag
(This function is effective when fC32 is selected as the count source. Reset the prescaler for generating fC32 by
dividing the XCIN by 32.)
b7
b0
Clock prescaler reset flag [Address 038116]
CPSRF
Clock prescaler reset flag
0 : No effect
1 : Prescaler is reset (When read, the value is “0”)
Setting count start flag
b7
b0
Count start flag [Address 038016]
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
Figure 2.2.11. Set-up procedure of timer mode, pulse output function selected
2-17