Renesas M16C/26A Series Hardware Manual page 143

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6
Timer B2 register
(b15)
b7
NOTE:
1. The register must be accessed in 16 bit units.
Trigger select register
b7 b6 b5 b4 b3 b2 b1
NOTES:
1. Set the corresponding port direction bit to "0" (input mode).
2. Overflow or underflow
Count start flag
b7 b6 b5 b4 b3 b2 b1 b0
Figure 12.3.7. TB2 Register, TRGSR Register, and TABSR Register
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
(1)
(b8)
b0
b0 b7
Divide the count source by n + 1 where n = set value.
Timer A1, A2 and A4 are started at every occurrence of
underflow.
b0
Symbol
TRGSR
Bit symbol
Timer A1 event/trigger
TA1TGL
select bit
TA1TGH
Timer A2 event/trigger
TA2TGL
select bit
TA2TGH
Timer A3 event/trigger
TA3TGL
select bit
TA3TGH
Timer A4 event/trigger
TA4TGL
select bit
TA4TGH
Symbol
TABSR
Bit symbol
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
page 124
f o
3
2
9
C
2 /
6
) T
Symbol
Address
TB2
0395
Function
Address
After reset
0383
00
16
16
Bit name
To use the V-phase output control
circuit, set these bits to "01
underflow).
To use the W-phase output control
circuit, set these bits to "01
underflow).
b5 b4
0 0 :
Input on TA3
0 1 :
TB2 overflow is selected (2)
1 0 :
TA2 overflow is selected (2)
1 1 :
TA4 overflow is selected (2)
To use the U-phase output control
circuit, set these bits to "01
underflow).
Address
After reset
0380
00
16
16
Bit name
0 : Stops counting
1 : Starts counting
After reset
to 0394
Indeterminate
16
16
Setting range
0000
to FFFF
16
16
Function
"(TB2
2
"(TB2
2
is selected (1)
IN
"(TB2
2
Function
12. Timer
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents