Power Application Controller
®
-63-
Copyright 2020 © Qorvo, Inc.
Rev 1.2
– Jan 17, 2019
9.16.2 AIO7 Digital I/O Mode
To configure AIO7 for digital I/O mode, set
SOC.CFGAIO7.MODE7
= 00b.
Set
SOC.CFGAIO7.OPT7
= 10b to use AIO7 as an open-drain output. Set
SOC.CFGAIO7.MUX7
= 000b
to mux the output state from
SOC.DOUTSIG1.DOUT7
. Use
SOC.CFGAIO7.MUX7
to mux the output
signal from the internal digital bus DBUS DB1 to DB7.
Set
SOC.CFGAIO7.OPT7
= 00b to use AIO7 as a digital input. The state can be read from
SOC.DINSIG1.DIN7
.
To configure the input or output polarity of AIO7, use
SOC.CFGAIO7.POL7
to set logic polarity of the
signal between AIO7 input/output and MUX7.
To enable interrupts for low to high transitions on AIO7, set
SOC.SIGINTEN.AIO7REINTEN
to 1b. To
enable interrupts for high to low transitions on AIO7, set
SOC. SIGINTEN.AIO7FEINTEN
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.AIO7INT
and cleared by writing
SOC.SIGINTF.AIO7INTF
to 1b.
9.16.3 AIO7 Amplifier Mode
To configure AIO7 for amplifier mode set
SOC.CFGAIO7.MODE7
= 01b. In amplifier mode, the AIO7 gain
amplifier is enabled.
Use
SOC.CFGAIO7.GAIN7
to set the amplifier gain from 1x to 48x or to bypass mode. Use
SOC.CFGAIO7.MUX7
to switch the output of the amplifier to analog channel AB1 to AB7 on the analog
bus ABUS.
9.16.4 AIO7 Comparator Mode
Set
SOC.CFGAIO7.MODE7
= 10b to use AIO7 in comparator mode. In comparator mode, the AIO7
general-purpose comparator is enabled.
9.16.4.1 Comparator Reference
The comparator reference may be selected from AB<3:1> or from a programmable comparator threshold
voltage (VTHREF). Set
SOC.CFGAIO7.OPT7
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.16.4.2 Comparator Configuration
The AIO7 comparator has programmable blanking time and hysteresis modes.