Datasheet
L6460 GPIO pins
Doc ID 17713 Rev 1 111/139
22.7 GPIO[6]
The GPIO[6] truth table is (for the abbreviation list please refer to Tabl e 4 0):
Table 47. GPIO[6] truth table
StdByMode
AEnLow
VSw[1]
GPIO[6] SPI BITS
Function Note
GpioOut
enable[6]
Mode[2] Mode[1] Mode[0]
1 X X X X X Low Volt. Pow. Sw. 1
0 1 X X X X Low Volt. Pow. Sw. 1
(1)
1. When EnLowVSw[1]= ‘1’ the GpioOutEnable[6] bit is forced to 0.
0 0 0 X X X HiZ (SPI_IN)
0 0 1 0 0 0 SPI OUT
(2)
2. In all configurations in which GPIO[6] is enabled as output:
a) the GPIO[6] pin can be always used as an analog input to the ADC system (ADC function) by writing its
address in the A2DChannelX[4:0] in the A2DConfigX register and starting a conversion;
b) the GPIO[6] pin can be always used as a digital input so its value can be always read through SPI
interface (SPI_IN function);
c) the GPIO[6] pin is a rail to rail output supplied by V
GPIO_SPI.
001001 A2DGpo
(2)
0 0 1 0 1 0 AuxPwm2
(2)
001011Comp2OUT
(2)
0 0 1 1 0 0 A2DGpo inverted
(2)
0 0 1 1 0 1 AuxGpPwm2 inverted
(2)
0 0 1 1 1 1 Comp2OUT inverted
(2)