1 Pin Mapping

Table 1-1 provides pin mapping from the 64-pin dsPIC33AK256MPS306 device to the DIM interface connector.

Table 1-1. Pin Mapping—dsPIC33AK256MPS306 to DIM Interface Connector (Sorted By Device Pin Number)
Device Pin No.dsPIC33AK256MPS306 Pin FunctionDIM Pin No.Remarks
1PGD2/AD1ANN1/AD1AN4/CVDAN0/RP1/SCL2/IOMAF2/RA0DIM:028Direct connection
2AD3AN1/CVDAN7/RP8/SDA2/IOMAF1/RA7DIM:084Connected via 0R (R4) resistor
DIM:024Can be connected via 0R (R8) resistor
3PGC2/DACOUT1/AD3ANN1/AD3AN0/CVDAN1/CMP4D/RP2/RA1DIM:082Connected via 0R (R6) resistor
DIM:026Can be connected via 0R (R10) resistor
DIM:020Can be connected via 0R (R15) resistor
4VSSDIM:061 to DIM:064,

DIM:117 to DIM:120

Digital ground (VSS)
5VDDDIM:057 to DIM:060,

DIM:113 to DIM:116

Digital power (VCC)
6CVDAN11/CMPFN/RP12/RA11DIM:041Connected via 0R (R13) resistor
DIM:043Can be connected via 0R (R18) resistor
7AD3AN3/CVDAN8/CMP5A/IBIAS3/ISRC3/RP9/RA8DIM:011Connected via 0R (R21) resistor
DIM:024Can be connected via 0R (R24) resistor
8AD1AN3/CVDAN9/CMP5B/IBIAS2/ISRC2/RP10/RA9DIM:035Direct connection
9CVDAN10/CMPEN/CMP5C/RP11/RA10Connected via RC (R1, C1) filter
10AVSSDIM:061 to DIM:064,

DIM:117 to DIM:120

Digital ground (VSS)
11AVDDDIM:057 to DIM:060,

DIM:113 to DIM:116

Digital power (VCC)
12OA1OUT/AD1AN0/CVDAN2/CMP1A/RP3/RA2DIM:020Connected via 0R (R5) resistor
DIM:022Can be connected via 0R (R9) resistor
13OA1IN-/AD1ANN2/AD1AN2/CVDAN3/CMPCN/CMP1C/RP4/RA3DIM:039Direct connection
14UREF/OA1IN+/AD1AN1/AD2AN5/AD3AN4/CVDAN4/CMP1B/RP5/RA4DIM:017Connected to output of Op Amp3 (OA3) via 0R (R36) resistor. Ensure resistor R41 is removed.
DIM:019Can be connected via 0R (R41) resistor. When connecting the signal:
  • Disable amplifier Op Amp3 (OA3).
  • Remove resistor R29 and R36.
15OA3OUT/CVDAN5/CMP3A/RP6/INT0/RA5DIM:017The output of Op Amp3 (OA3) when configured and enabled.
16OA3IN-/CVDAN6/CMPDN/CMP3C/RP7/RA6DIM:015Op Amp3 negative input-connected via amplifier input resistors
17OA3IN+/CVDAN21/CVDTX5/CMP3B/RP22/RB5DIM:013Op Amp3 positive input-connected via amplifier input resistors
18VSSDIM:061 to DIM:064, DIM:117 to DIM:120Digital ground (VSS)
19VDDDIM:057 to DIM:060,

DIM:113 to DIM:116

Digital power (VCC)
20OA2OUT/AD2AN0/CVDAN16/CVDTX0/CMP2A/RP17/RB0DIM:025The output of Op Amp2 (OA2) when configured and enabled. Ensure resistor R39 is removed.
DIM:027Can be connected via 0R (R39) resistor. When connecting the signal:
  • Disable amplifier Op Amp2 (OA2).
  • Remove resistor R27.
21TMS/OA2IN-/AD2ANN2/AD2AN2/CVDAN17/CVDTX1/CMP2C/RP18/RB1DIM:023Op Amp2 negative input-connected via amplifier input resistors
22OA2IN+/AD2AN1/CVDAN18/CVDTX2/CMP2B/RP19/RB2DIM:021Op Amp2 positive input-connected via amplifier input resistors
23CVDAN24/CVDTX8/CMP2D/RP25/RB8DIM:092Direct connection
24CVDAN25/CVDTX9/RP26/RB9DIM:090Direct connection
25RP29/RB12DIM:008Direct connection
26RP30/RB13DIM:006Direct connection
27PGD1/AD2ANN1/AD2AN3/CVDAN19/CVDTX3/CMP4A/RP20/SDA1/RB3DIM:012Direct connection
28PGC1/AD2AN4/CVDAN20/CVDTX4/CMP4B/RP21/SCL1/RB4DIM:010Direct connection
29AD3ANN2/AD3AN2/CVDAN22/CVDTX6/ALLCMP/IBIAS0/ISRC0/RP23/I3CASCL1/RB6DIM:009Connected via 0R (R14) resistor
29AD3ANN2/AD3AN2/CVDAN22/CVDTX6/ALLCMP/IBIAS0/ISRC0/RP23/I3CASCL1/RB6DIM:104Can be connected via 0R (R19) resistor
30CVDAN23/CVDTX7/CMP4C/IBIAS1/ISRC1/RP24/I3CASDA1/IOMAF0/RB7DIM:102Direct connection
31CVDAN26/CVDTX10/RP27/SCK2/RB10DIM:104Connected via 0R (R45) resistor
32CVDAN27/CVDTX11/RP28/SDI2/RB11DIM:040Direct connection
33RP41/RC8DIM:036Direct connection
34RP42/SDO2/RC9DIM:034Direct connection
35RP39/ASCL1/RC6DIM:100Direct connection
36RP40/ASDA1/IOMAF7/RC7DIM:098Direct connection
37VSSDIM:061 to DIM:064, DIM:117 to DIM:120Digital ground (VSS)
38VDDDIM:057 to DIM:060, DIM:113 to DIM:116Digital power (VCC)
39OSCO/CLKO/RP33/IOMAF5/RC0Connected to a general purpose LED (LD2—Yellow) on the DIM via 0R (R22) resistor
DIM:056Can be connected via 0R (R25) resistor
40OSCI/RP34/IOMAF6/RC1CLKI—clock output of MEMS Oscillator (Y1) is connected as an input clock of dsPIC DSC (U1)
41PGC3/RP35/PWM4H/IOMAD7/SS2/FSYNC2/RC2DIM:051 (PGC)Direct connection; also directly connected to Pin 5 of Header J2
42PGD3/RP38/I3CSCL1/PWM4L/IOMAD6/RC5DIM:049 (PGD)Direct connection; also directly connected to Pin 4 of Header J2
43RP36/PWM3H/IOMAD5/RC3DIM:002Direct connection
44RP37/I3CSDA1/PWM3L/IOMAD4/RC4DIM:004Direct connection
45RP43/RC10DIM:030Direct connection
46RP44/RC11DIM:032Direct connection
47VSSDIM:061 to DIM:064,

DIM:117 to DIM:120

Digital ground (VSS)
48VDDDIM:057 to DIM:060,

DIM:113 to DIM:116

Digital power (VCC)
49RP49/PWM2H/IOMAD3/RD0DIM:005Direct connection
50TCK/RP50/PWM2L/IOMAD2/RD1DIM:007Direct connection
51TDO/RP51/PWM1H/IOMAD1/RD2DIM:001Direct connection
52TDI/RP52/PWM1L/IOMAD0/RD3DIM:003Direct connection
53SWVDDConnected to Digital power (VCC)
54LxConnected to Inductor L1
55SWVSSConnected to Digital ground (VSS)
56VDDCOREConnected to Inductor L1, Capacitors C2 and C3
57VSSDIM:061 to DIM:064,

DIM:117 to DIM:120

Digital ground (VSS)
58VDDDIM:057 to DIM:060,

DIM:113 to DIM:116

Digital power (VCC)
59RP54/RD5DIM:044Connected via 0R (R3) resistor
DIM:068Can be connected via 0R (R7) resistor
60RP55/RD6DIM:046Connected via 0R (R12) resistor
DIM:066Can be connected via 0R (R17) resistor
61CVDTX16/RP53/RD4DIM:042Connected via 0R (R20) resistor
DIM:070Can be connected via 0R (R23) resistor
62CVDTX17/RP56/ASCL2/IOMAF4/RD7DIM:054Direct connection; can be connected to Pin 8 of Header J2 via 0R (R16) resistor
63CVDTX18/RP57/ASDA2/IOMAF3/RD8DIM:052Direct connection; can be connected to Pin 7 of Header J2 via 0R (R11) resistor
64MCLRDIM:047 (MCLR)Direct connection; also directly connected to Pin 1 of Header J2
Table 1-2 provides pin mapping from the DIM interface connector to the 64-pin dsPIC33AK256MPS306 device.
Table 1-2. Pin Mapping—DIM Interface Connector to dsPIC33AK256MPS306 (Sorted by DIM Pin Number)
DIM Pin No.Device Pin No.dsPIC33AK256MPS306 Pin FunctionRemarks
DIM:00151TDO/RP51/PWM1H/IOMAD1/RD2Direct connection
DIM:00243RP36/PWM3H/IOMAD5/RC3Direct connection
DIM:00352TDI/RP52/PWM1L/IOMAD0/RD3Direct connection
DIM:00444RP37/I3CSDA1/PWM3L/IOMAD4/RC4Direct connection
DIM:00549RP49/PWM2H/IOMAD3/RD0Direct connection
DIM:00626RP30/RB13Direct connection
DIM:00750TCK/RP50/PWM2L/IOMAD2/RD1Direct connection
DIM:00825RP29/RB12Direct connection
DIM:00929AD3ANN2/AD3AN2/CVDAN22/CVDTX6/ALLCMP/IBIAS0/ISRC0/RP23/I3CASCL1/RB6Connected via 0R (R14) resistor
DIM:01028PGC1/AD2AN4/CVDAN20/CVDTX4/CMP4B/RP21/SCL1/RB4Direct connection
DIM:0117AD3AN3/CVDAN8/CMP5A/IBIAS3/ISRC3/RP9/RA8Connected via 0R (R21) resistor
DIM:01227PGD1/AD2ANN1/AD2AN3/CVDAN19/CVDTX3/CMP4A/RP20/SDA1/RB3Direct connection
DIM:01317OA3IN+/CVDAN21/CVDTX5/CMP3B/RP22/RB5Op Amp3 positive input-connected via amplifier input resistors
DIM:014No connection
DIM:01516OA3IN-/CVDAN6/CMPDN/CMP3C/RP7/RA6Op Amp3 negative input-connected via amplifier input resistors
DIM:016No connection
DIM:01714UREF/OA1IN+/AD1AN1/AD2AN5/AD3AN4/CVDAN4/CMP1B/RP5/RA4Connected via 0R (R36) resistor.

Ensure that the resistor R41 is removed.

15OA3OUT/CVDAN5/CMP3A/RP6/INT0/RA5Connected to output of Op Amp3 (OA3)
DIM:018No connection
DIM:01914UREF/OA1IN+/AD1AN1/AD2AN5/AD3AN4/CVDAN4/CMP1B/RP5/RA4Can be connected via 0R (R41) resistor. When connecting the signal:
  • Disable amplifier Op Amp3 (OA3).
  • Remove resistor R29 and R36.
DIM:02012OA1OUT/AD1AN0/CVDAN2/CMP1A/RP3/RA2Connected via 0R (R5) resistor
3PGC2/DACOUT1/AD3ANN1/AD3AN0/CVDAN1/CMP4D/RP2/RA1Can be connected via 0R (R15) resistor
DIM:02122OA2IN+/AD2AN1/CVDAN18/CVDTX2/CMP2B/RP19/RB2Op Amp2 positive input-connected via amplifier input resistors
DIM:02212OA1OUT/AD1AN0/CVDAN2/CMP1A/RP3/RA2Can be connected via 0R (R9) resistor
DIM:02321TMS/OA2IN-/AD2ANN2/AD2AN2/CVDAN17/CVDTX1/CMP2C/RP18/RB1Op Amp2 negative input-connected via amplifier input resistors
DIM:0242AD3AN1/CVDAN7/RP8/SDA2/IOMAF1/RA7Can be connected via 0R (R8) resistor
7AD3AN3/CVDAN8/CMP5A/IBIAS3/ISRC3/RP9/RA8Can be connected via 0R (R24) resistor
DIM:02520OA2OUT/AD2AN0/CVDAN16/CVDTX0/CMP2A/RP17/RB0The output of Op Amp2 (OA2) when configured and enabled. Ensure resistor R39 is removed.
DIM:0263PGC2/DACOUT1/AD3ANN1/AD3AN0/CVDAN1/CMP4D/RP2/RA1Can be connected via 0R (R10) resistor
DIM:02720OA2OUT/AD2AN0/CVDAN16/CVDTX0/CMP2A/RP17/RB0Can be connected via 0R (R39) resistor. When connecting the signal:
  • Disable amplifier Op Amp2 (OA2).
  • Remove resistor R27.
DIM:0281PGD2/AD1ANN1/AD1AN4/CVDAN0/RP1/SCL2/IOMAF2/RA0Direct connection
DIM:029No connection
DIM:03045RP43/RC10Direct connection
DIM:031No connection
DIM:03246RP44/RC11Direct connection
DIM:033No connection
DIM:03434RP42/SDO2/RC9Direct connection
DIM:0358AD1AN3/CVDAN9/CMP5B/IBIAS2/ISRC2/RP10/RA9Direct connection
9CVDAN10/CMPEN/CMP5C/RP11/RA10Connected via RC (R1, C1) filter
DIM:03633RP41/RC8Direct connection
DIM:037 (VREF)17, 22Connected to positive input of amplifiers OA2 and OA3 through gain resistorsVREF (+1.65V) input from the motor control development board
DIM:038No connection
DIM:03913OA1IN-/AD1ANN2/AD1AN2/CVDAN3/CMPCN/CMP1C/RP4/RA3Direct connection
DIM:04032CVDAN27/CVDTX11/RP28/SDI2/RB11Direct connection
DIM:0416CVDAN11/CMPFN/RP12/RA11Connected via 0R (R13) resistor
DIM:04261CVDTX16/RP53/RD4Connected via 0R (R20) resistor
DIM:0436CVDAN11/CMPFN/RP12/RA11Can be connected via 0R (R18) resistor
DIM:04459RP54/RD5Connected via 0R (R3) resistor
DIM:045No connection
DIM:04660RP55/RD6Connected via 0R (R12) resistor
DIM:047 (MCLR)64MCLRDirect connection; also directly connected to Pin 1 of Header J2
DIM:048No connection
DIM:049 (PGD)42PGD3/RP38/I3CSCL1/PWM4L/IOMAD6/RC5Direct connection; also directly connected to Pin 4 of Header J2
DIM:050No connection
DIM:051 (PGC)41PGC3/RP35/PWM4H/IOMAD7/SS2/FSYNC2/RC2Direct connection; also directly connected to Pin 5 of Header J2
DIM:05263CVDTX18/RP57/ASDA2/IOMAF3/RD8Direct connection; can be connected to Pin 7 of Header J2 via 0R (R11) resistor
DIM:053No connection
DIM:05462CVDTX17/RP56/ASCL2/IOMAF4/RD7Direct connection; can be connected to Pin 8 of Header J2 via 0R (R16) resistor
DIM:055 (VCC_SELECT)Connected to Digital ground (VSS) via 0R (R46) resistor
DIM:05639OSCO/CLKO/RP33/IOMAF5/RC0Can be connected via 0R (R25) resistor
DIM:057 to DIM:0605, 11, 19, 38, 48, 58VDDDigital power (VCC)
DIM:061 to DIM:0644, 10, 18, 37, 47, 57VSSDigital ground (VSS)
DIM:065No connection
DIM:06660RP55/RD6Can be connected via 0R (R17) resistor
DIM:067No connection
DIM:06859RP54/RD5Can be connected via 0R (R7) resistor
DIM:069No connection
DIM:07061CVDTX16/RP53/RD4Can be connected via 0R (R23) resistor
DIM:071 to DIM:081No connection
DIM:0823PGC2/DACOUT1/AD3ANN1/AD3AN0/CVDAN1/CMP4D/RP2/RA1Connected via 0R (R6) resistor
DIM:083No connection
DIM:0842AD3AN1/CVDAN7/RP8/SDA2/IOMAF1/RA7Connected via 0R (R4) resistor
DIM:085 to DIM:089No connection
DIM:09024CVDAN25/CVDTX9/RP26/RB9Direct connection
DIM:091No connection
DIM:09223CVDAN24/CVDTX8/CMP2D/RP25/RB8Direct connection
DIM:093 to DIM:097No connection
DIM:09836RP40/ASDA1/IOMAF7/RC7Direct connection
DIM:099No connection
DIM:10035RP39/ASCL1/RC6Direct connection
DIM:101No connection
DIM:10230CVDAN23/CVDTX7/CMP4C/IBIAS1/ISRC1/RP24/I3CASDA1/IOMAF0/RB7Direct connection
DIM:103No connection
DIM:10431CVDAN26/CVDTX10/RP27/SCK2/RB10Connected via 0R (R45) resistor
29AD3ANN2/AD3AN2/CVDAN22/CVDTX6/ALLCMP/IBIAS0/ISRC0/RP23/I3CASCL1/RB6Can be connected via 0R (R19) resistor
DIM:105 to DIM:112No connection
DIM:113 to DIM:1165, 11, 19, 38, 48, 58VDDDigital power (VCC)
DIM:117 to DIM:1204, 10, 18, 37, 47, 57VSSDigital ground (VSS)