Microchip Technology Microstick for the 3V PIC24F K-series DM240013-1 DM240013-1 Data Sheet

Product codes
DM240013-1
Page of 260
 2011 Microchip Technology Inc.
DS31037B-page 249
PIC24F16KL402 FAMILY
APPENDIX A:
REVISION HISTORY
Revision A (September 2011)
Original data sheet for the PIC24F16KL402 family of
devices.
Revision B (November 2011)
Updates DC Specifications in Tables 
 throug
(all Typical and Maximum values).
Updates AC Specifications in Tables 
 through
 (SPI Timing Requirements) with the addition of
the F
SCK
 specification.
Other minor typographic corrections throughout.
APPENDIX B:
MIGRATING FROM 
PIC18/PIC24 TO 
PIC24F16KL402
The PIC24F16KL402 family combines traditional
PIC18 peripherals with a faster PIC24 core to provide
a low-cost, high-performance microcontroller with
low-power consumption.
Code written for PIC18 devices can be migrated to the
PIC24F16KL402 by using a C compiler that generates
PIC24 machine level instructions. Assembly language
code will need to be rewritten using PIC24 instructions.
The PIC24 instruction set shares similarities to the
PIC18 instruction set, which should ease porting of
assembly code. Application code will require changes
to support certain PIC24 peripherals.
Code written for PIC24 devices can be migrated to the
PIC24F16KL402 without many code changes. Certain
peripherals, however, will require application changes
to support modules that were traditionally available
only on PIC18 devices.
Refer to 
 for a list of peripheral modules on
the PIC24F16KL402 and where they originated from.
TABLE B-1:
TABLE B-1: PIC24F16KL402 
PERIPHERAL MODULE 
ORIGINATING 
ARCHITECTURE
Peripheral Module
PIC18
PIC24
ECCP/CCP
X
MSSP (I
2
C™/SPI)
X
Timer2/4 (8-bit)
X
Timer3 (16-bit)
X
Timer1 (16-bit)
X
10-Bit A/D Converter
X
Comparator
X
Comparator Voltage 
Reference
X
UART
X
HLVD
X