English
Language : 

M16C62P_06 Datasheet, PDF (184/421 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
M16C/62P Group (M16C/62P, M16C/62PT)
16. Three-Phase Motor Control Timer Function
Timer B2 Interrupt Generation Frequency Set Counter (1, 2, 3)
b7
b0
Symbol
Address
After Reset
ICTB2
034Dh
Indeterminate
Function
Setting Range RW
When the INV01 bit is set to “0” (the ICTB2 counter increments w henever
1 to 15
Timer B2 underflow s) and the setting value is n , Timer B2 interrupt is
generated every n th time Timer B2 underflow occurs.
When the INV01 bit is set to “1” (the INV00 bit selects count timing of the
WO
ICTB2 counter) and setting value is n , Timer B2 interrupt is generated
every n th time Timer B2 underflow meeting the condition selected in the
INV00 bit occurs.
Nothing is assigned. When w rite, set to “0”.
—
NOTES :
1. Use the MOV instruction to set the ICTB2 register.
2. If the INV01 bit is set to “1”, set the ICTB2 register w hen the TB2S bit is set to “0” (Timer B2 counter stopped).
If the INV01 bit is set to “0” and the TB2S bit to “1” (Timer B2 counter start), do not set the ICTB2 register w hen Timer
B2 underflow s.
3. If the INV00 bit is set to “1”, the first interrupt is generated w hen Timer B2 underflow s n-1 times, n being the value set
in the ICTB2 counter. Subsequent interrupts are generated every n times Timer B2 underflow s.
Timer Ai, Ai-1 Register (i = 1, 2, 4) (1, 2, 3, 4, 5, 6, 7)
(b15)
(b8)
b7
b0 b7
b0
Symbol
Address
TA1, TA2 0389h to 0388h, 038Bh to 038Ah
TA4
038Fh to 038Eh
TA11, TA21 0343h to 0342h, 0345h to 0344h
TA41
0347h to 0346h
Function
After Reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Setting Range
RW
If setting value is n , the timer stops w hen the n th count source is
counted after a start trigger is generated.
Positive phase changes to negative phase, and vice versa, w hen
Timers A1, A2 and A4 stop.
0000h to FFFFh
WO
NOTES :
1. Use a 16-bit data for read and w rite.
2 If the TAi or TAi1 register is set to “0000h”, no counters start and no Timer Ai interrupt is generated.
3 Use the MOV instruction to set the TAi and TAi1 registers.
4 When the INV15 bit in the INVC1 register is set to “0” (dead timer enabled), phase sw itches from an inactive level to
an active level w hen the dead time timer stops.
5 When the INV11 bit is set to “0” (three-phase mode 0), the value of the TAi register is transferred to the reload
register by a Timer Ai start trigger.
When the INV11 bit is set to “1” (three-phase mode 1), the value of the TAi1 register is first transferred to the
reload register by a Timer Ai start trigger. Then, the value of the TAi register is transferred by the next trigger. The
values of the TAi1 and TAi registers are transferred alternately to the reload register w ith every Timer Ai start
trigger.
6 Do not w rite to these registers w hen the Timer B2 underflow s.
7 Follow the procedure below to set the TAi1 register.
(a) Write value to the TAi1 register,
(b) Wait one Timer Ai count source cycle, and
(c) Write the same value as (a) to the TAi1 register.
Figure 16.4 ICTB2, TA1, TA2, TA4, TA11, TA21 and TA41 Registers
Rev.2.41 Jan 10, 2006 Page 169 of 390
REJ09B0185-0241