2.1 Connections Required for ICSP

For ICSP operations, the device must be powered using all power and ground pins available on the package. The device internal circuits are powered from a core voltage regulator (buck converter). The buck converter requires two external components: 10 μH inductor and 4.7 μF ceramic capacitors which should be connected to VDDCORE and LX pins as shown in Figure 2-1. In addition to the power pins, the programming interface includes the MCLR (Reset) and one ICSP programming pin pair (PGEDx/PGECx). All dsPIC33AK512MC510 and dsPIC33AK512MPS512 devices have three separate pairs of programming pins, labeled as PGEC1/PGED1, PGEC2/PGED2 and PGEC3/PGED3.
Figure 2-1. Buck Converter Components Connection
Table 2-1 explains details about the required connections.
Table 2-1. Pins Used for Programming
Pin NamePin TypeDescription
VDD/AVDDPowerPower supply. Must be in 3.0V-3.6V range, and all power pins must be connected. 0.1 μF bypass capacitors should be connected to these pins.
VSS/AVSSPowerGround. All ground pins must be connected.
LXBuck converter10 μH inductor must be connected between Lx and VDDCORE pins.
VDDCOREBuck converter10 μF capacitor should be connected between VDDCORE pin and ground, 10 μH inductor must be connected between LX and VDDCORE pins.
MCLRInputTarget device Reset/programming enable.
PGECxInputICSP™ programming clock, where ‘x’ is the programming pair number.
PGEDxInput/OutputICSP™ programming data, where ‘x’ is the programming pair number.

CMOS logic thresholds apply to MCLR and the PGECx/PGEDx signals as specified in Table 2-2.

Table 2-2. Electrical Specification for the Programming Interface Signals
ParameterMin.Max.Description
VILVSS0.2 * VDDInput low-level voltage
VIH0.8 * VDDVDDInput high-level voltage

For all ICSP operations clocking data into the target device, the PGEDx Output state must be valid and stable before the PGECx clock rising edges. All PGEDx data must be presented with the Least Significant bit (LSb) first.

Figure 2-2, Figure 2-3 and Table 2-3 specify the timing for the ICSP interface signals.

Figure 2-2. ICSP™ Interface Signals Timing Parameters (Programmer Driving PGEDx Pin)
Figure 2-3. ICSP™ Interface Signals Timing Parameters (Target Device Driving PGEDx Pin)
Table 2-3. ICSP™ Interface Signals Timing Parameters
ParameterMin.Max.Description
TDsetup20 nSMinimum PGEDx data setup time before PGECx rising edge.
TDhold1 nSMinimum PGEDx data hold time after PGECx rising edge.
TCperiod60 nSMinimum PGECx clock period.
TClow or TChigh20 nSMinimum PGECx clock low or high pulse width.
TDdelay20 nSMaximum data update delay after PGECx falling edge.

Figure 2-4 through Figure 2-9 provide the pin diagrams for the different packages of the dsPIC33AK512MC510 and dsPIC33AK512MPS512 devices. The detailed pin descriptions can be found in the device data sheet.

Figure 2-4. 48-Pin VQFN/TQFP
Figure 2-5. 64-Pin VQFN/TQFP
Figure 2-6. 80-Pin TQFP
Figure 2-7. 100-Pin TQFP
Figure 2-8.  128-Pin TQFP
Figure 2-9. 129-Pin TQFP