Skip to content

dsPIC Pinout

mjc401 edited this page Mar 16, 2015 · 6 revisions

dsPIC Pinout

Pinouts are for V8 boards. Not all pins will be used for others.

Primary Board

Pin Number Function Description
1 PWM3H PWM3H for motor commutation
3 SS2 Slave synchronization 2 for SPI2 (Battery Manger)
4 SCK2 Serial clock input/output for SPI2
5 SDI2 SPI2 data in
6 SDO2 SPI2 data out
7 MCLR Master clear (reset)
13 Magnet Engagement ADC input to verify magnet engagement has occurred
16 FAULT Current sensor overcurrent fault pin
18 I_SENSE Current sensor analog input
27 LED2 LED2 control
28 LED1 LED1 control
29 TOPMAGCON Top magnet control
31 TX2 UART2 transmit (to secondary board)
32 RX2 UART2 receive
33 TOPMAGA Magnet encoder channel A
34 TOPMAGB Magnet encoder channel B
35 IMU_INT1 IMU interrupt
36 SDA1 I2C1 serial data input/output (to IMU)
37 SCL1 I2C1 serial clock
40 TEST Test point
44 USER User button input
45 LED3 LED3 control
46 LED4 LED4 control
47 PGED2 Data I/O pin for programming (channel 2)
48 PGEC2 Clock input for programming (channel 2)
49 TX1 UART1 transmit (to XBee)
50 RX1 UART1 receive
51 HALL3 Hall effect sensor (motor) channel 3
52 HALL2 Hall effect sensor channel 2
53 HALL1 Hall effect sensor channel 1
54 CTS UART1 clear-to-send
55 RTS UART1 ready-to-send
60 PWM1L PWM1L for motor commutation
61 PWM1H PWM1H for motor commutation
62 PWM2L PWM2L for motor commutation
63 PWM2H PWM2H for motor commutation
64 PWM3L PWM3L for motor commutation

Secondary Board

Pin Number Function Description
3 SS2 Slave synchronization 2 for SPI2 (Battery Manger)
4 SCK2 Serial clock input/output for SPI2
5 SDI2 SPI2 data in
6 SDO2 SPI2 data out
7 MCLR Master clear (reset)
17 PGEC1_2 Clock input for programming (channel 1)
18 PGED1_2 Data I/O pin for programming (channel 1)
22 LOW_MAGB Magnet encoder channel B
23 LOW_MAGA Magnet encoder channel A
30 LOW_MAG Lower magnet control
31 RX1 UART1 receive (to XBee)
32 TX1 UART1 transmit
33 MOTB Motor encoder channel B
34 MOTA Motor encoder channel A
35 IMU_INT2 IMU interrupt
36 SDA1 I2C1 serial data input/output (to IMU)
37 SCL1 I2C1 serial clock
42 USER User button input
43 LED1 LED1 control
44 LED2 LED2 control
45 LED3 LED3 control
46 LED4 LED4 control
49 TX2 UART2 transmit (to primary board)
50 RX2 UART2 receive
54 RTS UART1 ready-to-send
55 CTS UART1 clear-to-send
62 Magnet Engagement ADC input to verify magnet engagement has occurred