Timer B2 Register (Tb2); Timer Ai, Ai-1 Register (Tai, Tai1) (I = 1, 2, 4) - Renesas M16C/64A Series User Manual

Table of Contents

Advertisement

M16C/64A Group
19.2.1

Timer B2 Register (TB2)

Timer B2 Register
(b15)
(b8)
b7
b0
b7
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)

Timer Ai, Ai-1 Register (i = 1, 2, 4)
(b15)
(b8)
b7
b0
b7
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.
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
Symbol
b0
TB2
If the setting value is n,
the counter frequency is n + 1
Timers A1, A2, and A4 start each time an underflow occurs.
fj : Count source frequency
b0
Symbol
TA1, TA2, TA4
0329h to 0328h, 032Bh to 032Ah, 032Fh to 032Eh
TA11, TA21, TA41
0303h to 0302h, 0305h to 0304h, 0307h to 0306h
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.
19. Three-Phase Motor Control Timer Function
Address
0335h to 0334h
Function
fj
Address
Function
Reset Value
Undefined
Setting Range
RW
0000h to FFFFh
RW
Reset Value
Undefined
Undefined
Setting Range
RW
0000h to FFFFh
WO
Page 331 of 800

Advertisement

Table of Contents
loading

Table of Contents