Datasheet
L6460 GPIO pins
Doc ID 17713 Rev 1 125/139
22.14 GPIO[13]
The GPIO[13] truth table is (for the abbreviation list please refer to Ta ble 4 0).
Table 54. GPIO[13] truth table
Op2En
mimusPin
(1)
1. The Op2EnMinusPin bit in the OpAmp2Ctrl register enables the connection of the positive input of Op1 to
GPIO[13] pin.
GPIO[13] SPI BITS
Function Note
GpioOut
enable[13]
Mode[2] Mode[1] Mode[0]
1XXXXOpAmp2 in-
(2)
2. When Op2EnMinusPin = ‘1’ the GpioOutEnable[13] bit is forced to 0.
0 0 X X X HiZ (SPI_IN)
0 1 000 SPI OUT
(3)
3. In all configurations in which GPIO[9] is enabled as output:
a) the GPIO[13] 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[13] 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[13] pin is a rail to rail output supplied by V
GPIO_SPI.
0 1 001 AuxPwm1
(3)
0 1 0 1 0 Reg Loop 3
(3)
0 1 011 AuxPwm3
(3)
0 1 1 0 0 AuxPwm1 inverted
(3)
0 1 1 0 1 Reg Loop 3 inverted
(3)
0 1 1 1 1 AuxPwm3 inverted
(3)