Power Application Controller
®
-75-
Copyright 2020 © Qorvo, Inc.
Rev 1.2
– Jan 17, 2019
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).
The output of the comparator may be sent to the digital bus DB1 to DB7 or to
SOC.DINSIG1.DIN9
by using
SOC.CFGAIO9.MUX9
.
9.18.4.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 AIO9 Special Mode
AIO9 Special Mode is typically used for BEMF applications that need to measure the zero-cross
threshold of the phase voltage for motor commutation. In special mode, the CAFE can be
configured to internally generate a virtual center-tap voltage as a comparator reference for the
phase voltages.
Set
SOC.CFGAIO7.MODE7
= 11b to use AIO<9:7> in special mode. In special mode the AIO9 special
mode comparator is enabled.
9.18.5.1 Comparator Reference
In special mode, the comparator reference may be selected from AB<3:1>, AIO8, AIO9 or from a
programmable comparator threshold voltage (VTHREF). AB1 is used as the virtual center-tap for BEMF
zero-cross applications.
Set
SOC.SPECCFG3.SMUXAIO9
to select the comparator reference. To select the VTHREF comparator
threshold use
SOC.DOUTSIG0.VTHREF
to select a value from the following:
•
00b: 0.1V
•
01b: 0.2V
•
10b: 0.5V
•
11b: 1.25V
9.18.5.2 Comparator Configuration
The AIO9 comparator has programmable blanking time and hysteresis modes.