Power Application Controller
®
-75-
Copyright 2020 © Qorvo, Inc.
Rev 1.0
– Jan 17, 2020
9.18.2 AIO9 Digital I/O Mode
To configure AIO9 for digital I/O mode, set
SOC.CFGAIO9.MODE9
= 00b.
Set
SOC.CFGAIO9.OPT9
= 10b to use AIO9 as an open-drain output. Set
SOC.CFGAIO9.MUX9
= 000b
to mux the output state from
SOC.DOUTSIG1.DOUT9
. Use
SOC.CFGAIO9.MUX9
to mux the output
signal from the internal digital bus DBUS DB1 to DB7.
Set
SOC.CFGAIO9.OPT9
= 00b to use AIO9 as a digital input. The state can be read from
SOC.DINSIG1.DIN9
.
To configure the input or output polarity of AIO9, use
SOC.CFGAIO9.POL9
to set logic polarity of the
signal between AIO9 input/output and MUX9.
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.3 AIO9 Amplifier Mode
To configure AIO9 for amplifier mode set
SOC.CFGAIO9.MODE9
= 01b. In amplifier mode, the AIO9 gain
amplifier is enabled.
Use
SOC.CFGAIO9.GAIN9
to set the amplifier gain from 1x to 48x or to bypass mode. Use
SOC.CFGAIO9.MUX9
to switch the output of the amplifier to analog channel AB1 to AB7 on the analog
bus ABUS.
9.18.4 AIO9 Comparator Mode
Set
SOC.CFGAIO9.MODE9
= 10b to use AIO9 in comparator mode. In comparator mode, the AIO9
general-purpose comparator is enabled.
9.18.4.1 Comparator Reference
The comparator reference may be selected from AB<3:1> or from a programmable comparator threshold
voltage (VTHREF). Set
SOC.CFGAIO9.OPT9
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.4.2 Comparator Configuration
The AIO9 comparator has programmable blanking time and hysteresis modes.