Three-phase Motor Control Timer Functions
134
Mitsubishi microcomputers
M16C / 62P Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
development
Preliminary Specifications Rev.1.0
Specifications in this manual are tentative and subject to change.
Symbol
TA1
TA2
TA4
TA11
TA21
TA41
Address
0389
16
-0388
16
038B
16
-038A
16
038F
16
-038E
16
0343
16
-0342
16
0345
16
-0344
16
0347
16
-0346
16
After reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
b7
b0
(b7
(b0
RW
Assuming the set value = n, upon a start trigger the timer
starts counting the count source and stops after counting
it n times. The positive and negative phases change at
the same time timer A, A2 or A4 stops.
Function
Setting range
Timer Ai, Ai-1 register (i=1, 2, 4) (Note 1, Note 2, Note 3, Note 4, Note 5, Note 6)
Note 1: The register must be accessed in 16 bit units.
Note 2: When the timer Ai register is set to “0000
16
”, the counter does not operate and a timer Ai interrupt does
not occur.
Note 3: Use MOV instruction to write to these registers.
Note 4: If the INV15 bit is “0” (dead time timer enable), the positive or negative phase whichever is going from an
inactive to an active level changes at the same time the dead time timer stops.
Note 5: If the INV11 bit is “0” (three-phase mode 0), the TAi register value is transferred to the reload register by
a timer Ai (i = 1, 2 or 4) start trigger.
If the INV11 bit is “1” (three-phase mode 1), the TAi1 register value is transferred to the reload register
by a timer Ai start trigger first and then the TAi register value is transferred to the reload register by the
next timer Ai start trigger. Thereafter, the TAi1 register and TAi register values are transferred to the
reload register alternately.
Note 6: Do not write to these registers synchronously with a timer B2 underflow.
Note 7: Write to the TAi1 register as follows:
(1) Write a value to the TAi1 register.
(2) Wait for one cycle of timer Ai count source.
(3) Write the same value to the TAi1 register again.
WO
0000
16
to FFFF
16
PWCOM
Symbol
TB2SC
Address
039E
16
After reset
XXXXXX00
2
Timer B2 reload timing
switching bit
0 : Timer B2 underflow
1 : Timer A output at odd-numbered
occurrences
Timer B2 special mode register
Bit name
Function
Bit symbol
b7
b6
b5
b4
b3
b2
b1
b0
Nothing is assigned.
When write, set to “0”. When read, its content is “0”.
IVPCR1
Three phase output port
NMI control bit 1
0 : Three-phase output forcible cutoff
by NMI input (high impedance)
disabled
1 : Three-phase output forcible cutoff
by NMI input (high impedance)
enabled
(Note 3)
Note 1: Write to this register after setting the PRC1 bit of PRCR register to “1” (write enable).
Note 2: If the INV11 bit is “0” (three-phase mode 0) or the INV06 bit is “1” (triangular wave modulation mode), set
this bit to “0” (timer B2 underflow).
Note 3: Related pins are U(P8
0
), U(P8
1
), V(P7
2
), V(P7
3
), W(P7
4
) and W(P7
5
). If a low-level signal is applied to
the NMI pin when the IVPCR1 bit = 1, the target pins go to a high-impedance state regardless of which
functions of those pins are being used. After forced interrupt (cutoff), input “H” to the NMI pin and set
IVPCR1 bit to “0”: this forced cutoff will be reset.
RW
RW
RW
(b7-b2)
(Note 2)
Figure 1.16.5.
ICTB2 Register, TA1, TA2, TA4, TA11, TA21 and TA41 Registers, and TB2SC Registers
Timer B2 interrupt occurrences frequency set counter
b3
b0
Symbol
ICTB2
Address
034D
16
After reset
Indeterminate
Function
Setting range
If the INV01 bit is “0” (ICTB2 counter counted every
time timer B2 underflows), assuming the set value
= n, a timer B2 interrupt is generated at every n’th
occurrence of a timer B2 underflow.
If the INV01 bit is “1” (ICTB2 counter count timing
selected by the INV00 bit), assuming the set value
= n, a timer B2 interrupt is generated at every n’th
occurrence of a timer B2 underflow that meets the
condition selected by the INV00 bit.
1 to 15
Note : Use MOV instruction to write to this register.
If the INV01 bit = “1”, make sure the TB2S bit also = “0” (timer B2 count stopped) when writing to this register.
If the INV01 bit = “0”, although this register can be written even when the TB2S bit = “1” (timer B2 count start),
do not write synchronously with a timer B2 underflow.
RW
WO
(Note)
Nothing is assigned. When write, set to “0”. When read, its content is
indeterminate.