English
Language : 

TMP88PS42FG Datasheet, PDF (162/224 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
13. Motor Control Circuit (PMD: Programmable motor
driver)
TMP88PS42FG
List of the Electrical Angle Timer and Waveform Arithmetic Circuit Registers [Addresses (PMD1 and PMD2)]
EDCRB
7
6
5
4
3
2
1
0
(01FC1H)
–
–
–
–
CALCST CALCBSY EDCALEN EDISEL (Initial value: **** 0000)
(01FF1H)
0: No operation
3
CALCST
Start calculation by software
W
1: Start calculation
0: Waveform Arithmetic Circuit stopped
2
CALCBSY Calculation flag
R
1: Waveform Arithmetic Circuit calculating
Enable/disable calculation start
0: Start calculation insync with electrical angle
1
EDCALEN synchronized with electrical
1: Do notcalculation insync with electrical angle
angle
R/W
0
EDISEL
Electrical angle interrupt
0: Interrupt when the Electrical Angle Timer finishes counting
1: Interrupt upon end of calculation
Note: Read-modify-write instructions, such as a bit manipulation instruction, cannot access the EDCRB register because this reg-
ister is write only.
EDCRA
(01FC0H)
(01FF0H)
7
EDCNT
6
EDRV
5
4
EDCK
3
2
1
0
C2PEN RWREN CALCEN EDTEN (Initial value: 0000 0000)
7
EDCNT
0: Count up
Electrical angle count up/down
1: Count down
6
EDRV
Select V-, W-phase
0: V = U + 120°, W = U + 240°
1: V = U − 120°, W = U − 240°
00: fc/23 (400 ns at 20 MHz)
5, 4 EDCK
Select clock
01: fc/24 (800 ns at 20 MHz)
10: fc/25 (1.6 µs at 20 MHz)
11: fc/26 (3.2 µs at 20 MHz)
R/W
3
C2PEN
Switch between 2-/3-phase
modulations
0: 2-phase modulation
1: 3-phase modulation
2
RWREN
Transfer calculation result to
CMP registers
0: Disable
1: Enable
1
CALC
Enable/disable waveform cal-
culation function
0: Disable
1: Enable
0
EDTEN
Electrical angleEnable/disable 0: Disable
mode timer
1: Enable
Note: When changing the EDCRA<EDCK> setting, keep the EDCRA<EDTEN> bit reset “0” (Disable electrical angle timer).
Page 152