Datasheet
PIC18F45J10 FAMILY
DS39682E-page 358 © 2009 Microchip Technology Inc.
PORTA
Associated Registers ............................................... 100
LATA Register ............................................................ 98
PORTA Register ........................................................ 98
TRISA Register .......................................................... 98
PORTB
Associated Registers ............................................... 103
LATB Register .......................................................... 101
PORTB Register ...................................................... 101
RB7:RB4 Interrupt-on-Change Flag (RBIF Bit) ........ 101
TRISB Register ........................................................101
PORTC
Associated Registers ............................................... 106
LATC Register ......................................................... 104
PORTC Register ......................................................104
RC3/SCK1/SCL1 Pin ............................................... 166
TRISC Register ........................................................104
PORTD
Associated Registers ............................................... 109
LATD Register ......................................................... 107
Parallel Slave Port (PSP) Function .......................... 107
PORTD Register ......................................................107
TRISD Register ........................................................107
PORTE
Associated Registers ............................................... 112
LATE Register .......................................................... 110
PORTE Register ...................................................... 110
PSP Mode Select (PSPMODE Bit) .......................... 107
TRISE Register ........................................................110
Power-Managed Modes ..................................................... 35
and EUSART Operation ........................................... 197
and Multiple Sleep Commands .................................. 36
and PWM Operation ................................................ 147
and SPI Operation ................................................... 157
Clock Transitions and Status Indicators ..................... 36
Entering ...................................................................... 35
Exiting Idle and Sleep Modes .................................... 40
by Reset ............................................................. 40
by WDT Time-out ...............................................40
Without an Oscillator Start-up Delay .................. 40
Idle Modes ................................................................. 38
PRI_IDLE ........................................................... 39
RC_IDLE ............................................................ 40
SEC_IDLE .......................................................... 39
Run Modes ................................................................. 36
PRI_RUN ...........................................................36
RC_RUN ............................................................ 37
SEC_RUN .......................................................... 36
Selecting ....................................................................35
Sleep Mode ................................................................ 38
Summary (table) ........................................................ 35
Power-on Reset (POR) ...................................................... 43
Power-up Timer (PWRT) ........................................... 44
Time-out Sequence .................................................... 44
Power-up Delays ................................................................33
Power-up Timer (PWRT) .............................................. 33, 44
Prescaler
Timer2 ...................................................................... 138
Prescaler, Timer0 ............................................................. 117
Prescaler, Timer2 ............................................................. 133
PRI_IDLE Mode ................................................................. 39
PRI_RUN Mode ................................................................. 36
Program Counter ................................................................ 53
PCL, PCH and PCU Registers ................................... 53
PCLATH and PCLATU Registers ..............................53
Program Memory
and Extended Instruction Set .................................... 70
Flash Configuration Words ........................................ 52
Instructions ................................................................ 57
Two-Word .......................................................... 57
Interrupt Vector .................................................... 51, 52
Look-up Tables .......................................................... 55
Map and Stack (diagram) .......................................... 51
Memory Maps
Hard Vectors and Configuration Words ............. 52
Reset Vector ........................................................ 51, 52
Program Verification and Code Protection ...................... 247
Programming, Device Instructions ................................... 249
PSP. See Parallel Slave Port.
Pulse-Width Modulation. See PWM (CCP Module)
and PWM (ECCP Module).
PUSH ............................................................................... 278
PUSH and POP Instructions .............................................. 54
PUSHL ............................................................................. 294
PWM (CCP Module)
Associated Registers ............................................... 134
Auto-Shutdown (CCP1 Only) ................................... 133
CCPR1H:CCPR1L Registers ................................... 137
Duty Cycle ....................................................... 132, 138
Example Frequencies/Resolutions .................. 133, 138
Period .............................................................. 132, 137
Setup for Operation ................................................. 133
TMR2-to-PR2 Match ........................................ 132, 137
PWM (ECCP Module) ...................................................... 137
Direction Change in Full-Bridge Output Mode ......... 142
Effects of a Reset .................................................... 147
Enhanced PWM Auto-Shutdown ............................. 144
Full-Bridge Application Example .............................. 142
Full-Bridge Mode ..................................................... 141
Half-Bridge Mode ..................................................... 140
Half-Bridge Output Mode Applications Example ...... 140
Operation in Power-Managed Modes ...................... 147
Operation with Fail-Safe Clock Monitor ................... 147
Output Configurations .............................................. 138
Output Relationships (Active-High) .......................... 139
Output Relationships (Active-Low) .......................... 139
Programmable Dead-Band Delay ............................ 144
Setup for PWM Operation ........................................ 147
Start-up Considerations ........................................... 146
Q
Q Clock .................................................................... 133, 138
R
RAM. See Data Memory.
RBIF Bit ........................................................................... 101
RC_IDLE Mode .................................................................. 40
RC_RUN Mode .................................................................. 37
RCALL ............................................................................. 279
RCON Register
Bit Status During Initialization .................................... 46
Reader Response ............................................................ 364
Register File ....................................................................... 60
Register File Summary ................................................ 62–64
Registers
ADCON0 (A/D Control 0) ......................................... 215
ADCON1 (A/D Control 1) ......................................... 216
ADCON2 (A/D Control 2) ......................................... 217
BAUDCON (Baud Rate Control) .............................. 196
CCP1CON (ECCP1 Control) ................................... 135
CCPxCON (CCPx Control) ...................................... 127