STMicroelectronics FlexSPIN: SPI configurable stepper and DC multi motor driver evaluation board EVAL6460 EVAL6460 Fiche De Données

Codes de produits
EVAL6460
Page de 139
L6460 
GPIO pins
Doc ID 17713 Rev 1
123/139
   
   
   
22.13 GPIO[12]
The GPIO[12] truth table is (for the abbreviation list please refer to 
         
Table 53.
GPIO[12] truth table
AUX2enable
or
AUX2syste
(1)
1.
AUX2Enable or AUX2System bit =1 represent the case in which AUX2 is used as a regulator (system or 
not system).
Op2En
PlusPin
GPIO[12] SPI bits
Function
Note
GpioOut 
enable[12]
Mode[2]
Mode[1]
Mode[0]
1
X
X
X
X
X
RegLoop2
0
1
X
X
X
X
OpAmp2  in+
(2)
2.
When Op2EnPlusPin = ‘1’ the GpioOutEnable[11] bit is forced to 0.
0
0
0
X
X
X
HiZ (SPI_IN)
0
0
1
0
0
0
SPI OUT
(3)
3.
In all configurations in which GPIO[12] is enabled as output:
a) the GPIO[12] 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[12] pin can be always used as a digital input so its value can be always read through SPI 
interface (SPI_IN function);
c)
please note that GPIO[12] output is directly connected to StepCmd input for stepper driver and 
therefore particular care must be taken in order to avoid wrong PWM signals when StepCmd is 
selected for stepper driver (STEP_REQUEST function)
d) the GPIO[12] pin is a rail to rail, back to back output supplied by V
GPIO_SPI.
0
0
1
0
0
1
Interrupt Ctrl
0
0
1
0
1
0
Comp2OUT
0
0
1
0
1
1
RegLoop2
0
0
1
1
0
0
Interrupt Ctrl inverted
0
0
1
1
0
1
Comp2OUT inverted
0
0
1
1
1
1
RegLoop2 inverted