M16C/62P Group (M16C/62P, M16C/62PT)
16. Three-Phase Motor Control Timer Function
Rev.2.41
Jan 10, 2006
Page 170 of 390
REJ09B0185-0241
Figure 16.5
TB2SC, IDB0 and IDB1 Registers
Timer B2 Special Mode Register
(1)
Address
After Reset
039Eh
XXXXXX00b
Bit Symbol
Function
RW
0 : Three-phase output forcible cutoff by NMI
____
input (high-impedance) disabled
1 : Three-phase output forcible cutoff by NMI
____
input (high-impedance) enabled
NOTES :
1.
2.
3.
b0
Bit Name
PWCOM
TB2SC
Symbol
b3 b2 b1
b7 b6 b5 b4
RW
—
(b7-b2)
IVPCR1
Nothing is assigned. When w rite, set to “0”.
When read, their contents are indeterminate.
Timer B2 Reload Timing
Sw itching Bit
Three Phase Output Port NMI
____
0 : Timer B2 underflow
1 : Timer A output at odd-numbered
occurrences
(2)
Control Bit 1(3)
pin w hen the IVPCR1 bit = 1, the target pins go to a high-impedance state regardless of w hich 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 w ill be reset.
RW
If the INV11 bit is “0” (three-phase mode 0) or the INV06 bit is “1” (saw tooth w ave modulation mode), set this bit to “0” (Timer
B2 underflow ).
Related pins are U(P8_0/TA4OUT), U
__
(P8_1/TA4IN), V(P7_2/CLK2/TA1OUT), V
__
(P7_3/CTS2/RTS2/TA1IN),
Write to this register after setting the PRC1 bit in the PRCR register to “1” (w rite enable).
W(P7_4/TA2OUT), W
___
(P7_5/TA2IN). If a low -level signal is applied to the NMI
____
—
Three-Phase Output Buffer Register i
(1)
(i=0, 1)
Symbol
Address
After Reset
IDB0, IDB1
034Ah, 034Bh
00h
Bit Symbol
Bit Name
RW
U
__
-Phase Output Buffer i
V
__
-Phase Output Buffer i
W
__
-Phase Output Buffer i
NOTES :
1. Values of the IDB0 and IDB1 registers are transferred to the three-phase output shift register by a transfer trigger.
After the transfer trigger occurs, the values w ritten in the IDB0 register determine each phase output signal first.
Then the value w ritten in the IDB1 register on the falling edge of Timers A1, A2 and A4 one-shot pulse determines
each phase output signal.
DUBi
RW
DUi
RW
—
(b7-b6)
Reserved Bit
RO
Set to “0”
DWBi
RW
Write output level
0 : Active level
1 : Inactive level
When read, the value of the three-phase shift
register is read.
U-Phase Output Buffer i
DWi
W-Phase Output Buffer i
RW
DVBi
RW
DVi
V-Phase Output Buffer i
RW
Function
0 0
b3 b2 b1 b0
b7 b6 b5 b4
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655