Renesas M16C Series User Manual page 85

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group
Timer Ai register (Note)
(b15)
b7
Count start flag
b7 b6 b5 b4 b3 b2 b1 b0
Up/down flag
b7 b6 b5 b4 b3 b2 b1 b0
Figure 1.61: Timer A-related registers (2)
Rev.1.00 Sep 24, 2003 Page 67 of 360
Symbol
(b8)
TA0
b0 b7
b0
TA1
TA2
TA3
TA4
Function
• Timer mode
Counts an internal count source
• Event counter mode
Counts pulses from an external source or timer overflow
• One-shot timer mode
Counts a one shot width
• Pulse width modulation mode (16-bit PWM)
Functions as a 16-bit pulse width modulator
• Pulse width modulation mode (8-bit PWM)
Timer low-order address functions as an 8-bit
prescaler and high-order address functions as an 8-bit
pulse width modulator
Note: Read and write data in 16-bit units.
Symbol
Address
TABSR
0380
16
Bit symbol
Bit name
TA0S
Timer A0 count start flag
TA1S
Timer A1 count start flag
TA2S
Timer A2 count start flag
TA3S
Timer A3 count start flag
TA4S
Timer A4 count start flag
TB0S
Timer B0 count start flag
TB1S
Timer B1 count start flag
TB2S
Timer B2 count start flag
Symbol
Address
UDF
0384
16
Bit symbol
Bit name
TA0UD
Timer A0 up/down flag
TA1UD
Timer A1 up/down flag
TA2UD
Timer A2 up/down flag
TA3UD
Timer A3 up/down flag
TA4UD
Timer A4 up/down flag
Timer A2 two-phase pulse
TA2P
signal processing select bit
Timer A3 two-phase pulse
TA3P
signal processing select bit
Timer A4 two-phase pulse
TA4P
signal processing select bit
Address
When reset
0387
,0386
Indeterminate
16
16
0389
,0388
Indeterminate
16
16
038B
,038A
Indeterminate
16
16
038D
,038C
Indeterminate
16
16
038F
,038E
Indeterminate
16
16
Values that can be set
0000
to FFFF
16
16
0000
to FFFF
16
16
0000
to FFFF
16
16
0000
to FFFE
16
16
00
to FE
16
16
(Both high-order
and low-order
addresses)
When reset
00
16
Function
0 : Stops counting
1 : Starts counting
When reset
00
16
Function
0 : Down count
1 : Up count
This specification becomes valid
when the up/down flag content is
selected for up/down switching
cause
0 : two-phase pulse signal
processing disabled
1 : two-phase pulse signal
processing enabled
When not using the two-phase
pulse signal processing function,
set the select bit to "0"
Timer A
R
W
R
W
R
W

Advertisement

Table of Contents
loading

Table of Contents