Datasheet
2009-2012 Microchip Technology Inc. DS70591E-page 437
dsPIC33FJ32GS406/606/608/610 and dsPIC33FJ64GS406/606/608/610
APPENDIX A: MIGRATING FROM dsPIC33FJ06GS101/X02 AND
dsPIC33FJ16GSX02/X04 TO dsPIC33FJ32GS406/606/608/610 AND
dsPIC33FJ64GS406/606/608/610 DEVICES
This appendix provides an overview of considerations
for migrating from the dsPIC33FJ06GS101/X02 and
dsPIC33FJ16GSX02/X04 family of devices to the
dsPIC33FJ32GS406/606/608/610 and
dsPIC33FJ64GS406/606/608/610 family of devices.
The code developed for the dsPIC33FJ06GS101/X02
and dsPIC33FJ16GSX02/X04 devices can be ported
to the dsPIC33FJ32GS406/606/608/610 and
dsPIC33FJ64GS406/606/608/610 devices after
making the appropriate changes outlined below.
A.1 Device Pins and Peripheral Pin
Select (PPS)
On dsPIC33FJ06GS101/X02 and
dsPIC33FJ16GSX02/X04 devices, some peripherals
such as the Timer, Input Capture, Output Compare,
UART, SPI, External Interrupts, Analog Comparator
Output, as well as the PWM4 pin pair, were mapped to
physical pins via Peripheral Pin Select (PPS)
functionality. On dsPIC33FJ32GS406/606/608/610
and dsPIC33FJ64GS406/606/608/610 devices, these
peripherals are hard-coded to dedicated pins. Because
of this, as well as pinout differences between the two
devices families, software must be updated to utilize
peripherals on the desired pin locations.
A.2 High-Speed PWM
A.2.1 FAULT AND CURRENT-LIMIT
CONTROL SIGNAL SOURCE
SELECTION
Fault and Current-Limit Control Signal Source selec-
tion has changed between the two families of devices.
On dsPIC33FJ06GS101/X02 and
dsPIC33FJ16GSX02/X04 devices, Fault1 through
Fault8 were assigned to Fault and Current-Limit
Controls with the following values:
• 00000 = Fault 1
• 00001 = Fault 2
• 00010 = Fault 3
• 00011 = Fault 4
• 00100 = Fault 5
• 00101 = Fault 6
• 00110 = Fault 7
• 00111 = Fault 8
On dsPIC33FJ32GS406/606/608/610 and
dsPIC33FJ64GS406/606/608/610 devices, Fault1
through Fault8 were assigned to Fault and Current-
Limit Controls with the following values:
• 01000 = Fault 1
• 01001 = Fault 2
• 01010 = Fault 3
• 01011 = Fault 4
• 01100 = Fault 5
• 01101 = Fault 6
• 01110 = Fault 7
• 01111 = Fault 8
A.2.2 ANALOG COMPARATORS
CONNECTION
Connection of analog comparators to the PWM Fault
and Current-Limit Control Signal Sources on
dsPIC33FJ06GS101/X02 and dsPIC33FJ16GSX02/
X04 devices is performed by assigning a comparator to
one of the Fault sources via the virtual PPS pins, and
then selecting the desired Fault as the source for Fault
and Current-Limit Control. On dsPIC33FJ32GS406/
606/608/610 and dsPIC33FJ64GS406/606/608/610
devices, analog comparators have a direct connection
to Fault and Current-Limit Control, and can be selected
with the following values for the CLSRC or FLTSRC
bits:
• 00000 = Analog Comparator 1
• 00001 = Analog Comparator 2
• 00010 = Analog Comparator 3
• 00011 = Analog Comparator 4
A.2.3 LEADING-EDGE BLANKING (LEB)
The Leading-Edge Blanking Delay (LEB) bits have
been moved from the LEBCOx register on
dsPIC33FJ06GS101/X02 and dsPIC33FJ16GSX02/
X04 devices to the LEBDLYx register on
dsPIC33FJ32GS406/606/608/610 and
dsPIC33FJ64GS406/606/608/610 devices.