Renesas M16C/29 Series Hardware Manual page 144

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

Advertisement

M16C/29 Group
Timer B2 register (Note )
(b15)
b7
The register must be accessed in 16 bit units.
Note :
Trigger select register
b7 b6 b5 b4 b3 b2 b1
Note 1: Set the corresponding port direction bit to "0" (input mode).
Note 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
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
(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
Address
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
TA4TGL
Timer A4 event/trigger
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 of 402
12.3 Three-phase Motor Control Timer Function
Symbol
Address
TB2
0395
16
Function
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 :
0 1 :
1 0 :
1 1 :
To use the U-phase output control
circuit, set these bits to "01
underflow).
Address
After reset
0380
00
16
Bit name
0 : Stops counting
1 : Starts counting
After reset
-0394
Indeterminate
16
Setting range
0000
to FFFF
16
16
Function
"(TB2
2
"(TB2
2
Input on TA3
is selected (Note 1)
IN
TB2 overflow is selected (Note 2)
TA2 overflow is selected (Note 2)
TA4 overflow is selected (Note 2)
"(TB2
2
16
Function
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 seriesM16c/tiny series

Table of Contents