PIC18 (L) F2X/45K50 USB Flash MCU Product Brief

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

PIC18(L)F2X/45K50

PIC18(L)F2X/45K50 USB Flash MCU Product Brief


Universal Serial Bus Features: • High/Low-Voltage Detect module
• USB V2.0 Compliant • Charge Time Measurement Unit (CTMU):
• Crystal-less Full Speed (12 Mb/s) and Low-Speed - Supports capacitive touch sensing for touch
Operation (1.5 Mb/s) screens and capacitive switches
• Supports Control, Interrupt, Isochronous and Bulk • Enhanced USART module:
Transfers - Supports RS-485, RS-232 and LIN/J2602
• Supports up to 32 Endpoints (16 Bidirectional) - Auto-wake-up on Start bit
• 1 Kbyte Dual Access RAM for USB - Auto-Baud Detect
• On-Chip USB Transceiver Extreme Low-Power Management with
Flexible Oscillator Structure: XLP:
• 3x and 4x PLL Clock Multipliers • Sleep mode: 20 nA, typical
• Two External Clock modes, Up to 48 MHz (12 • Watchdog Timer: 300 nA, typical
MIPS) • Timer1 Oscillator: 800 nA @ 32 kHz
• Internal 31 kHz Oscillator • Peripheral Module Disable
• Internal Oscillator, 31 kHz to 16 MHz Special Microcontroller Features:
- Factory calibrated to ± 1%
• Low-Power, High-Speed CMOS Flash Technology
- Self-tune to ± 0.20% max. from USB or
• C Compiler Optimized Architecture for Re-Entrant
secondary oscillator
Code
• Secondary Oscillator using Timer1 @ 32 kHz
• Power Management Features:
• Fail-Safe Clock Monitor:
- Run: CPU on, peripherals on, SRAM on
- Allows for safe shutdown if any clock stops
- Idle: CPU off, peripherals on, SRAM on
Peripheral Highlights: - Sleep: CPU off, peripherals off, SRAM on
• Up to 33 I/O Pins plus 3 Input-Only Pins: • Priority Levels for Interrupts
- High-current Sink/Source 25 mA/25 mA • Self-Programmable under Software Control
- Three programmable external interrupts • 8 x 8 Single-Cycle Hardware Multiplier
- 11 programmable Interrupt-on-Change • Extended Watchdog Timer (WDT):
- 9 programmable weak pull-ups - Programmable period from 4 ms to 131s
- Programmable slew rate • Single-Supply In-Circuit Serial Programming™
• SR Latch (ICSP™) via Two Pins
• Enhanced Capture/Compare/PWM (ECCP) • In-Circuit Debug (ICD) with Three Breakpoints via
module: Two Pins
- One, two or four PWM outputs • Optional dedicated ICD/ICSP Port (44-Pin TQFP
- Selectable polarity Package Only)
- Programmable dead time • Wide Operating Voltage Range:
- Auto-shutdown and auto-restart - F devices: 2.3V to 5.5V
- Pulse steering control - LF devices: 1.8V to 3.6V
• Capture/Compare/PWM (CCP) module • Flash Program Memory of 10,000 Erase/Write
• Master Synchronous Serial Port (MSSP) module Cycles Minimum and 20-year Data Retention
Supporting 3-Wire SPI (all 4 modes) and I2C™
Master and Slave modes
• Two Analog Comparators with Input Multiplexing
• 10-Bit Analog-to-Digital (A/D) Converter module:
- Up to 25 input channels
- Auto-acquisition capability
- Conversion available during Sleep
• Digital-to-Analog Converter (DAC) module:
- Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V output levels
- 5-bit rail-to-rail resistive DAC with positive
and negative reference selection

 2012 Microchip Technology Inc. Advance Information DS30025A-page 1


PIC18(L)F2X/45K50
PIC18(L)F2X/45K50 Family Types

Comparators
Program Memory Data Memory

8-bit/16-bit
10-bit A/D

BOR/LVD
channels

EUSART

USB 2.0
Timers
CTMU

MSSP
ECCP
CCP/
Device Data Pins I/O
Flash Single Word SRAM
(bytes) Instructions (bytes)
EEPROM
(bytes)
PIC18(L)F45K50 32K 16384 2048 256 40/44 36 25-ch 2 1/1 Yes Yes 1 1 2/2 Yes
PIC18(L)F25K50 32K 16384 2048 256 28 25 14-ch 2 1/1 Yes Yes 1 1 2/2 Yes
PIC18(L)F24K50 16K 8192 2048 256 28 25 14-ch 2 1/1 Yes Yes 1 1 2/2 Yes

FIGURE 1: 28-PIN PDIP, SOIC, SSOP DIAGRAM FOR PIC18(L)F2XK50

28-PIN PDIP (300 MIL), SOIC, SSOP

MCLR/VPP/RE3 1 28 RB7
RA0 2 27 RB6
RA1 3 26 RB5
RA2 4 25 RB4
PIC18(L)F2XK50

RA3 5 24 RB3
RA4 6 23 RB2
RA5 7 22 RB1
VSS 8 21 RB0
RA7 9 20 VDD
RA6 10 19 VSS
RC0 11 18 RC7
RC1 12 17 RC6
RC2 13 16 RC5/D+
VUSB3V3 14 15 RC4/D-

FIGURE 2: 28-PIN QFN DIAGRAM FOR PIC18(L)F2XK50


MCLR/VPP/RE3

28-PIN QFN
RA1
RA0

RB7
RB6
RB5
RB4
27
28

25
26

24

22
23

RA2 1 21 RB3
RA3 2 20 RB2
RA4 3 19 RB1
RA5 4 PIC18(L)F2XK50 18 RB0
VSS 5 17 VDD
RA7 6 16 VSS
RA6 7 15 RC7
10

13
14
12
11
9
8

VUSB3V3
D-/RC4
RC0
RC1
RC2

D+/RC5
RC6

DS30025A-page 2 Advance Information  2012 Microchip Technology Inc.


PIC18(L)F2X/45K50
FIGURE 3: 40-PIN PDIP DIAGRAM FOR PIC18(L)F45K50

40-PIN PDIP (600 MIL)


MCLR/VPP/RE3 1 40 RB7
RA0 2 39 RB6
RA1 3 38 RB5
RA2 4 37 RB4
RA3 5 36 RB3
RA4 6 35 RB2
RA5 7 34 RB1

PIC18(L)F45K50
RE0 8 33 RB0
RE1 9 32 VDD
RE2 10 31 VSS
VDD 11 30 RD7
VSS 12 29 RD6
RA7 13 28 RD5
RA6 14 27 RD4
RC0 15 26 RC7
RC1 16 25 RC6
RC2 17 24 RC5/D+
VUSB3V3 18 23 RC4/D-
RD0 19 22 RD3
RD1 20 21 RD2

FIGURE 4: 40-PIN UQFN DIAGRAM FOR PIC18(L)F45K50

40-PIN UQFN
VUSB3V3
RC5/D+
RC4/D-
RD3

RD1
RD0

RC2
RC1
RC6

RD2
40
39
38
37
36
35

33
32
31
34

RC7 1 30 RC0
RD4 2 29 RA6
RD5 3 28 RA7
RD6 4 27 VSS
RD7 5 PIC18(L)F45K50 26 VDD
VSS 6 25 RE2
VDD 7 24 RE1
RB0 8 23 RE0
RB1 9 22 RA5
RB2 10 21 RA4
16
11
12
13
14
15

17
18
19
20
RB3
RB4
RB5
RB6
RB7
MCLR/VPP/RE3
RA0
RA1
RA2
RA3

 2012 Microchip Technology Inc. Advance Information DS30025A-page 3


PIC18(L)F2X/45K50
FIGURE 5: 44-PIN TQFP DIAGRAM FOR PIC18(L)F45K50

44-PIN TQFP

VUSB3V3
RC5/D+
RC4/D-
RC6

RD3
RD2
RD1
RD0

RC2
RC1
NC
41
40
39

37
36
35
34
42
44
43

38
RC7 1 33 NC/ICRST(1)/ICVPP(1)
RD4 2 32 RC0
RD5 3 31 RA6
RD6 4 30 RA7
RD7 5 29 VSS
VSS 6 PIC18(L)F45K50 28 VDD
VDD 7 27 RE2
RB0 8 26 RE1
RB1 9 25 RE0
RB2 10 24 RA5
RB3 11 23 RA4

12
13
14
15
16
17
18
19
20
21
22
NC/ICDT(1)/ICPGD(1)
RB4
RB5
RB6
RB7
MCLR/VPP/RE3
RA0
RA1
RA2
RA3
NC/ICCK(1)/ICPGC(1)

Note 1: Special ICPORT programming/debug port features available when ICPRT = 1

DS30025A-page 4 Advance Information  2012 Microchip Technology Inc.


 2012 Microchip Technology Inc.

TABLE 1: 28-PIn PDIP/SOIC/SSOP


PIC18(L)F2X/45K50 PIN SUMMARY

40-Pin UQFN

44-Pin TQFP

Comparator
40-Pin PDIP
28-Pin QFN

Reference

Interrupts
SR Latch

EUSART
(E)CCP
Analog

Pull-up
Timers
CTMU

MSSP

Basic
USB

ICD
I/O

RA0 2 27 2 17 19 AN0 C12IN0-


RA1 3 28 3 18 20 AN1 C12IN1- CTCMP
RA2 4 1 4 19 21 AN2 C2IN+ VREF-
DACOUT
Advance Information

RA3 5 2 5 20 22 AN3 C1IN+ VREF+


RA4 6 3 6 21 23 C1OUT SRQ T0CKI
RA5 7 4 7 22 24 AN4 C2OUT SRNQ LVDIN SS
RA6 10 7 14 29 31 OSC2
CLKO
RA7 9 6 13 28 30 OSC1
CLKI
RB0 21 18 33 8 8 AN12 SRI FLT0 SDI INT0 Y

PIC18(L)F2X/45K50
SDA
RB1 22 19 34 9 9 AN10 C12IN3- P1C(5) SCK INT1 Y
SCL
RB2 23 20 35 10 10 AN8 CTED1 P1B(5) INT2 Y
RB3 24 21 36 11 11 AN9 C12IN2- CTED2 CCP2(1) SDO Y
RB4 25 22 37 12 14 AN11 P1D(5) IOCB4 Y
RB5 26 23 38 13 15 AN13 T1G IOCB5 Y
T3CKI(2)
RB6 27 24 39 14 16 IOCB6 Y PGC
RB7 28 25 40 15 17 IOCB7 Y PGD
Note 1: Alternate CCP2 pin location based on Configuration bit.
DS30025A-page 5

2: Alternate T3CKI pin location based on Configuration bits.


3: Pins are enabled when ICPRT = 1, otherwise, they are disabled.
4: Location on 40/44-Pin parts (PIC18(L)F45K50). Function not on this pin on 28-Pin parts (PIC18(L)F2XK50).
5: Location on 28-Pin parts (PIC18(L)F2XK50). Function not on this pin on 40/44-Pin parts (PIC18(L)F45K50).
6: Alternate SDO pin location based on Configuration bits.
7: RE3, RC4 and RC5 can be used for digital input only (no output functionality).
TABLE 1: PIC18(L)F2X/45K50 PIN SUMMARY
DS30025A-page 6

PIC18(L)F2X/45K50
28-PIn PDIP/SOIC/SSOP

40-Pin UQFN

44-Pin TQFP

Comparator
40-Pin PDIP
28-Pin QFN

Reference

Interrupts
SR Latch

EUSART
(E)CCP
Analog

Pull-up
Timers
CTMU

MSSP

Basic
USB

ICD
I/O

RC0 11 8 15 30 32 SOSCO IOCC0


T1CKI
T3CKI
T3G
RC1 12 9 16 31 35 CCP2 SOSCI IOCC1
RC2 13 10 17 32 36 AN14 CTPLS CCP1 IOCC2
Advance Information

P1A
— 14 11 18 33 37 — VUSB3V3 VDDCORE
RC4(7) 15 12 23 38 42 — D- IOCC4
RC5(7) 16 13 24 39 43 — D+ IOCC5
RC6 17 14 25 40 44 AN18 TX IOCC6
CK
RC7 18 15 26 1 1 AN19 RX SDO(6) IOCC7
DT
RD0 — — 19 34 38 AN20
RD1 — — 20 35 39 AN21
RD2 — — 21 36 40 AN22
RD3 — — 22 37 41 AN23
RD4 — — 27 2 2 AN24
RD5 — — 28 3 3 AN25 P1B(4)
 2012 Microchip Technology Inc.

RD6 — — 29 4 4 AN26 P1C(4)


RD7 — — 30 5 5 AN27 P1D(4)
RE0 — — 8 23 25 AN5
Note 1: Alternate CCP2 pin location based on Configuration bit.
2: Alternate T3CKI pin location based on Configuration bits.
3: Pins are enabled when ICPRT = 1, otherwise, they are disabled.
4: Location on 40/44-Pin parts (PIC18(L)F45K50). Function not on this pin on 28-Pin parts (PIC18(L)F2XK50).
5: Location on 28-Pin parts (PIC18(L)F2XK50). Function not on this pin on 40/44-Pin parts (PIC18(L)F45K50).
6: Alternate SDO pin location based on Configuration bits.
7: RE3, RC4 and RC5 can be used for digital input only (no output functionality).
TABLE 1: PIC18(L)F2X/45K50 PIN SUMMARY
DS30025A-page 7

PIC18(L)F2X/45K50
28-PIn PDIP/SOIC/SSOP

40-Pin UQFN

44-Pin TQFP

Comparator
40-Pin PDIP
28-Pin QFN

Reference

Interrupts
SR Latch

EUSART
(E)CCP
Analog

Pull-up
Timers
CTMU

MSSP

Basic
USB

ICD
I/O

RE1 — — 9 24 26 AN6
RE2 — — 10 25 27 AN7
RE3(7) 1 26 1 16 18 — Y MCLR
VPP
20 17 11, 7, 7, VDD
Advance Information

32 26 28
8, 5, 12, 6, 6, VSS
19 16 31 27 29
– –- 12(3) ICPGC(3) ICCK(3)
– –- 13(3) ICPGD(3) ICDT(3)
–- –- 33(3) ICVPP (3)
ICRST(3)
Note 1: Alternate CCP2 pin location based on Configuration bit.
2: Alternate T3CKI pin location based on Configuration bits.
3: Pins are enabled when ICPRT = 1, otherwise, they are disabled.
4: Location on 40/44-Pin parts (PIC18(L)F45K50). Function not on this pin on 28-Pin parts (PIC18(L)F2XK50).
5: Location on 28-Pin parts (PIC18(L)F2XK50). Function not on this pin on 40/44-Pin parts (PIC18(L)F45K50).
6: Alternate SDO pin location based on Configuration bits.
7: RE3, RC4 and RC5 can be used for digital input only (no output functionality).
 2012 Microchip Technology Inc.
PIC18(L)F2X/45K50
NOTES:

DS30025A-page 8 Advance Information  2012 Microchip Technology Inc.


Note the following details of the code protection feature on Microchip devices:
• Microchip products meet the specification contained in their particular Microchip Data Sheet.

• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.

• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.

• Microchip is willing to work with the customer who is concerned about the integrity of their code.

• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”

Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.

Information contained in this publication regarding device Trademarks


applications and the like is provided only for your convenience
The Microchip name and logo, the Microchip logo, dsPIC,
and may be superseded by updates. It is your responsibility to
KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
ensure that your application meets with your specifications.
PIC32 logo, rfPIC and UNI/O are registered trademarks of
MICROCHIP MAKES NO REPRESENTATIONS OR
Microchip Technology Incorporated in the U.S.A. and other
WARRANTIES OF ANY KIND WHETHER EXPRESS OR countries.
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION, FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
INCLUDING BUT NOT LIMITED TO ITS CONDITION, MXDEV, MXLAB, SEEVAL and The Embedded Control
QUALITY, PERFORMANCE, MERCHANTABILITY OR Solutions Company are registered trademarks of Microchip
FITNESS FOR PURPOSE. Microchip disclaims all liability Technology Incorporated in the U.S.A.
arising from this information and its use. Use of Microchip Analog-for-the-Digital Age, Application Maestro, chipKIT,
devices in life support and/or safety applications is entirely at chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
the buyer’s risk, and the buyer agrees to defend, indemnify and dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
hold harmless Microchip from any and all damages, claims, FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
suits, or expenses resulting from such use. No licenses are Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
conveyed, implicitly or otherwise, under any Microchip MPLINK, mTouch, Omniscient Code Generation, PICC,
intellectual property rights. PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, WiperLock and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
© 2012, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.

ISBN: 9781620762592

QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
CERTIFIED BY DNV Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures

== ISO/TS 16949 ==
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.

 2012 Microchip Technology Inc. Advance Information DS30025A-page 9


Worldwide Sales and Service
AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE
Corporate Office Asia Pacific Office India - Bangalore Austria - Wels
2355 West Chandler Blvd. Suites 3707-14, 37th Floor Tel: 91-80-3090-4444 Tel: 43-7242-2244-39
Chandler, AZ 85224-6199 Tower 6, The Gateway Fax: 91-80-3090-4123 Fax: 43-7242-2244-393
Tel: 480-792-7200 Harbour City, Kowloon Denmark - Copenhagen
India - New Delhi
Fax: 480-792-7277 Hong Kong Tel: 45-4450-2828
Tel: 91-11-4160-8631
Technical Support: Tel: 852-2401-1200 Fax: 45-4485-2829
Fax: 91-11-4160-8632
http://www.microchip.com/ Fax: 852-2401-3431
India - Pune France - Paris
support
Australia - Sydney Tel: 91-20-2566-1512 Tel: 33-1-69-53-63-20
Web Address:
Tel: 61-2-9868-6733 Fax: 91-20-2566-1513 Fax: 33-1-69-30-90-79
www.microchip.com
Fax: 61-2-9868-6755 Germany - Munich
Atlanta Japan - Osaka
China - Beijing Tel: 49-89-627-144-0
Duluth, GA Tel: 81-66-152-7160
Tel: 86-10-8569-7000 Fax: 49-89-627-144-44
Tel: 678-957-9614 Fax: 81-66-152-9310
Fax: 86-10-8528-2104 Italy - Milan
Fax: 678-957-1455 Japan - Yokohama
China - Chengdu Tel: 39-0331-742611
Boston Tel: 81-45-471- 6166
Tel: 86-28-8665-5511 Fax: 39-0331-466781
Westborough, MA Fax: 81-45-471-6122
Fax: 86-28-8665-7889 Netherlands - Drunen
Tel: 774-760-0087 Korea - Daegu
Fax: 774-760-0088 China - Chongqing Tel: 82-53-744-4301 Tel: 31-416-690399
Tel: 86-23-8980-9588 Fax: 82-53-744-4302 Fax: 31-416-690340
Chicago
Itasca, IL Fax: 86-23-8980-9500 Spain - Madrid
Korea - Seoul
Tel: 630-285-0071 China - Hangzhou Tel: 34-91-708-08-90
Tel: 82-2-554-7200
Fax: 630-285-0075 Tel: 86-571-2819-3187 Fax: 82-2-558-5932 or Fax: 34-91-708-08-91
Cleveland Fax: 86-571-2819-3189 82-2-558-5934 UK - Wokingham
Independence, OH China - Hong Kong SAR Tel: 44-118-921-5869
Malaysia - Kuala Lumpur
Tel: 216-447-0464 Tel: 852-2401-1200 Fax: 44-118-921-5820
Tel: 60-3-6201-9857
Fax: 216-447-0643 Fax: 852-2401-3431 Fax: 60-3-6201-9859
Dallas China - Nanjing Malaysia - Penang
Addison, TX Tel: 86-25-8473-2460 Tel: 60-4-227-8870
Tel: 972-818-7423 Fax: 86-25-8473-2470 Fax: 60-4-227-4068
Fax: 972-818-2924
China - Qingdao Philippines - Manila
Detroit Tel: 86-532-8502-7355 Tel: 63-2-634-9065
Farmington Hills, MI
Fax: 86-532-8502-7205 Fax: 63-2-634-9069
Tel: 248-538-2250
Fax: 248-538-2260 China - Shanghai Singapore
Tel: 86-21-5407-5533 Tel: 65-6334-8870
Indianapolis Fax: 86-21-5407-5066 Fax: 65-6334-8850
Noblesville, IN
Tel: 317-773-8323 China - Shenyang Taiwan - Hsin Chu
Fax: 317-773-5453 Tel: 86-24-2334-2829 Tel: 886-3-5778-366
Fax: 86-24-2334-2393 Fax: 886-3-5770-955
Los Angeles
Mission Viejo, CA China - Shenzhen Taiwan - Kaohsiung
Tel: 949-462-9523 Tel: 86-755-8203-2660 Tel: 886-7-536-4818
Fax: 949-462-9608 Fax: 86-755-8203-1760 Fax: 886-7-330-9305
Santa Clara China - Wuhan Taiwan - Taipei
Santa Clara, CA Tel: 86-27-5980-5300 Tel: 886-2-2500-6610
Tel: 408-961-6444 Fax: 86-27-5980-5118 Fax: 886-2-2508-0102
Fax: 408-961-6445 China - Xian Thailand - Bangkok
Toronto Tel: 86-29-8833-7252 Tel: 66-2-694-1351
Mississauga, Ontario, Fax: 86-29-8833-7256 Fax: 66-2-694-1350
Canada China - Xiamen
Tel: 905-673-0699 Tel: 86-592-2388138
Fax: 905-673-6509 Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
11/29/11
Fax: 86-756-3210049

DS30025A-page 10 Advance Information  2012 Microchip Technology Inc.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy