tmp89fm82t TOSHIBA Semiconductor CORPORATION, tmp89fm82t Datasheet - Page 321

no-image

tmp89fm82t

Manufacturer Part Number
tmp89fm82t
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
MDCRA
DTR
MDOUT
14,13,12
3, 2
7, 6
5, 4
3, 2
1, 0
15
11
10
7
6
5
4
1
0
9
8
SPWMW
SPWMU
MDPRD
SPWMV
MDCNT
CMPW
CMPU
CMPV
DTR
PWMMD
PWMEN
UPDWN
HLFINT
DTYMD
PDEXP
PSYNC
WPWM
SYNCS
UPWM
VPWM
POLH
POLL
WOC
PINT
VOC
UOC
Dead time
PWM counter
Set PWM period
Set PWM pulse width
Set single phase PWM generation
Select half-period interrupt
DUTY mode
Upper-phase port polarity
Lower-phase port polarity
PWM interrupt frequency
PWM mode
Enable/Disable waveform
generation circuit
PWM counter flag
Mode compare register
Select PWM synchronization
Control UVW-phase PWM
outputs
Select port output sync signal
Control UVW-phase outputs
When this bit is set to 1, INTPWM is generated every half period (at triangular wave peak
and valley) in the case of center PWM output and PINT = 00. In other cases, this setting
has no meaning.
Select whether to set the duty cycle independently for three phases using the CMPU to W
Registers or in common for all three phases by setting the CMPU Register only.
Select the upper-phase output port polarity. Make sure the waveform synthesis function
(MDCRA<PWMEN>) is "0" before selecting this port polarity.
Select the lower-phase output port polarity. Make sure the waveform synthesis function
(MDCRA <PWMEN>) is"0" before selecting this port polarity.
Select the frequency at which to generate a PWM interrupt from four choices available:
every PWM period or once every 2, 4, or 8 PWM periods. When setting of this bit is altered
while operating, an interrupt may be generated at the time the bit is altered.
Select PWM mode. PWM mode 0 is an edge PWM (sawtooth wave), and PWM mode 1 is
a center PWM (triangular wave).
When enabling this bit (for waveform output), be sure to set the output port polarity and
other bits of this register (other than MDCRA<PWMEN>) beforehand.
Set the dead time between the upper-phase and lower-phase outputs.
This bit indicates whether the PWM counter is counting up or down. When edge PWM
(sawtooth wave) is selected, it is always set to 0.
Set the data to be compared with the position detection input port. The comparison data is
adopted as the expected value simultaneously when port output sync settings made with
MDOUT<PSYNC> are reflected in the ports.
(This is the expected position detect input value for the next MDOUT output value.)
Select whether or not to synchronize port output to PWM period after being synchronized
to the synchronizing signal selected with <SYNCS>. If selected to be synchronized to PWM,
output is kept waiting for the next PWM after being synchronized with <SYNCS>. Waveform
settings are overwritten if new settings are written to the register during this time, and output
is generated with those settings.
Set U, V, and W-phase port outputs. (See the Table 19-4)
Select the synchronizing signal with which to output UVW-phase settings to ports. The
synchronizing signal can be selected from Timers 1 or 2, position detection, or asynchro-
nous. Select asynchronous when the initial setting, otherwise the above setting isn’t
reflected immediately.
Set U, V, and W-phase port outputs. (See the Table 19-4)
This is a 12-bit read-only register used to count PWM periods.
This register determines PWM period, and is dual-buffered, allowing PWM period to be
altered even while the PWM counter is operating. The buffers are loaded every PWM pe-
riod. When 41.6 ns is selected for the PWM counter clock, make sure the least significant
bit is set to 0.
This comparison register determines the pulse widths output in the respective UVW pha-
ses. This register is dual-buffered, and the pulse widths are determined by comparing the
buffer and PWM counter.
In case of MDCRB<SPWMEN>="1", output single phase PWM. In this case, compare value
more than or equal to 0x100 means "High side :PWM, Low side : L fix", less than 0x100
means "High side: L fix, Low side:PWM ".
Page 305
TMP89FM82T

Related parts for tmp89fm82t