PIC18F97J94 FAMILY
8-Bit LCD Flash Microcontroller with USB and XLP Technology
eXtreme Low-Power Features
• Multiple Power Management Options for Extreme
Power Reduction:
- V
BAT
allows for lowest power consumption on
back-up battery (with or without RTCC)
- Deep Sleep allows near total power-down with the
ability to wake-up on external triggers
- Sleep and Idle modes selectively shut down
peripherals and/or core for substantial power
reduction and fast wake-up
• Alternate Clock modes Allow On-the-Fly Switching to
a Lower Clock Speed for Selective Power Reduction
• Extreme Low-Power Current Consumption for
Deep Sleep:
- WDT: 650 nA @ 2V typical
- RTCC: 650 nA @ 32 kHz, 2V typical
- Deep Sleep current, 80 nA typical
• Hardware Real-Time Clock/Calendar (RTCC):
- Runs in Deep Sleep and V
BAT
modes
• Two Master Synchronous Serial Ports (MSSP)
modules Featuring:
- 3-Wire/4-Wire SPI (all 4 modes)
- SPI Direct Memory Access (DMA) channel
w/1024 byte count
- Two I
2
C modules Support Multi-Master/Slave
mode and 7-Bit/10-Bit Addressing
• Four Enhanced Addressable USART modules:
- Support RS-485, RS-232 and LIN/J2602
- On-chip hardware encoder/decoder for IrDA
®
- Auto-wake-up on Auto-Baud Detect
• Digital Signal Modulator Provides On-Chip OOK,
FSK and PSK Modulation for a Digital Signal Stream
• High-Current Sink/Source 18 mA/18 mA on all Digital I/O
• Configurable Open-Drain Outputs on ECCP/CCP/
USART/MSSP
• Extended Microcontroller mode Using 12, 16 or
20-Bit Addressing mode
Universal Serial Bus Features
• USB V2.0 Compliant
• Low Speed (1.5 Mb/s) and Full Speed (12 Mb/s)
• Supports Control, Interrupt, Isochronous and Bulk
Transfers
• Supports up to 32 Endpoints (16 bidirectional)
• USB module can use Any RAM Location on the
Device as USB Endpoint Buffers
• On-Chip USB Transceiver
Analog Features
• 10/12-Bit, 24-Channel Analog-to-Digital (A/D)
Converter:
- Conversion rate of 500 ksps (10-bit),
200 kbps (12-bit)
- Conversion available during Sleep and Idle
• Three Rail-to-Rail Enhanced Analog Comparators
with Programmable Input/Output Configuration
• On-Chip Programmable Voltage Reference
• Charge Time Measurement Unit (CTMU):
- Used for capacitive touch sensing, up to
24 channels
- Time measurement down to 1 ns resolution
- CTMU temperature sensing
Peripheral Features
• LCD Display Controller:
- Up to 60 segments by 8 commons
- Internal charge pump and low-power, internal
resistor biasing
- Operation in Sleep mode
• Up to Four External Interrupt Sources
• Peripheral Pin Select Lite (PPS-Lite):
- Allows independent I/O mapping of many
peripherals
• Four 16-Bit and Four 8-Bit Timers/Counters with
Prescaler
• Seven Capture/Compare/PWM (CCP) modules
• Three Enhanced Capture/Compare/PWM (ECCP)
modules:
- One, two or four PWM outputs
- Selectable polarity
- Programmable dead time
- Auto-shutdown and auto-restart
- Pulse steering control
High-Performance CPU
• High-Precision PLL for USB
• Two External Clock modes, Up to 64 MHz
(16 MIPS
®
)
• Internal 31 kHz Oscillator
• High-Precision Internal Oscillator with Clock
Recovery from SOSC to Achieve 0.15% Precision,
31 kHz to 8 MHz or 64 MHz w/PLL,
±0.15% Typical, ±1.5% Max.
• Secondary Oscillator using Timer1 @ 32 kHz
• C Compiler Optimized Instruction Set Architecture
• Two Address Generation Units for Separate Read
and Write Addressing of Data Memory
2012-2016 Microchip Technology Inc.
DS30000575C-page 1
PIC18F97J94 FAMILY
Special Microcontroller Features
• Operating Voltage Range of 2.0V to 3.6V
• Two On-Chip Voltage Regulators (1.8V and 1.2V) for
Regular and Extreme Low-Power Operation
• 20,000 Erase/Write Cycle Endurance Flash Program
Memory, Typical
• Flash Data Retention: 10 Years Minimum
• Self-Programmable under Software Control
• Two Configurable Reference Clock Outputs
(REFO1 and REFO2)
• In-Circuit Serial Programming™ (ICSP™)
• Fail-Safe Clock Monitor Operation:
- Detects clock failure and switches to on-chip,
low-power RC oscillator
• Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
• Brown-out Reset (BOR) with Operation Below V
BOR
,
with Regulator Enabled
• High/Low-Voltage Detect (HLVD)
• Flexible Watchdog Timer (WDT) with its Own
RC Oscillator for Reliable Operation
• Standard and Ultra Low-Power Watchdog Timers
(WDT) for Reliable Operation in Standard and Deep
Sleep modes
TABLE 1:
PIC18F97J94 FAMILY TYPES
USART w/IrDA
®
Deep Sleep w/V
BAT
Y
Y
Y
Y
Y
Y
Y
Y
Y
10/12-Bit A/D (ch)
Memory
Data SRAM
(bytes)
Pins
Remappable Peripherals
Comparators
Timers
8-Bit/16-Bit
SPI w/ DMA
CCP/ECCP
LCD (pixels)
PPS (Lite)
Lite
Lite
Lite
Lite
Lite
Lite
Lite
Lite
Lite
CTMU
Flash
Program
(bytes)
Device
PIC18F97J94
PIC18F87J94
PIC18F67J94
PIC18F96J94
PIC18F86J94
PIC18F66J94
PIC18F95J94
PIC18F85J94
PIC18F65J94
100
80
64
100
80
64
100
80
64
128K
128K
128K
64K
64K
64K
32K
32K
32K
4K
4K
4K
4K
4K
4K
4K
4K
4K
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
2
2
2
2
2
2
2
2
2
3
3
3
3
3
3
3
3
3
Y
Y
Y
Y
Y
Y
Y
Y
Y
2
2
2
2
2
2
2
2
2
24
24
16
24
24
16
24
24
16
Y
Y
Y
Y
Y
Y
Y
Y
Y
480
352
224
480
352
224
480
352
224
For other small form-factor package availability and marking information, visit
http://www.microchip.com/packaging
or
contact your local sales office.
DS30000575C-page 2
2012-2016 Microchip Technology Inc.
USB
Y
Y
Y
Y
Y
Y
Y
Y
Y
I
2
C
PIC18F97J94 FAMILY
FIGURE 2:
80-PIN TQFP DIAGRAM FOR PIC18F8XJ94
A17/SEG46/AN22/RH1
A16/SEG47/AN23/RH0
AD10/LCDBIAS3/RP30/CS/RE2
AD11/COM0/RP33/REFO1/RE3
AD12/COM1/RP32/RE4
AD13/COM2/RP37/RE5
AD14/COM3/RP34/RE6
AD15/LCDBIAS0/RP31/RE7
AD0/SEG0/RP20/PSP0/RD0
V
DD
V
SS
AD1/SEG1/RP21/PSP1/RD1
AD2/SEG2/RP22/PSP2/RD2
AD3/SEG3/RP23/PSP3/RD3
AD4/SEG4/RP24/PSP4/RD4
AD5/SEG5/SDA2/RP25/PSP5/RD5
AD6/SEG6/SCL2/RP26/PSP6/RD6
AD7/SEG7/RP27/REFO2/PSP7/RD7
ALE/SEG32/RJ0
OE/SEG33/RJ1
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
A18/SEG45/AN21/RH2
A19/SEG44/AN20/RH3
AD9/LCDBIAS2/RP29/WR/RE1
AD8/LCDBIAS1/RP28/RD/RE0
COM4/SEG28/AN8/RP46/RG0
COM5/SEG29/AN19/RP39/RG1
COM6/SEG30/AN18/C3INA/RP42/RG2
COM7/SEG31/AN17/C3INB/RP43/RG3
MCLR
SEG26/AN16/C3INC/RP44/RTCC/RG4
V
SS
V
CAP
SEG25/AN5/RP38/RF7
SEG24/AN11/C1INA/RP40/RF6
SEG23/CV
REF
/AN10/C1INB/RP35/RF5
D+/RF4
D-/RF3
SEG20/AN7/C2INB/RP36/RF2
SEG43/AN15/RH7
SEG42/AN14/C1INC/RH6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PIC18F8XJ94
WRL/SEG34/RJ2
WRH/SEG35/RJ3
V
LCAP
1/RP8/CTED13/INT0/RB0
V
LCAP
2/RP9/RB1
SEG9/RP14/CTED1/RB2
SEG10/RP7/CTED2/RB3
SEG11/RP12/CTED3/RB4
SEG8/RP13/CTED4/RB5
CTED5/PGC/RB6
V
SS
OSC2/CLKO/RP6/RA6
OSC1/CLKI/RP10/RA7
V
DD
CTED6/PGD/RB7
SEG12/RP16/CTED10/RC5
SEG16/SDA1/RP17/CTED9/RC4
SEG17/SCL1/RP15/CTED8/RC3
SEG13/AN9/RP11/CTED7/RC2
UB/SEG36/RJ7
LB/SEG37/RJ6
Note 1:
Pinouts are subject to change.
2:
See
Table 3
for the pin allocation table.
SEG41/AN13/C2IND/RH5
SEG40/AN12/C2INC/RH4
V
USB
3
V
3
V
BAT
AV
DD
AV
SS
V
REF
+/AN3/RP3/RA3
SEG21/V
REF
-/AN2/RP2/RA2
SEG18/AN1/RP1/RA1
SEG19/AN0/AN1-/RP0/RA0
Vss
V
DD
SEG15/AN4/LVDIN/C1INA/C2INA/C3INA/RP5/RA5
SEG14/AN6/RP4/RA4
SOSCI/RC1
SOSCO/SCLKI/PWRLCLK/RC0
SEG27/RP18/UOE/CTED11/RC6
SEG22/RP19/CTED12/RC7
BA0/SEG39/RJ4
CE/SEG38/RJ5
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
DS30000575C-page 4
2012-2016 Microchip Technology Inc.
PIC18F97J94 FAMILY
FIGURE 3:
100-PIN TQFP DIAGRAM FOR PIC18F9XJ94
A17/SEG46/AN22/RH1
A16/SEG47/AN23/RH0
AD10/LCDBIAS3/RP30/CS/RE2
AD11/COM0/RP33/REFO1/RE3
RG7
AD12/COM1/RP32/RE4
AD13/COM2/RP37/RE5
AD14/COM3/RP34/RE6
AD15/LCDBIAS0/RP31/RE7
SEG48/RL0
AD0/SEG0/RP20/PSP0/RD0
RG6
V
DD
V
SS
AD1/SEG1/RP21/PSP1/RD1
SEG63/RK7
AD2/SEG2/RP22/PSP2/RD2
AD3/SEG3/RP23/PSP3/RD3
AD4/SEG4/RP24/PSP4/RD4
AD5/SEG5/SDA2/RP25/PSP5/RD5
SEG62/RK6
AD6/SEG6/SCL2/RP26/PSP6/RD6
AD7/SEG7/RP27/REFO2/PSP7/RD7
ALE/SEG32/RJ0
OE/SEG33/RJ1
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
A18/SEG45/AN21/RH2
A19/SEG44/AN20/RH3
AD9/LCDBIAS2/RP29/WR/RE1
AD8/LCDBIAS1/RP28/RD/RE0
V
DD
COM4/SEG28/AN8/RP46/RG0
COM5/SEG29/AN19/RP39/RG1
COM6/SEG30/AN18/C3INA/RP42/RG2
COM7/SEG31/AN17/C3INB/RP43/RG3
SEG49/RL1
MCLR
SEG26/AN16/C3INC/RP44/RTCC/RG4
SEG50/RL2
V
SS
V
CAP
SEG51/RL3
SEG25/AN5/RP38/RF7
SEG24/AN11/C1INA/RP40/RF6
SEG23/CV
REF
/AN10/C1INB/RP35/RF5
D+/RF4
SEG52/RL4
D-/RF3
SEG20/AN7/CTMUI/C2INB/RP36/RF2
SEG43/AN15/RH7
SEG42/AN14/C1INC/RH6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PIC18F9XJ94
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
Note 1:
Pinouts are subject to change.
2:
See
Table 4
for the pin allocation table.
2012-2016 Microchip Technology Inc.
SEG41/AN13/C2IND/RH5
SEG40/AN12/C2INC/RH4
V
USB
3
V
3
V
BAT
SEG53/RL5
AV
DD
AV
SS
V
REF
+/AN3/RP3/RA3
SEG21/V
REF
-/AN2/RP2/RA2
V
SS
SEG18/AN1/RP1/RA1
SEG19/AN0/AN1-/RP0/RA0
SEG54/RL6
V
SS
V
DD
SEG55/RL7
SEG15/AN4/LVDIN/C1INA/C2INA/C3INA/RP5/RA5
SEG14/AN6/RP4/RA4
SOSCI/RC1
SOSCO/SCLKI/PWRLCLK/RC0
SEG56/RK0
SEG27/RP18/UOE/CTED11/RC6
SEG22/RP19/CTED12/RC7
BA0/SEG39/RJ4
CE/SEG38/RJ5
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
WRL/SEG34/RJ2
WRH/SEG35/RJ3
V
LCAP
1/RP8/CTED13/INT0/RB0
V
LCAP
2/RP9/RB1
DDIO1/SEG61/RK5
SEG9/RP14/CTED1/RB2
SEG10/RP7/CTED2/RB3
SEG11/RP12/CTED3/RB4
SEG8/RP13/CTED4/RB5
DDIO0/SEG60/RK4
CTED5/PGC/RB6
V
SS
SEG59/RK3
OSC2/CLKO/RP6/RA6
OSC1/CLKI/RP10/RA7
SEG58/RK2
V
DD
CTED6/PGD/RB7
SEG12/RP16/CTED10/RC5
SEG16/SDA1/RP17/CTED9/RC4
SEG57/RK1
SEG17/SCL1/RP15/CTED8/RC3
SEG13/AN9/RP11/CTED7/RC2
UB/SEG36/RJ7
LB/SEG37/RJ6
DS30000575C-page 5