Power Application Controller
®
-59-
Copyright 2020 © Qorvo, Inc.
Rev 1.2
– Jan 17, 2019
9.15.2 AIO6 Digital I/O Mode
In AIO6 digital I/O mode the push-button function must be disabled. To configure AIO6 for digital I/O mode,
set
SOC.MISC.PBEN
= 0b and
SOC.CFGAIO6.MODE6
= 00b.
Set
SOC.CFGAIO6.OPT6
= 10b to use AIO6 as an open-drain output. Set
SOC.CFGAIO6.MUX6
= 000b
to mux the output state from
SOC.DOUTSIG1.DOUT6
. Use
SOC.CFGAIO6.MUX6
to mux the output
signal from the internal digital bus DBUS DB1 to DB7.
Set
SOC.CFGAIO6.OPT6
= 00b to use AIO6 as a digital input. The state can be read from
SOC.DINSIG1.DIN6
.
To configure the input or output polarity of AIO6, use
SOC.CFGAIO6.POL6
to set logic polarity of the
signal between AIO6 input/output and MUX6.
To enable interrupts for low to high transitions on AIO6, set
SOC.SIGINTEN.AIO6REINTEN
to 1b. To
enable interrupts for high to low transitions on AIO6, set
SOC. SIGINTEN.AIO6FEINTEN
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.AIO6INT
and cleared by writing
SOC.SIGINTF.AIO6INTF
to 1b.
9.15.3 AIO6 Amplifier Mode
In AIO6 amplifier mode the push-button function must be disabled. To configure AIO6 for amplifier mode
set
SOC.MISC.PBEN
= 0b and
SOC.CFGAIO6.MODE6
= 01b.
Use
SOC.CFGAIO6.GAIN6
to set the amplifier gain from 1x to 48x or to bypass mode. Use
SOC.CFGAIO6.MUX6
to switch the output of the amplifier to analog channel AB1 to AB7 on the analog
bus ABUS.
9.15.4 AIO6 Comparator Mode
In AIO6 comparator mode the push-button function must be disabled. Set
SOC.MISC.PBEN
= 0b and
SOC.CFGAIO6.MODE6
= 10b to use AIO6 in comparator mode.
The comparator reference may be selected from AB<3:1> or from a programmable comparator threshold
voltage (VTHREF). Set
SOC.CFGAIO6.OPT6
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
The output polarity of the comparator may be selected by using
SOC.CFGAIO6.POL6
(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.DIN6
by using
SOC.CFGAIO6.MUX6
.