Renesas M16C/62P Series Hardware Manual page 184

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
Timer B2 Interrupt Generation Frequency Set Counter
b7
b0
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)
(b15)
(b8)
b7
b0
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
REJ09B0185-0241
http://www.xinpian.net
Symbol
ICTB2
When the INV01 bit is set to "0" (the ICTB2 counter increments w henever
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
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".
(1, 2, 3, 4, 5, 6, 7)
b7
b0
Symbol
TA1, TA2
TA4
TA11, TA21 0343h to 0342h, 0345h to 0344h
TA41
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.
Page 169 of 390
提供单片机解密、IC解密、芯片解密业务
16. Three-Phase Motor Control Timer Function
(1, 2, 3)
Address
034Dh
Function
Address
0389h to 0388h, 038Bh to 038Ah
038Fh to 038Eh
0347h to 0346h
Function
After Reset
Indeterminate
Setting Range
RW
1 to 15
WO
After Reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Setting Range
RW
0000h to FFFFh
WO
010-62245566 13810019655

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents