tmp89fm82t TOSHIBA Semiconductor CORPORATION, tmp89fm82t Datasheet - Page 303

no-image

tmp89fm82t

Manufacturer Part Number
tmp89fm82t
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
PDCRC
PDCRB
PDCRA
SDREG
19.3.2
2 to 0
3 to 0
7 to 0
5, 4
7, 6
5, 4
3
7
6
5
4
3
2
1
0
Position Detection Circuit Register Functions
PDNUM
PDCMP
SWSTP
SWSTT
PDCEN
SDREG
PDTCT
SPLMD
SPTM3
SPLCK
STTM2
EMEM
SMON
RCEN
DTMD
・ A sampling delay is provided for use in modes where sampling is made while PWM is on or the lower
・ When detecting position while PWM is on or the lower phases turn on current, following 2 method can
phases turn on current. It helps to prevent erroneous detection due to noise that occurs immediately
after the transistor turns on, by starting sampling a set time after the PWM signal turned on.
be selected by .PDCRA<RCEN> i.e. whether to recount occurrences of matched position detection for
each PWM on(e.g., starting from 0 in each PWM cycle) or counting occurrences of matching contin-
uously (logical sum of several PWM cycle) .
Hold result of position detec-
tion at PWM edge
(Detect position detected po-
sition)
Monitor sampling status
Hold position signal input sta-
tus
Sampling period
Sampling mode
Sampling count
Stop sampling in software
Start sampling in software
Stop sampling using Timer 3
Start sampling using Timer 2
Number of position signal in-
put pins
Recount occurrences of
matching when PWM is on
Position detection mode
Position detection function
Sampling delay
These bits hold the comparison result of position detection at falling or rising edge of PWM
pulse. Bits 5 and 4 are set to 1 when position is detected at the falling and the rising edge,
respectively. They show whether position is detected in the current PWM pulse, during
PWM off, or in the immediately preceding PWM pulse.
When read, this bit shows the sampling status.
This bit holds the status of the position signal input at the time position detection started in
unmatch mode.
Select fcgck/2, fcgck/2
Select one of three modes: sampling only when PWM signal is active (when PWM is on),
sampling regularly, or sampling when the lower side (X, Y, Z) phases are conducting cur-
rent.
In ordinary mode, when the port status and the set expected value match and continuously
match as many times as the sampling counts set, a position detection signal is output and
an interrupt is generated. In unmatch detection mode, when the said status and value do
not match and continuously unmatch as many times as the sampling counts set, a position
detection signal is output and an interrupt is generated. Available number of settings are
1-15. When 0 is set, it is handled as 1.
Sampling can be stopped in software by setting this bit to "1" (e.g., by writing to this register).
Sampling is performed before stopping and when position detection results match, a po-
sition detection interrupt is generated, with sampling thereby stopped.
Sampling can be started by setting this bit to "1" (e.g., by writing to this register).
Sampling can be stopped by a trigger from Timer 3 by setting this bit to "1".
Sampling is performed before stopping and when position detection results match, a po-
sition detection interrupt is generated, with sampling thereby stopped.
Sampling can be started by a trigger from Timer 2 by setting this bit to "1".
Select whether to use three pins (PDU/PDV/PDW) or one pin (PDU only) for position signal
input. When one pin is selected, the expected values of PDV and PDW are ignored. When
performing position detection with two pins or a pin other than PDU, position signal input
can be masked as 0 by setting unused pin(s) for output.
By setting "1",the match count is Recounted for each PWM on. (when recounting occur-
rences of matching, the count is reset each time PWM turns off).
When this bit is set to "0", occurrences of matching are counted continuously when PWM
is on (counting is held when PWM is off.
Setting this bit to "0" selects ordinary mode where position is detected when the expected
value set in the register and the port input unmatch and then match.
Setting this bit to 1 selects unmatch detection mode where position is detected at the time
the port status changes to another one from the status in which it was when sampling
started.
The position detection function is activated by setting this bit to "1".
Set a time for which to stop sampling in order to prevent erroneous detection due to noise
that occurs immediately after PWM output turns on (immediately after the transistor turns
on). (Figure 19-5)
Page 287
2
, fcgck/2
3
, or fcgck/2
4
for the position detection sampling period.
TMP89FM82T

Related parts for tmp89fm82t