Power Application Controller
®
-70-
Copyright 2020 © Qorvo, Inc.
Rev 1.0
– Jan 17, 2020
9.17.2 AIO8 Digital I/O Mode
To configure AIO8 for digital I/O mode, set
SOC.CFGAIO8.MODE8
= 00b.
Set
SOC.CFGAIO8.OPT8
= 10b to use AIO8 as an open-drain output. Set
SOC.CFGAIO8.MUX8
= 000b
to mux the output state from
SOC.DOUTSIG1.DOUT8
. Use
SOC.CFGAIO8.MUX8
to mux the output
signal from the internal digital bus DBUS DB1 to DB7.
Set
SOC.CFGAIO8.OPT8
= 00b to use AIO8 as a digital input. The state can be read from
SOC.DINSIG1.DIN8
.
To configure the input or output polarity of AIO8, use
SOC.CFGAIO8.POL8
to set logic polarity of the
signal between AIO8 input/output and MUX8.
To enable interrupts for low to high transitions on AIO8, set
SOC.SIGINTEN.AIO8REINTEN
to 1b. To
enable interrupts for high to low transitions on AIO8, set
SOC. SIGINTEN.AIO8FEINTEN
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.AIO8INT
and cleared by writing
SOC.SIGINTF.AIO8INTF
to 1b.
9.17.3 AIO8 Amplifier Mode
To configure AIO8 for amplifier mode set
SOC.CFGAIO8.MODE8
= 01b. In amplifier mode, the AIO8 gain
amplifier is enabled.
Use
SOC.CFGAIO8.GAIN8
to set the amplifier gain from 1x to 48x or to bypass mode. Use
SOC.CFGAIO8.MUX8
to switch the output of the amplifier to analog channel AB1 to AB7 on the analog
bus ABUS.
9.17.4 AIO8 Comparator Mode
Set
SOC.CFGAIO8.MODE8
= 10b to use AIO8 in comparator mode. In comparator mode, the AIO8
general-purpose comparator is enabled.
9.17.4.1 Comparator Reference
The comparator reference may be selected from AB<3:1> or from a programmable comparator threshold
voltage (VTHREF). Set
SOC.CFGAIO8.OPT8
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.17.4.2 Comparator Configuration
The AIO8 comparator has programmable blanking time and hysteresis modes.