7/30/2019
Basys MX3 Reference Manual [Reference.Digilentinc]
https://reference.digilentinc.com/reference/microprocessor/basys-mx3/reference-manual?_ga=2.68739409.1349070004.1564406803-1961480359.…
32/52
Jumper
Position
Description
VEXT
The power VEXT provided from an external supply (using the VEXT pin of the MOTOR OUT connector block) is
used for motors.
Please read the Texas Instruments DRV8835 datasheet for more details about the motor controller.
Table 14.2 shows the signals connecting the Motor Driver to the PIC32.
Table 14.2. Motor connectivity.
Name
PIC32 Pin
Motor Driver Pin
Description
MODE
RPF1/PMD10/RF1
MODE
logic low selects IN/IN mode
logic high selects PH/EN mode
AIN1
PGED3/AN3/C2INA/RPB3/RB3
AIN1/APHASE
IN/IN mode: Logic high sets AOUT1 high
PH/EN mode: Sets direction of H-bridge A
AIN2
RPE8/RE8
AIN2/AENBL
IN/IN mode: Logic high sets AOUT2 high
PH/EN mode: Logic high enables H-bridge A
BIN1
RPE9/RE9
BIN1/BPHASE
IN/IN mode: Logic high sets BOUT1 high
PH/EN mode: Sets direction of H-bridge B
BIN2
AN5/C1INA/RPB5/RB5
BIN2/BENBL
IN/IN mode: Logic high sets BOUT2 high
PH/EN mode: Logic high enables H-bridge B
The command pins (MODE, AIN1, AIN2, BIN1, BIN2) must be defined as digital output and the analog functionality for AIN1 and BIN2
disabled:
TRISFbits.TRISF1 = 0; //set RF1 (MODE) to be an output
TRISBbits.TRISB3 = 0; //set RB3 (AIN1) to be an output
ANSELBbits.ANSB3 = 0; //disable analog functionality for RB3 (AIN1)
TRISEbits.TRISE8 = 0; //set RE8 (AIN2) to be an output
TRISEbits.TRISE9 = 0; //set RE9 (BIN1) to be an output
TRISBbits.TRISB5 = 0; //set RB5 (BIN2) to be an output
ANSELBbits.ANSB5 = 0; //disable analog functionality for RB5 (BIN2)
The following signals are routed to the MOTOR_OUT board to wire connector:
Table 14.3. Motor connector pinout.
Connector
Label
Motor Driver
pin
Description
VEXT
-
The external power that can be applied to the motors, selected using MOTOR PWR jumper block
(0 to 11 Volts)
GND ()
-
The GND () for the external power applied on VEXT
14.1. Connectivity