English
Language : 

M16C80 Datasheet, PDF (126/358 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/80 SERIES
M16C/80 Group
15. Three-phase motor control timers’ functions
Three-phase motor driving waveform output mode (three-phase PWM output mode)
Setting “1” in the mode select bit (bit 2 at 030816) shown in Figure 15.1 causes three-phase PWM output
mode that uses four timers A1, A2, A4, and B2 to be selected. As shown in Figure 15.4, set timers A1, A2,
and A4 in one-shot timer mode, set the trigger in timer B2, and set timer B2 in timer mode using the
respective timer mode registers.
Timer Ai mode register
b7 b6 b5 b4 b3 b2 b1 b0
01
10
Symbol
TA1MR
TA2MR
TA3MR
Address
035716
035816
035A16
When reset
00000X002
00000X002
00000X002
Bit symbol
TMOD0
TMOD1
Bit name
Operation mode
select bit
Function
b1 b0
1 0 : One-shot timer mode
MR0
This bit is invalid in M16C/80 series.
Port output control is set by the function select registers A and B.
RW
––
MR1
MR2
MR3
TCK0
TCK1
External trigger select
bit
Trigger select bit
Invalid in three-phase PWM output mode.
1 : Selected by event/trigger select
register
0 (Set to “0” in one-shot timer mode)
Count source select bit
b7 b6
0 0 : f1
0 1 : f8
1 0 : f32
1 1 : fC32
Timer B2 mode register
b7 b6 b5 b4 b3 b2 b1 b0
0
00
Symbol
TB2MR
Address
035D16
When reset
00XX00002
Bit symbol
TMOD0
TMOD1
MR0
MR1
Bit name
Function
Operation mode select bit b1 b0
0 0 : Timer mode
Invalid in timer mode
Can be “0” or “1”
MR2
MR3
TCK0
TCK1
0 (Set to “0” in timer mode)
Invalid in timer mode.
When write, set "0". When read in timer mode, its content is
indeterminate.
Count source select bit
b7 b6
0 0 : f1
0 1 : f8
1 0 : f32
1 1 : fC32
RW
Figure 15.4 Timer mode registers in three-phase PWM output mode
Rev.1.00 Aug. 02, 2005 Page 115 of 329
REJ09B0187-0100