Power Application Controller
®
-77-
Copyright 2020 © Qorvo, Inc.
Rev 1.0
– Jan 17, 2020
The blanking time for the comparator may be configured to use leading edge, trailing edge, leading/trailing
edge or no blanking by using
SOC.BLANKING.BLANKMODE
. If
SOC.BLANKING.BLANKMODE
is not
00b (disabled), then the blanking time may be configured to be between 100ns and 6000ns by setting the
value in
SOC.BLANKING.BLANKTIME
.
The comparator hysteresis may be configured independently for rising and falling input (asymmetric and
bi-directional). To set the comparator hysteresis scale for AIO9, set
SOC.SPECCFG0.HYSMODE
and to
set the hysteresis level set
SOC.SPECCFG1.AIO9HYS
.
The output polarity of the comparator may be selected by using
SOC.CFGAIO9.POL9
(0b: active-high; 1b:
active-low).
9.18.5.3 I/O and Interrupts
In this mode, the digital input state and input interrupts are also available. To enable interrupts for low to
high transitions on AIO9, set
SOC.SIGINTEN.AIO9REINTEN
to 1b. To enable interrupts for high to low
transitions on AIO9, set
SOC.SIGINTEN.AIO9FEINTEN
to 1b. When the edge is detected, an interrupt will
be asserted on IRQ2 to the MCU. The interrupt status can be monitored by reading
SOC.SIGINTF.AIO9INT
and cleared by writing
SOC.SIGINTF.AIO9INTF
to 1b.
9.18.5.4 Star-Point Connection
Set
SOC.CFGAIO9.MODE9[0]
to 1b in order to connect the motor phase voltages on AIO<9:7> to AB1
with a 100kΩ resistor to create a star-point referent to the comparator.
The AB1 reference may also be configured to come from AIO6 when in amplifier mode. When
SOC.CFGAIO9.MODE9[0]
= 0b, the AB1 reference can be configured to come from the output of the AIO6
amplifier when
SOC.CFGAIO6.MODE6
= 01b (amplifier mode) and
SOC.CFGAIO6.GAIN6
= 000b (direct
mode) and
SOC.CFGAIO6.MUX6
= 001b (output to AB1).
To MUX the AIO9 voltage on AB9 with 40% attenuation, set
SOC.CFGAIO9.MODE9[1]
=1b, so the ADC
can read out AIO9 voltage from the AFE MUX.
The BEMF position (POS) can be selected between AIO<9:7> through the MUX at the output of the
comparator polarity selector. To select the output of the AIO9 comparator for POS, set
SOC.CFGAIO9.OPT9
to 01b.
The selected POS output can also be connected to the digital MUX. To route the POS output to DB6 on
the digital bus, set
SOC.CFGAIO9.MUX9[0]
to 1b.
There is an optional sample and hold circuit available for the POS selected POS signal. To bypass the S/H
circuit, set
SOC.CFGAIO8.OPT8[1]
to 0b. To configure the CAFE to use the S/H circuit for the POS signal,
set
SOC.CFGAIO8.OPT8[1]
to 1b. In order to start and stop the S/H circuit, the ADC EMUX must be used
as described above in the EMUX section.
The IRQ2/POS signal to the MCU can be configured to be the POS signal above, or as the IRQ2 interrupt
signal. To configure IRQ2/POS to be the POS position as described above, set
SOC.CFGAIO8.OPT8[0]
to 0b. To configure IRQ/POS to be the IRQ2 signal, set
SOC.CFGAIO8.OPT8[0]
to be 1b.