English
Language : 

M16C80 Datasheet, PDF (123/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
15. Three-phase motor control timers’ functions
Use of more than one built-in timer A and timer B provides the means of outputting three-phase motor
driving waveforms.
Figures 15.1 through 15.3 show registers related to timers for three-phase motor control.
Three-phase PWM control register 0 (Note 5)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
Address
INVC0
030816
When reset
0016
Bit symbol
INV00
Bit
Effective ninatemrreupt output
polarity select bit
Description
RW
0: A timer B2 interrupt occurs when the
timer A1 reload control signal is “0”.
1: A timer B2 interrupt occurs when the
timer A1 reload control signal is “1”.
Effective only in three-phase mode 1
INV01
INV02
Effective interrupt output
specification bit (Note 4)
Mode select bit
(Note 2)
0: Not specified.
1: Selected by the effective interrupt
output polarity selection bit.
Effective only in three-phase mode 1
0: Normal mode
1: Three-phase PWM output mode
INV03
Output control bit
0: Output disabled
1: Output enabled
INV04
INV05
INV06
Positive and negative
0: Feature disabled
phases concurrent L output 1: Feature enabled
disable function enable bit
Positive and negative
0: Not detected yet
phases concurrent L output 1: Already detected
detect flag
Modulation mode select
bit (Note 3)
0: Triangular wave modulation mode
1: Sawtooth wave modulation mode
(Note 1)
INV07 Software trigger bit
1: Trigger generated
The value, when read, is “0”.
Note 1: No value other than “0” can be written.
Note 2: Selecting three-phase PWM output mode causes the dead time timer, the U, V, W phase output control circuits, and the
timer B2 interrupt occurrences frequency set circuit works.
For U, U, V, V, W and W output from P80, P81, and P72 through P75, setting of function select registers A, B and C is
required.
Note 3: In triangular wave modulation mode: The dead time timer starts in synchronization with the falling edge of timer Ai
output. The data transfer from the three-phase buffer register to the three-phase output shift register is made only once in
synchronization with the transfer trigger signal after writing to the three-phase output buffer register.
In sawtooth wave modulation mode: The dead time timer starts in synchronization with the falling edge of timer A
output and with the transfer trigger signal. The data transfer from the three-phase output buffer register to the three-
phase output shift register is made with respect to every transfer trigger.
Note 4: Set bit 1 of this register to "1" after setting timer B2 interrupt frequency set counter.
Note 5: Rewrite the INV00 to INV02 and INV06 bits when the timers A1,A2,A4 and B stop.
Three-phase PWM control register 1
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
INVC1
Address
030916
When reset
XXX0X0002
Bit symbol
Bit name
INV10
Timer Ai start trigger
signal select bit
INV11
Timer A1-1, A2-1, A4-1
control bit
Description
0: Timer B2 overflow signal
1: Timer B2 overflow signal,
signal for writing to timer B2
0: Three-phase mode 0
1: Three-phase mode 1
INV12
Dead time timer count
source select bit
0 : f1
1 : f1/2
INV13
Carrier wave detect flag
(Note)
0: Rising edge of triangular waveform
1: Falling edge of triangular waveform
INV14
Output porality control bit 0 : Low active
1 : High active
Noting is assigned.
When write, set "0". When read, their contents are "0".
Note : INV13 is valid when INV06 = 0 and INV11 = 1.
Figure 15.1 Registers related to timers for three-phase motor control
RW
X
––
Rev.1.00 Aug. 02, 2005 Page 112 of 329
REJ09B0187-0100