EasyManuals Logo
Home>Renesas>Computer Hardware>M16C Series

Renesas M16C Series User Manual

Renesas M16C Series
380 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #90 background imageLoading...
Page #90 background image
Timer A
M30240 Group
Rev.1.00 Sep 24, 2003 Page 72 of 360
Figure 1.65: Timer Ai mode register in event counter mode, two-phase signal
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 pulse signal processing, make sure the two-phase pulse
signal processing operation select bit (address 0384
16) is set to “1”. Also, always be
sure to set the event/trigger select bit (addresses 0382
16 and 038316) to “00”.
Note 6: This value can be indeterminate when the count starts.
Timer Ai mode register
(When not using two-phase pulse signal processing)
Symbol
Address
When reset
TAiMR(i = 2 to 4)
0398
16 to 039A16
0016
b7 b6 b5 b4 b3 b2 b1 b0
Operation mode select bit
0 1 : Event counter mode
b1 b0
TMOD1
TMOD0
MR0
Pulse output function
select bit
0 : Pulse is not output
(TAi
OUT pin is a normal port pin)
1 : Pulse is output (Note 1)
(TAi
OUT pin is a pulse output pin)
Count polarity
select bit (Note 2)
MR2
MR1
MR3
0 : (Must always be “0” in event counter mode)
TCK1
TCK0
010
0 : Counts external signal's falling edges
1 : Counts external signal's rising edges
Up/down switching
cause select bit
0 : Up/down flag's content
1 : TA
iOUT pin's input signal (Note 3)
Bit symbol Bit name Function
WR
Count operation type
select bit
Two-phase pulse signal
processing operation
select bit (Note 4)(Note 5)
0 : Reload type
1 : Free-run type (Note 6)
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 signal processing, make sure the two-phase pulse
signal processing operation select bit (address 0384
16) is set to “1”. Also, always be
sure to set the event/trigger select bit (addresses 0382
16 and 038316
)
to “00”.
Note 3: This value can be indeterminate when the count starts.
Timer Ai mode register
(When using two-phase pulse signal processing)
Symbol Address
When reset
TAiMR(i = 2 to 4) 0398
16 to 039A16
0016
b7 b6 b5 b4 b3 b2 b1 b0
Operation mode select bit
0 1 : Event counter mode
b1 b0
TMOD1
TMOD0
MR0
0 (Must always be “0” when using two-phase pulse signal
processing)
0 (Must always be “0” when using two-phase pulse signal
processing)
MR2
MR1
MR3
0 (Must always be “0” when using two-phase pulse signal
processing)
TCK1
TCK0
010
1 (Must always be “1” when using two-phase pulse signal
processing)
Bit symbol Bit name Function
WR
Count operation type
select bit
Two-phase pulse
processing operation
select bit (Note 1)(Note 2)
0 : Reload type
1 : Free-run type (Note 3)
0 : Normal processing operation
1 : Multiply-by-4 processing operation
001

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas M16C Series and is the answer not in the manual?

Renesas M16C Series Specifications

General IconGeneral
BrandRenesas
ModelM16C Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals