tmp88ch40img TOSHIBA Semiconductor CORPORATION, tmp88ch40img Datasheet - Page 98

no-image

tmp88ch40img

Manufacturer Part Number
tmp88ch40img
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
driver)
11. Motor Control Circuit (PMD: Programmable motor
EDCRB
EDCRA
EDSET
F to C
B to 0
5, 4
3
2
1
0
7
6
3
2
1
0
WFMDR
ELDEG
EDCAP
11.6.1.1 Functions of the Electrical Angle Timer and Waveform Arithmetic Circuit Registers
AMP
CALCBSY
EDCALEN
CALCEN
CALCST
RWREN
EDISEL
EDCNT
EDTEN
C2PEN
EDRV
EDCK
EDTH
EDT
Electrical angle
Set voltage amplitude
Capture electrical angle
Set sine wave data
Start calculation by software
Calculation flag
Enable/disable calculation
start synchronized with elec-
trical angle
Electrical angle interrupt
Electrical angle count up/
down
Select V-, W-phase
Select clock
Switch between 2-phase and
3-phase modulations
Auto transfer calculation
results to CPM registers
Enable/disable waveform cal-
culation function
Electrical angle timer
Correct electrical angle
period
Electrical angle period
Forcefully start calculation. When this bit is written while the waveform arithmetic circuit is
calculating, the calculation is terminated and then newly started.
By reading this bit, the operation status of the waveform arithmetic circuit can be
obtained.
Select whether to start calculation when the electrical angle timer finishes counting or
when a value is set in the electrical angle register. When disabled, calculation is only
started when CALCST is set to 1.
Set the electrical angle interrupt signal request timing to either when the electrical angle
timer finishes counting or upon end of calculation.
Set whether the electrical angle timer counts up or down.
Select phase direction of V-phase and W-phase in relation to U-phase.
Select the clock for the electrical angle timer. This setting can be altered even while the
electrical angle timer is operating.
Select the modulation method with which to perform waveform calculation.
Two-phase modulation
Note: The ± sign during 3-phase modulation changes depending on the electrical angle.
Enable/disable transfer of calculation results by the waveform arithmetic circuit. When the
waveform calculation function is enabled while at the same time transfer is enabled, cal-
culation results are set as U, V, and W-phase duty cycles of the PWM generation circuit
and are reflected in the ports.
Enable/disable the waveform calculation function. Calculations are performed by the
waveform arithmetic circuit by enabling the waveform calculation function. When the
waveform calculation function is enabled, the calculated results can be read from the U, V,
and W-phase compare registers (CMPU, V, W) of the PWM generation circuit.
Enable/disable the electrical angle timer. When enabled, the electrical angle timer starts
counting; when disabled, the electrical angle timer stops counting and is cleared to 0.
Correct the period by adding 1 to electrical angle counts 16 for “n” times. The timer counts
the electrical angle period set value “m”’for (16 − n) times and counts (m + 1) for “n” times
Set the electrical angle period.
Read the electrical angle. This register can also be set to initialize or correct the angle
while counting. Any value greater than 17FH cannot be set.
Set the voltage amplitude. The waveform arithmetic circuit multiplies the data set here by
the sine wave data read out from the sine wave RAM. The amplitude has its upper limit
determined by the set value of the MDPRD register when performing this multiplication.
Capture the value from the electrical angle timer when the position is detected.
To initialize the entire RAM data of the sine wave table, set the addresses at which to set,
sequentially from 000H to 17FH, in the ELDEG register, and write waveform data to the
WFMDR register each time. Make sure the waveform arithmetic circuit is disabled when
writing this data.
Three-phase modulation: DATA
Page 90
+ for electrical angles 0 to 179 degrees (191)
− for electrical angles 180 (192) to 360 (383) degrees
DATA = ramdata (ELDEG) × AMP
=
MOPRD
---------------------- -
2
±
ramdata ELDEG
-------------------------------------------------------------------- -
(
TMP88CH40IMG
2
)
×
AMP

Related parts for tmp88ch40img