2009 Microchip Technology Inc. DS39758D-page 311
PIC18F1230/1330
Oscillator Transitions ......................................................... 27
Oscillator, Timer1 ............................................................. 111
P
Packaging ........................................................................ 295
Details ...................................................................... 296
Marking Information ................................................. 295
PICSTART Plus Development Programmer .................... 214
PIE Registers ................................................................... 100
Pin Functions
AVDD .......................................................................... 16
AVSS .......................................................................... 16
MCLR/VPP/RA5/FLTA ................................................ 13
NC .............................................................................. 16
RA0/AN0/INT0/KBI0/CMP0 ....................................... 14
RA1/AN1/INT1/KBI1 .................................................. 14
RA2/TX/CK ................................................................ 14
RA3/RX/DT ................................................................ 14
RA4/T0CKI/AN2//VREF+ ............................................. 14
RA6/OSC2/CLKO/T1OSO/T1CKI/AN3 ...................... 13
RA7/OSC1/CLKI/T1OSI/FLTA ................................... 13
RB0/PWM0 ................................................................ 15
RB1/PWM1 ................................................................ 15
RB2/INT2/KBI2/CMP2/T1OSO/T1CKI ....................... 15
RB3/INT3/KBI3/CMP1/T1OSI .................................... 15
RB4/PWM2 ................................................................ 15
RB5/PWM3 ................................................................ 15
RB6/PWM4/PGC ....................................................... 15
RB7/PWM5/PGD ....................................................... 15
VDD ............................................................................ 16
VSS ............................................................................. 16
Pinout I/O Descriptions
PIC18F1230/1330 ...................................................... 13
PIR Registers ..................................................................... 98
PLL Frequency Multiplier ................................................... 23
HSPLL Oscillator Mode .............................................. 23
Use with INTOSC ....................................................... 23
POP ................................................................................. 244
POR. See Power-on Reset.
PORTA
Associated Registers ................................................. 89
LATA Register ............................................................ 87
PORTA Register ........................................................ 87
TRISA Register .......................................................... 87
PORTB
Associated Registers ................................................. 92
Interrupt-on-Change Flag (RBIF Bit) .......................... 90
LATB Register ............................................................ 90
PORTB Register ........................................................ 90
TRISB Register .......................................................... 90
Power Control PWM ........................................................ 117
Associated Registers ............................................... 145
Control Registers ..................................................... 120
Functionality ............................................................. 120
Power-Managed Modes ..................................................... 31
and A/D Operation ................................................... 176
Clock Sources ............................................................ 31
Clock Transitions and Status Indicators ..................... 32
Effects on Clock Sources ........................................... 29
Entering ...................................................................... 31
Exiting Idle and Sleep Modes .................................... 37
By Interrupt ........................................................ 37
By Reset ............................................................ 37
By WDT Time-out .............................................. 37
Without an Oscillator Start-up Delay .................. 38
Idle Modes ................................................................. 35
PRI_IDLE .......................................................... 36
RC_IDLE ........................................................... 37
SEC_IDLE ......................................................... 36
Multiple Sleep Commands ......................................... 32
Run Modes ................................................................ 32
PRI_RUN ........................................................... 32
RC_RUN ............................................................ 33
SEC_RUN ......................................................... 32
Selecting .................................................................... 31
Sleep Mode ............................................................... 35
Summary (table) ........................................................ 31
Power-on Reset (POR) ...................................................... 41
Time-out Sequence ................................................... 43
Power-up Delays ............................................................... 29
Power-up Timer (PWRT) ................................................... 29
Prescaler, Timer0 ............................................................ 109
PRI_IDLE Mode ................................................................. 36
PRI_RUN Mode ................................................................. 32
Program Counter ............................................................... 52
PCL, PCH and PCU Registers .................................. 52
PCLATH and PCLATU Registers .............................. 52
Program Memory
and Extended Instruction Set .................................... 69
Instructions ................................................................ 56
Two-Word .......................................................... 56
Interrupt Vector .......................................................... 51
Look-up Tables .......................................................... 54
Map and Stack (diagram) .......................................... 51
Reset Vector .............................................................. 51
Program Verification ........................................................ 207
Programming, Device Instructions ................................... 215
PUSH ............................................................................... 244
PUSH and POP Instructions .............................................. 53
PUSHL ............................................................................. 260
PWM
Fault Input ................................................................ 142
Output and Polarity Control ..................................... 141
Single-Pulse Operation ............................................ 138
Special Event Trigger .............................................. 144
Update Lockout ....................................................... 144
PWM Dead-Time
Decrementing the Counter ...................................... 136
Distortion ................................................................. 137
Generators ............................................................... 135
Insertion ................................................................... 135
Ranges .................................................................... 136
PWM Duty Cycle .............................................................. 131
Center-Aligned ......................................................... 133
Complementary Operation ...................................... 134
Edge-Aligned ........................................................... 132
Register Buffers ....................................................... 132
Registers ................................................................. 131
PWM Output Override ..................................................... 138
Complementary Mode ............................................. 138
Examples ................................................................. 140
Synchronization ....................................................... 138
PWM Period ..................................................................... 129
PWM Time Base .............................................................. 120
Continuous Up/Down Count Modes ........................ 125
Free-Running Mode ................................................. 125
Interrupts ................................................................. 125
In Continuous Up/Down Count Mode .............. 126
In Double Update Mode ................................... 128
In Free-Running Mode ..................................... 125
In Single-Shot Mode ........................................ 126