English
Language : 

M16C6K9 Datasheet, PDF (87/292 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C/6K9 Group
Timer A
Timer Ai mode register
(When not using two-phase pulse signals' processing)
b7 b6 b5 b4 b3 b2 b1 b0
0
01
Symbol
Address
When reset
TAiMR(i = 2 to 4) 039816 to 039A16 0016
Bit symbol
Bit name
Function
RW
TMOD0
TMOD1
MR0
MR1
Operation mode selection b1 b0
bits
0 1 : Event counter mode
Pulse output function
selection bit
0 : Pulse is not output
(TAiOUT pin is a normal port pin)
1 : Pulse is output (Note 1)
(TAiOUT pin is a pulse output pin)
Count polarity selection bit 0 : Counts external signal's falling edges
(Note 2)
1 : Counts external signal's rising edges
MR2
MR3
Up/down switching
factor selection bit
0 : Up/down flag's content
1 : TAiOUT pin's input signal (Note 3)
0 : (Must always be “0” in event counter mode)
TCK0
Count operation type
selection bit
0 : Reload type
1 : Free-run type
TCK1
Two-phase pulse signals'
processing operation
selection bit
(Note 4)(Note 5)
0 : Normal processing operation
1 : Multiply-by-4 processing operation
Note 1: The settings of the corresponding port register and port direction register are invalid.
Note 2: This bit is valid when only counting an external signal.
Note 3: Set the corresponding port direction register to “0”.
Note 4: This bit is valid for the timer A3 mode register.
For timer A2 and A4 mode registers, this bit can be “0 ”or “1”.
Note 5: When performing two-phase signal processing, make sure the two-phase pulse signals'
processing operation selection bit (address 038416) is set to “1”. Also, always be sure
to set the event/trigger selection bit (addresses 038216 and 038316) to “00”.
Timer Ai mode register
(When using two-phase pulse signals' processing)
b7 b6 b5 b4 b3 b2 b1 b0
01 0 0 0 1
Symbol
Address
When reset
TAiMR(i = 2 to 4) 039816 to 039A16 0016
Bit symbol
Bit name
Function
TMOD0 Operation mode selection
TMOD1 bits
b1 b0
0 1 : Event counter mode
MR0
0 (Must always be “0” when using two-phase pulse signal
processing)
MR1
0 (Must always be “0” when using two-phase pulse signal
processing)
MR2
1 (Must always be “1” when using two-phase pulse signal
processing)
MR3
0 (Must always be “0” when using two-phase pulse signal
processing)
TCK0
Count operation type
selection bit
0 : Reload type
1 : Free-run type
RW
TCK1
Two-phase pulse processing
operation selection bit
(Note 1)(Note 2)
0 : Normal processing operation
1 : Multiply-by-4 processing operation
Note 1: This bit is valid for timer A3 mode register.
For timer A2 and A4 mode registers, this bit can be “0” or “1”.
Note 2: When performing two-phase pulse signals' processing, make sure the two-phase pulse
signals' processing operation selection bit (address 038416) is set to “1”. Also, always be
sure to set the event/trigger selection bit (addresses 038216 and 038316) to “00”.
Fig.FB-9 Timer Ai mode register in event counter mode
Rev.1.00 Jun 06, 2003 page 87 of 290