![](http://datasheet.mmic.net.cn/260000/PIC18F2410_datasheet_15942924/PIC18F2410_370.png)
PIC18F2X1X/4X1X
DS39636C-page 368
Preliminary
2007 Microchip Technology Inc.
RD7/PSP7/P1D ..........................................................21
RE0/RD/AN5 ..............................................................22
RE1/WR/AN6 .............................................................22
RE2/CS/AN7 ..............................................................22
V
DD
.......................................................................16, 22
V
SS
.......................................................................16, 22
Pinout I/O Descriptions
PIC18F2410/2510/2515/2610 ....................................13
PIC18F4410/4510/4515/4610 ....................................17
PIR Registers .....................................................................86
PLL Frequency Multiplier ...................................................25
HSPLL Oscillator Mode ..............................................25
Use with INTOSC .......................................................25
POP ..................................................................................286
POR. See Power-on Reset.
PORTA
Associated Registers .................................................97
LATA Register ............................................................95
PORTA Register ........................................................95
TRISA Register ..........................................................95
PORTB
Associated Registers ...............................................100
LATB Register ............................................................98
PORTB Register ........................................................98
RB7:RB4 Interrupt-on-Change
Flag (RBIF Bit) ...................................................98
TRISB Register ..........................................................98
PORTC
Associated Registers ...............................................103
LATC Register .........................................................101
PORTC Register ......................................................101
RC3/SCK/SCL Pin ...................................................165
TRISC Register ........................................................101
PORTD
Associated Registers ...............................................106
LATD Register .........................................................104
Parallel Slave Port (PSP) Function ..........................104
PORTD Register ......................................................104
TRISD Register ........................................................104
PORTE
Associated Registers ...............................................109
LATE Register ..........................................................107
PORTE Register ......................................................107
PSP Mode Select (PSPMODE Bit) ..........................104
TRISE Register ........................................................107
Postscaler, WDT
Assignment (PSA Bit) ..............................................115
Rate Select (T0PS2:T0PS0 Bits) .............................115
Switching Between Timer0 and WDT ......................115
Power Managed Modes .....................................................33
and A/D Operation ...................................................218
and EUSART Operation ...........................................195
and Multiple Sleep Commands ..................................34
and PWM Operation ................................................149
and SPI Operation ...................................................159
Clock Sources ............................................................33
Clock Transitions and Status Indicators .....................34
Effects on Clock Sources ...........................................31
Entering ......................................................................33
Exiting Idle and Sleep Modes ....................................39
by Interrupt .........................................................39
by Reset .............................................................39
by WDT Time-out ...............................................39
Without a Start-up Delay ....................................40
Idle Modes ................................................................. 37
PRI_IDLE ........................................................... 38
RC_IDLE ........................................................... 39
SEC_IDLE ......................................................... 38
Run Modes ................................................................ 34
PRI_RUN ........................................................... 34
RC_RUN ............................................................ 35
SEC_RUN ......................................................... 34
Selecting .................................................................... 33
Sleep Mode ............................................................... 37
Summary (table) ........................................................ 33
Power-on Reset (POR) ...................................................... 43
Power-up Timer (PWRT) ........................................... 45
Time-out Sequence ................................................... 45
Power-up Delays ............................................................... 31
Power-up Timer (PWRT) ................................................... 31
Prescaler
Timer2 ..................................................................... 140
Prescaler, Timer0 ............................................................ 115
Assignment (PSA Bit) .............................................. 115
Rate Select (T0PS2:T0PS0 Bits) ............................. 115
Switching Between Timer0 and WDT ...................... 115
Prescaler, Timer2 ............................................................ 135
PRI_IDLE Mode ................................................................. 38
PRI_RUN Mode ................................................................. 34
Program Counter ............................................................... 54
PCL, PCH and PCU Registers .................................. 54
PCLATH and PCLATU Registers .............................. 54
Program Memory
and Extended Instruction Set .................................... 73
Code Protection ....................................................... 253
Instructions ................................................................ 58
Two-Word .......................................................... 58
Interrupt Vector .......................................................... 53
Look-up Tables .......................................................... 56
Map and Stack (diagram) .......................................... 53
Reset Vector .............................................................. 53
Program Verification and Code Protection ...................... 251
Associated Registers ............................................... 252
Programming, Device Instructions ................................... 257
PSP. See Parallel Slave Port.
Pulse-Width Modulation. See PWM (CCP Module)
and PWM (ECCP Module).
PUSH ............................................................................... 286
PUSH and POP Instructions .............................................. 55
PUSHL ............................................................................. 302
PWM (CCP Module)
Associated Registers ............................................... 136
Auto-Shutdown (CCP1 only) .................................... 135
CCPR1H:CCPR1L Registers ................................... 139
Duty Cycle ....................................................... 134, 140
Example Frequencies/Resolutions .................. 135, 140
Period .............................................................. 134, 139
Setup for PWM Operation ........................................ 135
TMR2 to PR2 Match ........................................ 134, 139
PWM (ECCP Module) ...................................................... 139
Associated Registers ............................................... 150
Direction Change in Full-Bridge
Output Mode .................................................... 144
Effects of a Reset .................................................... 149
Enhanced PWM Auto-Shutdown ............................. 146
Full-Bridge Application Example .............................. 144
Full-Bridge Mode ..................................................... 143
Half-Bridge Mode ..................................................... 142