PIC18LF4682-I/ML Microchip Technology, PIC18LF4682-I/ML Datasheet - Page 475
![80KB Flash, 3KB RAM, ECAN, 1024 EEPROM 44 QFN 8x8x0.9mm TUBE](/photos/6/81/68122/150-44-qfn_sml.jpg)
PIC18LF4682-I/ML
Manufacturer Part Number
PIC18LF4682-I/ML
Description
80KB Flash, 3KB RAM, ECAN, 1024 EEPROM 44 QFN 8x8x0.9mm TUBE
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PCM18XT0.pdf
(484 pages)
2.PIC18F2221-ISO.pdf
(46 pages)
3.PIC18F2682-ISP.pdf
(6 pages)
4.PIC18F2682-ISP.pdf
(4 pages)
Specifications of PIC18LF4682-I/ML
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
36
Program Memory Size
80KB (40K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.25K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-QFN
Processor Series
PIC18LF
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3.25 KB
Interface Type
EUSART, I2C, MSSP, SPI
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
44
Number Of Timers
4
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 11 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
- PCM18XT0 PDF datasheet
- PIC18F2221-ISO PDF datasheet #2
- PIC18F2682-ISP PDF datasheet #3
- PIC18F2682-ISP PDF datasheet #4
- Current page: 475 of 484
- Download datasheet (9Mb)
Pinout I/O Descriptions
PIR Registers ................................................................... 120
PLL Frequency Multiplier ................................................... 27
PLL Lock Time-out ............................................................. 47
POP ................................................................................. 394
POR. See Power-on Reset.
PORTA
PORTB
PORTC
PORTD
PORTE
Postscaler, WDT
© 2009 Microchip Technology Inc.
RD0/PSP0/C1IN+ ...................................................... 22
RD1/PSP1/C1IN- ....................................................... 22
RD2/PSP2/C2IN+ ...................................................... 22
RD3/PSP3/C2IN- ....................................................... 22
RD4/PSP4/ECCP1/P1A ............................................. 22
RD5/PSP5/P1B .......................................................... 22
RD6/PSP6/P1C .......................................................... 22
RD7/PSP7/P1D .......................................................... 22
RE0/RD/AN5 .............................................................. 23
RE1/WR/AN6/C1OUT ................................................ 23
RE2/CS/AN7/C2OUT ................................................. 23
V
V
PIC18F2682/2685 ...................................................... 14
PIC18F4682/4685 ...................................................... 18
HSPLL Oscillator Mode .............................................. 27
INTOSC Modes .......................................................... 28
Use with INTOSC ....................................................... 27
Associated Registers ............................................... 133
I/O Summary ............................................................ 132
LATA Register .......................................................... 131
PORTA Register ...................................................... 131
TRISA Register ........................................................ 131
Associated Registers ............................................... 136
I/O Summary ............................................................ 135
LATB Register .......................................................... 134
PORTB Register ...................................................... 134
RB7:RB4 Interrupt-on-Change Flag (RBIF Bit) ........ 134
TRISB Register ........................................................ 134
Associated Registers ............................................... 139
I/O Summary ............................................................ 138
LATC Register ......................................................... 137
PORTC Register ...................................................... 137
RC3/SCK/SCL Pin ................................................... 203
TRISC Register ........................................................ 137
Associated Registers ............................................... 142
I/O Summary ............................................................ 141
LATD Register ......................................................... 140
Parallel Slave Port (PSP) Function .......................... 140
PORTD Register ...................................................... 140
TRISD Register ........................................................ 140
Associated Registers ............................................... 145
I/O Summary ............................................................ 145
LATE Register .......................................................... 143
PORTE Register ...................................................... 143
PSP Mode Select (PSPMODE Bit) .......................... 140
TRISE Register ........................................................ 143
Assignment (PSA Bit) .............................................. 151
Rate Select (T0PS2:T0PS0 Bits) ............................. 151
Switching Between Timer0 and WDT ...................... 151
DD
SS
....................................................................... 17, 23
...................................................................... 17, 23
PIC18F2682/2685/4682/4685
Power-Managed Modes ..................................................... 35
Power-on Reset (POR) ...................................................... 45
Power-up Delays ............................................................... 33
Power-up Timer (PWRT) ............................................. 33, 47
Prescaler
Prescaler, Timer0 ............................................................ 151
Prescaler, Timer2 ............................................................ 172
PRI_IDLE Mode ................................................................. 40
PRI_RUN Mode ................................................................. 36
Program Counter ............................................................... 64
Program Memory
Program Verification and Code Protection ...................... 360
Programming, Device Instructions ................................... 365
PSP. See Parallel Slave Port.
Pulse-Width Modulation. See PWM (CCP1/ECCP1 Modules).
PUSH ............................................................................... 394
PUSH and POP Instructions .............................................. 65
PUSHL ............................................................................. 410
PWM (CCP1 Module)
Clock Sources ........................................................... 35
Clock Transitions and Status Indicators .................... 36
Entering ..................................................................... 35
Exiting Idle and Sleep Modes .................................... 41
Idle Modes ................................................................. 39
Multiple Sleep Commands ......................................... 36
Run Modes ................................................................ 36
Selecting .................................................................... 35
Sleep Mode ............................................................... 39
Summary (table) ........................................................ 35
Power-up Timer (PWRT) ........................................... 47
Time-out Sequence ................................................... 47
Timer2 ..................................................................... 178
Assignment (PSA Bit) .............................................. 151
Rate Select (T0PS2:T0PS0 Bits) ............................. 151
Switching Between Timer0 and WDT ...................... 151
PCL, PCH and PCU Registers .................................. 64
PCLATH and PCLATU Registers .............................. 64
Code Protection ....................................................... 361
Extended Instruction Set ........................................... 93
Instructions ................................................................ 68
Interrupt Vector .......................................................... 63
Look-up Tables .......................................................... 66
Map and Stack (diagram) .......................................... 63
Reset Vector .............................................................. 63
Associated Registers ............................................... 361
Associated Registers ............................................... 173
CCPR1H:CCPR1L Registers .................................. 171
Duty Cycle ............................................................... 171
Example Frequencies/Resolutions .......................... 172
Period ...................................................................... 171
Setup for PWM Operation ....................................... 172
TMR2 to PR2 Match ................................................ 171
By Interrupt ........................................................ 41
By Reset ............................................................ 41
By WDT Time-out .............................................. 41
Without an Oscillator Start-up Delay ................. 42
PRI_IDLE .......................................................... 40
RC_IDLE ........................................................... 41
SEC_IDLE ......................................................... 40
PRI_RUN ........................................................... 36
RC_RUN ............................................................ 37
SEC_RUN ......................................................... 36
Two-Word .......................................................... 68
DS39761C-page 475
Related parts for PIC18LF4682-I/ML
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: