User manual
Basys MX3™ Board Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 34 of 56
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
Table 14.2. Motor connectivity.
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:
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
A1
AOUT1
IN/IN mode: Signal 1 of the stepper motor
PH/EN mode: Signal 1 of the DC motor A
A2
AOUT2
IN/IN mode: Signal 2 of the stepper motor
PH/EN mode: Signal 2 of the DC motor A
B1
BOUT1
IN/IN mode: Signal 3 of the stepper motor
PH/EN mode: Signal 1 of the DC motor B
B2
AOUT2
IN/IN mode: Signal 4 of the stepper motor
PH/EN mode: Signal 2 of the DC motor B
Table 14.3. Motor connector pinout.