English
Language : 

PIC18F6390_07 Datasheet, PDF (407/414 Pages) Microchip Technology – 64/80-Pin Flash Microcontrollers with LCD Driver and nanoWatt Technology
PIC18F6390/6490/8390/8490
Power-Managed Modes ..................................................... 41
and Multiple Sleep Commands .................................. 42
Effects on Clock Sources ........................................... 39
Entering ...................................................................... 41
Exiting Idle and Sleep Modes
by Reset ............................................................. 48
by WDT Time-out ............................................... 48
Without a Start-up Delay .................................... 48
Exiting Idle or Sleep Modes ....................................... 48
by Interrupt ......................................................... 48
Idle Modes ................................................................. 45
PRI_IDLE ........................................................... 46
Run Modes ................................................................. 42
PRI_RUN ........................................................... 42
RC_RUN ............................................................ 44
SEC_RUN .......................................................... 42
Selecting .................................................................... 41
Sleep Mode ................................................................ 45
Summary (table) ........................................................ 41
Power-on Reset (POR) .............................................. 53, 281
Oscillator Start-up Timer (OST) ................................. 55
Power-up Timer (PWRT) ................................... 55, 281
Time-out Sequence .................................................... 55
Power-up Delays ................................................................ 39
Power-up Timer (PWRT) ............................................. 39, 55
Prescaler, Capture ........................................................... 150
Prescaler, Timer0 ............................................................. 133
Assignment (PSA Bit) .............................................. 133
Rate Select (T0PS2:T0PS0 Bits) ............................. 133
Switching Between Timer0 and WDT ...................... 133
Prescaler, Timer2 ............................................................. 154
Program Counter ............................................................... 66
PCL, PCH and PCU Registers ................................... 66
PCLATH and PCLATU Registers .............................. 66
Program Memory
and Extended Instruction Set ..................................... 84
Instructions ................................................................. 70
Two-Word .......................................................... 70
Interrupt Vector .......................................................... 65
Map and Stack (diagram) ........................................... 65
Reset Vector .............................................................. 65
Program Verification and Code Protection ....................... 292
Associated Registers ............................................... 292
Programming, Device Instructions ................................... 295
Pulse-Width Modulation. See PWM (CCP Module).
PUSH ............................................................................... 324
PUSH and POP Instructions .............................................. 67
PUSHL ............................................................................. 340
PWM (CCP Module)
Associated Registers ............................................... 155
Duty Cycle ................................................................ 154
Example Frequencies/Resolutions .......................... 154
Period ....................................................................... 153
Setup for PWM Operation ........................................ 155
TMR2 to PR2 Match ................................................ 153
Q
Q Clock ............................................................................ 154
R
RAM. See Data Memory.
RC Oscillator ...................................................................... 33
RCIO Oscillator Mode ................................................ 33
RCALL ............................................................................. 325
RCON Register
Bit Status During Initialization .................................... 58
© 2007 Microchip Technology Inc.
Reader Response ............................................................ 410
Reading Program Memory and Other Locations ............. 292
Register File ....................................................................... 73
Register File Summary ................................................ 76–79
Registers
ADCON0 (A/D Control 0) ......................................... 231
ADCON1 (A/D Control 1) ......................................... 232
ADCON2 (A/D Control 2) ......................................... 233
BAUDCON1 (Baud Rate Control 1) ......................... 200
CCPxCON (CCPx Control) ...................................... 147
CMCON (Comparator Control) ................................ 241
CONFIG1H (Configuration 1 High) .......................... 282
CONFIG2H (Configuration 2 High) .......................... 284
CONFIG2L (Configuration 2 Low) ........................... 283
CONFIG3H (Configuration 3 High) .......................... 284
CONFIG4L (Configuration 4 Low) ........................... 285
CONFIG5L (Configuration 5 Low) ........................... 285
CVRCON (Comparator Voltage
Reference Control) .......................................... 247
DEVID1 (Device ID 1) .............................................. 286
DEVID2 (Device ID 2) .............................................. 286
HLVDCON (High/Low-Voltage
Detect Control) ................................................ 251
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
LCDCON (LCD Control) .......................................... 258
LCDDATAx (LCD Datax) ......................................... 261
LCDPS (LCD Phase) ............................................... 259
LCDSEx (LCD Segmentx Enable) ........................... 260
OSCCON (Oscillator Control) .................................... 38
OSCTUNE (Oscillator Tuning) ................................... 35
PIE1 (Peripheral Interrupt Enable 1) ....................... 101
PIE2 (Peripheral Interrupt Enable 2) ....................... 102
PIE3 (Peripheral Interrupt Enable 3) ....................... 103
PIR1 (Peripheral Interrupt Request (Flag) 1) ............. 98
PIR2 (Peripheral Interrupt Request (Flag) 2) ............. 99
PIR3 (Peripheral Interrupt Request (Flag) 3) ........... 100
RCON (Reset Control) ....................................... 52, 107
RCSTA1 (EUSART Receive
Status and Control) .......................................... 199
RCSTA2 (AUSART Receive
Status and Control) .......................................... 219
SSPCON1 (MSSP Control 1, I2C Mode) ................. 168
SSPCON1 (MSSP Control 1, SPI Mode) ................ 159
SSPCON2 (MSSP Control 2,
I2C Master Mode) ............................................ 169
SSPSTAT (MSSP Status, I2C Mode) ...................... 167
SSPSTAT (MSSP Status, SPI Mode) ...................... 158
STATUS .................................................................... 80
STKPTR (Stack Pointer) ............................................ 67
T0CON (Timer0 Control) ......................................... 131
T1CON (Timer1 Control) ......................................... 135
T2CON (Timer2 Control) ......................................... 141
T3CON (Timer3 Control) ......................................... 143
TXSTA1 (EUSART Transmit
Status and Control) .......................................... 198
TXSTA2 (AUSART Transmit
Status and Control) .......................................... 218
WDTCON (Watchdog Timer Control) ...................... 288
RESET ............................................................................. 325
DS39629C-page 405