Renesas M16C/62P Hardware Manual page 164

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
Timer B2 Register
b15
b8
b7
NOTES:
1. Use a 16-bit data for read and write.
Trigger Select Register
b7
b6
b5
b4
b3
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 16.6 TB2 Register, TRGSR Register, and TABSR Register
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
(1)
b0
Symbol
TB2
If setting value is n, count source is divided by n+1.
The timers A1, A2 and A4 start every time an underflow occurs.
Symbol
b2
b1
b0
TRGSR
Bit
Symbol
TA1TGL
Timer A1 Event/Trigger
Select Bit
TA1TGH
TA2TGL
Timer A2 Event/Trigger
Select Bit
TA2TGH
TA3TGL
Timer A3 Event/Trigger
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 150
f o
3
6
4
16. Three-Phase Motor Control Timer Function
Address
0395h - 0394h
Function
Address
0383h
Bit Name
Set to "01b" (TB2 underflow) before using
a V-phase output control circuit
Set to "01b" (TB2 underflow) before using
a W-phase output control circuit
b5
b4
0
0
: Selects an input to the TA3IN pin
0
1
: Selects TB2
1
0
: Selects TA2
1
1
: Selects TA4
Set to "01b" (TB2 underflow) before using
a U-phase output control circuit
Address
After Reset
0380h
00h
Bit Name
0 : Stops counting
1 : Starts counting
After Reset
Indeterminate
Setting Range
RW
0000h to FFFFh
RW
After Reset
00h
RW
Function
RW
RW
RW
RW
RW
(1)
(2)
(2)
RW
(2)
RW
RW
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents