tmp89fm82t TOSHIBA Semiconductor CORPORATION, tmp89fm82t Datasheet - Page 331

no-image

tmp89fm82t

Manufacturer Part Number
tmp89fm82t
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
19.6.1
SET<EDT>). The Electrical Angle Timer counts 360 degrees of electrical angle in the range of 0 to 383 (0x17F)
and is cleared to 0 upon reaching 383. In this way, it is possible to obtain the electrical angle of the frequency
proportional to the value set by the Period Set Register. The period with which to count up can be corrected by
using the Period Correction Register(EDSET<EDTH>), allowing for fine adjustment of the frequency. The elec-
trical angles counted by the Electrical Angle Timer are provided to the Waveform Arithmetic Circuit. An electrical
angle timer interrupt signal(INTEDT) is generated each time the Electrical Angle Timer finishes counting.
wave data addressed by the electrical angle data received from the Electrical Angle Timer, this sine wave data is
multiplied by the value of the Voltage Amplitude Register. The Waveform Arithmetic Circuit is also able to use
sine wave data in a Flash ROM, by writing to the 3 phase wave form data register (TRPWVDR) continuously.
circuit. For 3-phase modulation, waveform data is further calculated based on the multiplication data and the
electrical angle data and the value of the PWM Period Register.
the Electrical Angle Register (ELDEG) or 3 phase wave form data register (TRPWVDR) and the calculation
results consisting of the U phase, the V phase (+/− 120 degrees), and the W phase (+/− 240 degrees) are sequen-
tially provided to the PWM waveform output circuit. The sine wave data table is stored in the RAM and requires
initialization.
The Electrical Angle Timer finishes counting upon reaching the value set by the Period Set Register (ED-
The Waveform Arithmetic Circuit has a sine wave data table (384 byte RAM) in it. After extracting the sine
For 2-phase modulation, the product obtained by this multiplication is provided to the waveform synthesis
The calculation is performed each time the Electrical Angle Timer finishes counting or when a value is set in
Electrical Angle Timer and Waveform Arithmetic Circuit
・ To correct the period, set the number of times ‘n’ to be corrected in the Period Correction Register
・ Because the electrical angle counter (ELDEG) can be accessed even while the Electrical Angle Timer
・ In order to generate Trapezoidal wave form, i.e. to make 100% PWM duty wave form, the input value
・ The Electrical Angle Capture (EDCAP) captures the ectrical angle value from the Electrical Angle
・ When the waveform calculation function is enabled(EDCRA<CALCEN>="1"), the calculation exe-
・ The calculation execution time is 32 clock cycle for 2- phase, and 35 clock cycle for 3- phase , (1 clock
・ When transfer of calculation result to the CMP Registers is enabled (EDCRA<RWREN>="1"), the
・ The calculated results can be modified and the modified data can be set in the CMPU to W Registers
・ To initialize the entire RAM data of the sine wave data table, set the addresses at which to set, sequen-
(EDSET<EDTH>). The period is corrected by adding 1 to electrical angle counts 16 for ‘n’ times. For
example, when a value "3 "is set in the Period Correction Register, the period for 13 times out of
electrical angle counts 16 is the value “m” set in the Period Set Register, and that for 3 times is “m +
1”. (Correction is made almost at equal intervals.)
is operating, the electrical angles can be corrected during operation.
of Voltage amplitude register (AMP) is able to set more than that of PWM period register(MDPRD).
Counter at the position detect timming.
cution timing can be selected by the EDCRB<EVCALEN> from following three cases. each write
timing to the electrical angle counter (ELDEG) or 3 phase wave form data register (TRPWVDR), or
the Electrical Angle Timer finishes counting. In case of long electric angle period, more precise control
can be done by software calculation and AMP value setting.
= 125ns at fcgck =8MHz).
calculation results are transferred to the CMPU to W Registers. (This applies only when the waveform
calculation function is enabled with the EDCRA<CALCEN>.) The writing to CMPU to W Registers
are disabled while the transfer remains enabled. The calculation results can be read from the CMPU to
W Registers while the waveform calculation function remains enabled.
in software. This makes it possible to output any desired waveform other than sine waves. If a transfer
of the calculated results to the CMP register is disabled (EDCRA<RWREN>="0") , read-accessing the
CMPU to W registers can read the calculated results. (Before read-accessing these registers, make sure
that the calculation is completed.)
tially from 0x000 to 0x17F, in the (ELDEG) Register, and write waveform data to the (WVFMDR)
Register each time. Make sure the Waveform Arithmetic Circuit is disabled when writing this data.
Page 315
TMP89FM82T

Related parts for tmp89fm82t