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 dsPIC33AK256MPS306 devices have three separate pairs of programming pins, labeled as PGEC1/PGED1, PGEC2/PGED2 and PGEC3/PGED3. Table 2-1 explains details about the required connections.
| Pin Name | Pin Type | Description |
|---|---|---|
| VDD/AVDD | Power | Power supply. Must be in 4.5V-5.5V range, and all power pins must be connected. 0.1 µF bypass capacitors should be connected to these pins. |
| VSS/AVSS | Power | Ground (GND). All ground pins must be connected. |
| LX | Buck converter | 10 µH inductor must be connected between LX and VDDCORE pins. |
| VDDCORE | Buck converter | 4.7 µF capacitor should be connected between VDDCORE pin and ground. 10 µH inductor must be connected between LX and VDDCORE pins. |
| SWVDD | Buck converter | Connect to VDD/AVDD. |
| SWVSS | Buck converter | Connect to GND, between 4.7 µF capacitor and GND on VDDCORE pin. |
| MCLR | Input | Target device Reset/programming enable. |
| PGECx | Input | ICSP programming clock, where ‘x’ is the programming pair number. |
| PGEDx | Input/Output | ICSP 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.
| Parameter | Min. | Max. | Description |
|---|---|---|---|
| VIL | VSS | 0.2 * VDD | Input low-level voltage |
| VIH | 0.8 * VDD | VDD | Input 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.
| Parameter | Min. | Max. | Description |
|---|---|---|---|
| TDsetup | 20 nS | — | Minimum PGEDx data setup time before PGECx rising edge |
| TDhold | 1 nS | — | Minimum PGEDx data hold time after PGECx rising edge |
| TCperiod | 60 nS | — | Minimum PGECx clock period |
| TClow or TChigh | 20 nS | — | Minimum PGECx clock low or high pulse width |
| TDdelay | — | 20 nS | Maximum data update delay after PGECx falling edge |
Figure 2-4 through Figure 2-6 provide the pin diagrams for the different packages of the dsPIC33AK256MPS306 devices. The detailed pin descriptions can be found in the device data sheet.
