tmp88ch41ug TOSHIBA Semiconductor CORPORATION, tmp88ch41ug Datasheet - Page 123

no-image

tmp88ch41ug

Manufacturer Part Number
tmp88ch41ug
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tmp88ch41ug-7B64(JOA)
Manufacturer:
TI
Quantity:
2 475
PDCRC
PDCRB
PDCRA
14.3.2 Position Detection Circuit Register Functions
2 to 0
3 to 0
5, 4
7, 6
5, 4
3
7
6
5
4
3
2
1
0
PDCMP
PDNUM
SPLMD
SWSTP
SWSTT
PDCEN
PDTCT
SPLCK
SPTM3
STTM2
EMEM
SMON
DTMD
RCEN
• 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 are conducting current, a method can be
phases are conducting current. It helps to prevent erroneous detection due to noise that occurs immedi-
ately after the transistor turns on, by starting sampling a set time after the PWM signal turned on.
selected whether to recount occurrences of matched position detection after being compared for each
PWM signal on (logical sum of three-phase PWM signals) (e.g., starting from 0 in each PWM cycle) or
counting occurrences of matching continuously ( PDCRB<SPLMD> is used to enable/disable recount-
ing occurrences of matching while PWM is on).
Hold result of position detec-
tion at PWM edge
(Detect position detected
position)
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
input pins
Recount occurrences of
matching when PWM is on
Position detection mode
Position detection function
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 or 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 fc/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 continu-
ously match as many times as the sampling counts set, a position detection signal is out-
put 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.
Sampling can be stopped in software by setting this bit to 1 (e.g., by writing to this regis-
ter).
Sampling is performed before stopping and when position detection results match, a posi-
tion 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 posi-
tion detection interrupt is generated, with sampling thereby stopped.
Sampling can be started by a trigger from Timer 3 by setting this bit to 1.
Select whether to use three pins (PDU/PDV/PDW) or one pin (PDU only) for position sig-
nal 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.
When performing sampling while PWM is on, occurrences of matching are recounted
each time PWM signal turns on by setting this bit to 1 (when recounting occurrences of
matching, the count is reset each time PWM turns off). When this bit is set to 0, occur-
rences of matching are counted continuously regardless PWM interval.
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.
Page 113
2
, fc/2
3
, fc/2
4
, or fc/2
5
for the position detection sampling period.
TMP88FH41UG

Related parts for tmp88ch41ug