English
Language : 

PIC18F2331_07 Datasheet, PDF (392/400 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
Power-up Timer (PWRT)....................................... 31, 48, 269
Prescaler, Timer0.............................................................. 137
Assignment (PSA Bit) ............................................... 137
Rate Select (T0PS2:T0PS0 Bits) .............................. 137
Prescaler, Timer2.............................................................. 158
Program Counter
PCL Register............................................................... 62
PCLATH Register ....................................................... 62
PCLATU Register ....................................................... 62
Program Memory
Instructions.................................................................. 64
Two-Word ........................................................... 64
Interrupt Vector ........................................................... 59
Map and Stack
PIC18F2331/4331............................................... 59
PIC18F2431/4431............................................... 59
Reset Vector ............................................................... 59
Program Verification.......................................................... 285
Pulse-Width Measurement Mode...................................... 165
Pulse-Width Modulation. See PWM (CCP Module).
PUSH ................................................................................ 318
PUSH and POP Instructions ............................................... 61
PWM
Associated Registers ................................................ 211
Complementary Operation ........................................ 198
Control Registers ...................................................... 184
Dead-Time Generators ............................................. 199
Fault Inputs ............................................................... 207
Functionality .............................................................. 184
Modes
Continuous Up/Down Count ............................. 188
Free-Running .................................................... 188
Single-Shot ....................................................... 188
Output and Polarity Control....................................... 206
Output Override ........................................................ 202
Single-Pulse Operation ............................................. 202
Special Event Trigger................................................ 210
Time Base ................................................................. 184
Update Lockout ......................................................... 210
PWM (CCP Module)
Associated Registers ................................................ 158
CCPR1H:CCPR1L Registers .................................... 157
Duty Cycle................................................................. 157
Example Frequencies/Resolutions ........................... 158
Period........................................................................ 157
PR2 Register, Writing ............................................... 157
Setup for PWM Operation ......................................... 158
TMR2 to PR2 Match ......................................... 145, 157
PWM Duty Cycle ............................................................... 195
Center-Aligned .......................................................... 197
Comparison............................................................... 195
Edge-Aligned ............................................................ 196
Register Buffers ........................................................ 196
Registers ................................................................... 195
PWM Period ...................................................................... 193
PWM Time Base
Interrupts ................................................................... 189
Continuous Up/Down Count Mode ................... 190
Double Update Mode ........................................ 192
Free-Running Mode .......................................... 189
Single-Shot Mode ............................................. 190
Postscaler ................................................................. 189
Prescaler ................................................................... 188
Q
Q Clock ............................................................................. 158
QEI
and IC Shared Interrupts .......................................... 178
Configuration ............................................................ 170
Direction of Rotation ................................................. 171
Interrupts .................................................................. 172
Sampling Modes ....................................................... 171
Velocity Measurement .............................................. 175
Quadrature Encoder Interface (QEI)................................. 169
R
R/W Bit.............................................................. 214, 220, 221
RAM. See Data Memory.
RC Oscillator....................................................................... 25
RCIO Oscillator Mode................................................. 25
RCALL .............................................................................. 319
RCON Register
Bit Status During Initialization ..................................... 49
Bits and Positions ....................................................... 49
RCSTA Register
SPEN Bit................................................................... 223
Reader Response............................................................. 394
Registers
ADCHS (A/D Channel Select) .................................. 250
ADCON0 (A/D Control 0).......................................... 246
ADCON1 (A/D Control 1).......................................... 247
ADCON2 (A/D Control 2).......................................... 248
ADCON3 (A/D Control 3).......................................... 249
ANSEL0 (Analog Select 0) ....................................... 251
ANSEL1 (Analog Select 1) ....................................... 251
BAUDCTL (Baud Rate Control) ................................ 226
CAPxCON (Input Capture x Control) ........................ 163
CCPxCON (CCPx Control) ....................................... 153
CONFIG1H (Configuration 1 High) ........................... 270
CONFIG2H (Configuration 2 High) ........................... 272
CONFIG2L (Configuration 2 Low) ............................ 271
CONFIG3H (Configuration 3 High) ........................... 274
CONFIG3L (Configuration 3 Low) ............................ 273
CONFIG4L (Configuration 4 Low) ............................ 275
CONFIG5H (Configuration 5 High) ........................... 276
CONFIG5L (Configuration 5 Low) ............................ 276
CONFIG6H (Configuration 6 High) ........................... 277
CONFIG6L (Configuration 6 Low) ............................ 277
CONFIG7H (Configuration 7 High) ........................... 278
CONFIG7L (Configuration 7 Low) ............................ 278
DEVID1 (Device ID 1)............................................... 279
DEVID2 (Device ID 2)............................................... 279
DFLTCON (Digital Filter Control).............................. 177
DTCON (Dead-Time Control) ................................... 200
EECON1 (Flash Program/Data
EEPROM Control 1) ..................................... 79, 88
FLTCONFIG (Fault Configuration)............................ 209
INTCON (Interrupt Control)......................................... 95
INTCON2 (Interrupt Control 2).................................... 96
INTCON3 (Interrupt Control 3).................................... 97
IPR1 (Peripheral Interrupt Priority 1) ........................ 104
IPR2 (Peripheral Interrupt Priority 2) ........................ 105
IPR3 (Peripheral Interrupt Priority 3) ........................ 106
LVDCON (Low-Voltage Detect Control) ................... 265
OSCCON (Oscillator Control) ..................................... 30
OSCTUNE (Oscillator Tuning).................................... 27
OVDCOND (Output Override Control)...................... 204
DS39616C-page 390
Preliminary
© 2007 Microchip Technology Inc.