R01UH0136EJ0210 Rev.2.10
Page 331 of 800
Jul 31, 2012
M16C/64A Group
19. Three-Phase Motor Control Timer Function
19.2.1
Read and write in 16-bit units.
The carrier wave cycle is determined by this counter. Timer B2 underflow is a one-shot trigger of timers
A1, A2, and A4.
In three-phase mode 1, the reload timing of the TB2 register can be selected by setting the PWCON bit
in the TB2SC register.
19.2.2
Timer Ai, Ai-1 Register (TAi, TAi1) (i = 1, 2, 4)
Write to these registers in 16-bit units. Use the MOV instruction to set registers TAi and TAi1. If the TAi
or TAi1 register is set to 0000h, no counters start and no timer Ai interrupt is generated.
The TAi or TAi1 register is used to determine waveforms of U-, V-, and W-phases. It is triggered by
timer B2 underflow, and operates in one-shot timer mode.
Registers TA1, TA2, and TA4 are used in sawtooth wave modulation mode and three-phase mode 0 of
triangular wave modulation mode.
Registers TA1, TA2, TA4, TA11, TA21, and TA41 are used in three-phase mode 1 of triangular wave
modulation mode.
When the INV15 bit in the INVC1 register is set to 0 (dead time enabled), some high- and low-side turn-
on signals, whose output level changes from inactive to active, switch the output level when the dead
time timer stops.
In three-phase mode 1, the value of the TAi1 register is counted first. Then, the values of registers TAi
and TAi1 are counted alternately.
Symbol
TB2
Address
0335h to 0334h
Reset Value
Undefined
Function
RW
Timer B2 Register
Setting Range
b7
b0
b7
b0
(b15)
(b8)
RW
0000h to FFFFh
If the setting value is n,
the counter frequency is n + 1
fj
Timers A1, A2, and A4 start each time an underflow occurs.
fj : Count source frequency
Symbol
TA1, TA2, TA4
TA11, TA21, TA41
Address
0329h to 0328h, 032Bh to 032Ah, 032Fh to 032Eh
0303h to 0302h, 0305h to 0304h, 0307h to 0306h
Reset Value
Undefined
Undefined
Function
RW
Timer Ai, Ai-1 Register (i = 1, 2, 4)
Setting Range
b7
b0
b7
b0
(b15)
(b8)
WO
If the setting value is n, the timer stops when the nth count
source is counted after a start trigger is generated. Output
signals of each phase change when timers A1, A2, and A4
stop.
0000h to FFFFh
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...