2011-2013 Microchip Technology Inc. DS30001037C-page 255
PIC24F16KL402 FAMILY
Program Memory
Address Space............................................................ 31
Data EEPROM............................................................ 32
Device Configuration Words ....................................... 32
Hard Memory Vectors................................................. 32
Organization................................................................ 32
Program Space
Memory Map............................................................... 31
Program Verification ......................................................... 185
PWM (CCP Module)
TMR4 to PR4 Match ................................................. 123
R
Register Maps
A/D Converter ............................................................. 41
Analog Select.............................................................. 41
CCP/ECCP ................................................................. 38
Comparator ................................................................. 41
CPU Core.................................................................... 35
ICN.............................................................................. 36
Interrupt Controller...................................................... 37
MSSP.......................................................................... 39
NVM ............................................................................ 42
Pad Configuration ....................................................... 40
PMD ............................................................................ 42
PORTA........................................................................ 40
PORTB........................................................................ 40
System, Clock Control ................................................ 42
Timer........................................................................... 38
UART .......................................................................... 39
Ultra Low-Power Wake-up .......................................... 42
Registers
AD1CHS (A/D Input Select) ...................................... 162
AD1CON1 (A/D Control 1) ........................................ 159
AD1CON2 (A/D Control 2) ........................................ 160
AD1CON3 (A/D Control 3) ........................................ 161
AD1CSSL (A/D Input Scan Select) ........................... 163
ANCFG (Analog Input Configuration) ....................... 163
ANSA (PORTA Analog Selection) ............................ 113
ANSB (PORTB Analog Selection) ............................ 113
CCP1CON (ECCP1 Control, Enhanced CCP).......... 129
CCPTMRS0 (CCP Timer Select Control 0) .............. 133
CCPxCON (CCPx Control, Standard CCP) .............. 128
CLKDIV (Clock Divider) .............................................. 99
CMSTAT (Comparator Status).................................. 170
CMxCON (Comparator x Control)............................. 169
CORCON (CPU Control) ...................................... 29, 70
CVRCON (Comparator Voltage
Reference Control) ........................................... 172
DEVID (Device ID) .................................................... 182
DEVREV (Device Revision) ...................................... 183
ECCP1AS (ECCP1 Auto-Shutdown Control)............ 130
ECCP1DEL (ECCP1 Enhanced PWM Control) ........ 131
FBS (Boot Segment Configuration) .......................... 176
FGS (General Segment Configuration)..................... 176
FICD (In-Circuit Debugger Configuration)................. 181
FOSC (Oscillator Configuration) ............................... 178
FOSCSEL (Oscillator Selection Configuration)......... 177
FPOR (Reset Configuration)..................................... 180
FWDT (Watchdog Timer Configuration) ................... 179
HLVDCON (High/Low-Voltage Detect Control)......... 174
IEC0 (Interrupt Enable Control 0) ............................... 77
IEC1 (Interrupt Enable Control 1) ............................... 78
IEC2 (Interrupt Enable Control 2) ............................... 79
IEC3 (Interrupt Enable Control 3) ............................... 79
IEC4 (Interrupt Enable Control 4) ............................... 80
IEC5 (Interrupt Enable Control 5) ............................... 80
IFS0 (Interrupt Flag Status 0) ..................................... 73
IFS1 (Interrupt Flag Status 1) ..................................... 74
IFS2 (Interrupt Flag Status 2) ..................................... 75
IFS3 (Interrupt Flag Status 3) ..................................... 75
IFS4 (Interrupt Flag Status 4) ..................................... 76
IFS5 (Interrupt Flag Status 5) ..................................... 76
INTCON 2 (Interrupt Control 2) .................................. 72
INTCON1 (Interrupt Control 1) ................................... 71
INTTREG (Interrupt Control and Status) .................... 93
IPC0 (Interrupt Priority Control 0)............................... 81
IPC1 (Interrupt Priority Control 1)............................... 82
IPC12 (Interrupt Priority Control 12) ........................... 90
IPC16 (Interrupt Priority Control 16) ........................... 91
IPC18 (Interrupt Priority Control 18) ........................... 92
IPC2 (Interrupt Priority Control 2)............................... 83
IPC20 (Interrupt Priority Control 20) ........................... 92
IPC3 (Interrupt Priority Control 3)............................... 84
IPC4 (Interrupt Priority Control 4)............................... 85
IPC5 (Interrupt Priority Control 5)............................... 86
IPC6 (Interrupt Priority Control 6)............................... 87
IPC7 (Interrupt Priority Control 7)............................... 88
IPC9 (Interrupt Priority Control 9)............................... 89
NVMCON (Flash Memory Control)............................. 49
NVMCON (Nonvolatile Memory Control).................... 54
OSCCON (Oscillator Control)..................................... 97
OSCTUN (FRC Oscillator Tune) .............................. 100
PADCFG1 (Pad Configuration Control).................... 147
PSTR1CON (ECCP1 Pulse Steering Control).......... 132
RCON (Reset Control)................................................ 60
REFOCON (Reference Oscillator Control) ............... 103
SR (ALU STATUS) ............................................... 28, 69
SSPxADD (MSSPx Slave Address/Baud
Rate Generator)................................................ 146
SSPxCON1 (MSSPx Control 1, I2C Mode) .............. 142
SSPxCON1 (MSSPx Control 1, SPI Mode).............. 141
SSPxCON2 (MSSPx Control 2, I2C Mode) .............. 143
SSPxCON3 (MSSPx Control 3, I2C Mode) .............. 145
SSPxCON3 (MSSPx Control 3, SPI Mode).............. 144
SSPxMSK (I2C Slave Address Mask) ...................... 146
SSPxSTAT (MSSPx Status, I2C Mode).................... 139
SSPxSTAT (MSSPx Status, SPI Mode) ................... 138
T1CON (Timer1 Control) .......................................... 116
T2CON (Timer2 Control) .......................................... 118
T3CON (Timer3 Control) .......................................... 120
T3GCON (Timer3 Gate Control)............................... 121
T4CON (Timer4 Control) .......................................... 124
ULPWCON (ULPWU Control) .................................. 108
UxMODE (UARTx Mode) ......................................... 152
UxSTA (UARTx Status and Control) ........................ 154
Resets
Brown-out Reset (BOR).............................................. 63
Clock Source Selection .............................................. 61
Delay Times................................................................ 62
Device Times.............................................................. 62
RCON Flag Operation ................................................ 61
SFR States ................................................................. 63
Revision History................................................................ 251
S
Serial Peripheral Interface. See SPI Mode.
SFR Space ......................................................................... 34
Software Stack ................................................................... 43