Professional Documents
Culture Documents
16f84a Datasheet PDF
16f84a Datasheet PDF
PIC16F84A
• Only 35 single word instructions to learn MCLR 4 15 OSC2/CLKOUT
• All instructions single cycle except for program VSS 5 14 VDD
branches which are two-cycle RB0/INT 6 13 RB7
RB1 7 12 RB6
• Operating speed: DC - 20 MHz clock input
RB2 8 11 RB5
DC - 200 ns instruction cycle
RB3 9 10 RB4
• 1024 words of program memory
• 68 bytes of data RAM
• 64 bytes of data EEPROM
• 14-bit wide instruction words
• 8-bit wide data bytes SSOP
• 15 special function hardware registers
RA2 •1 20 RA1
• Eight-level deep hardware stack
RA3 2 19 RA0
• Direct, indirect and relative addressing modes RA4/T0CKI 3 18 OSC1/CLKIN
PIC16F84A
• Four interrupt sources: MCLR 4 17 OSC2/CLKOUT
- External RB0/INT pin VSS 5 16 VDD
- TMR0 timer overflow VSS 6 15 VDD
- PORTB<7:4> interrupt on change RB0/INT 7 14 RB7
- Data EEPROM write complete RB1 8 13 RB6
RB2 9 12 RB5
Peripheral Features: RB3 10 11 RB4
• 13 I/O pins with individual direction control
• High current sink/source for direct LED drive
- 25 mA sink max. per pin
- 25 mA source max. per pin CMOS Enhanced Flash/EERPOM Technology:
• TMR0: 8-bit timer/counter with 8-bit • Low-power, high-speed technology
programmable prescaler
• Fully static design
Special Microcontroller Features: • Wide operating voltage range:
• 1000 erase/write cycles Enhanced Flash program - Commercial: 2.0V to 5.5V
memory - Industrial: 2.0V to 5.5V
• 1,000,000 typical erase/write cycles EEPROM data • Low power consumption:
memory - < 2 mA typical @ 5V, 4 MHz
• EEPROM Data Retention > 40 years - 15 µA typical @ 2V, 32 kHz
• In-Circuit Serial Programming (ICSP™) - via two - < 0.5 µA typical standby current @ 2V
pins
• Power-on Reset (POR), Power-up Timer (PWRT),
Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Code-protection
• Power saving SLEEP mode
• Selectable oscillator options
13 Data Bus 8
Program Counter EEPROM Data Memory
Flash
Program
Memory
RAM EEPROM
PIC16F84A 8 Level Stack File Registers EEDATA Data Memory
1K x 14 (13-bit) 64 x 8
PIC16F84A
68 x 8
Program
Bus 14
7 RAM Addr EEADR
Addr Mux
Instruction reg
MUX
Power-up
Timer I/O Ports
8
Instruction Oscillator
Decode & Start-up Timer
Control ALU
Power-on RA3:RA0
Reset
Timing Watchdog RB7:RB1
Timer W reg
Generation
RB0/INT
section discussing each individual peripheral module. Peripheral Interrupt Vector 0004h
The data memory area also contains the data
EEPROM memory. This memory is not directly mapped
into the data memory, but is indirectly mapped. That is,
User Memory
an indirect address pointer specifies the address of the
Space
data EEPROM memory to read/write. The 64 bytes of
data EEPROM memory have the address range
0h-3Fh. More details on the EEPROM memory can be
found in Section 5.0.
Additional information on device memory may be found
in the PICmicro™ Mid-Range Reference Manual,
(DS33023).
3FFh
2.1 Program Memory Organization
The PIC16FXX has a 13-bit program counter capable
of addressing an 8K x 14 program memory space.
For the PIC16F84A, the first 1K x 14 (0000h-03FFh)
are physically implemented (Figure 2-1). Accessing a 1FFFh
location above the physically implemented address will
cause a wraparound. For example, for locations 20h,
420h, 820h, C20h, 1020h, 1420h, 1820h, and 1C20h
will be the same instruction.
The reset vector is at 0000h and the interrupt vector is
at 0004h.
The data memory is partitioned into two areas. The first Each General Purpose Register (GPR) is 8 bits wide
is the Special Function Registers (SFR) area, while the and is accessed either directly or indirectly through the
second is the General Purpose Registers (GPR) area. FSR (Section 2.4).
The SFRs control the operation of the device. The GPR addresses in bank 1 are mapped to
Portions of data memory are banked. This is for both addresses in bank 0. As an example, addressing loca-
the SFR area and the GPR area. The GPR area is tion 0Ch or 8Ch will access the same GPR.
banked to allow greater than 116 bytes of general
purpose RAM. The banked areas of the SFR are for the FIGURE 2-1: REGISTER FILE MAP -
registers that control the peripheral functions. Banking PIC16F84A
requires the use of control bits for bank selection.
These control bits are located in the STATUS Register. File Address File Address
Figure 2-1 shows the data memory map organization. 00h Indirect addr.(1) Indirect addr.(1) 80h
Instructions MOVWF and MOVF can move values from 01h TMR0 OPTION_REG 81h
the W register to any location in the register file (“F”), 02h PCL PCL 82h
and vice-versa.
03h STATUS STATUS 83h
The entire data memory can be accessed either
directly using the absolute address of each register file 04h FSR FSR 84h
or indirectly through the File Select Register (FSR) 05h PORTA TRISA 85h
(Section 2.4). Indirect addressing uses the present
06h PORTB TRISB 86h
value of the RP0 bit for access into the banked areas of
data memory. 07h 87h
08h EEDATA EECON1 88h
Data memory is partitioned into two banks which
contain the general purpose registers and the special 09h EEADR EECON2(1) 89h
function registers. Bank 0 is selected by clearing the 0Ah PCLATH PCLATH 8Ah
RP0 bit (STATUS<5>). Setting the RP0 bit selects Bank 0Bh INTCON INTCON 8Bh
1. Each Bank extends up to 7Fh (128 bytes). The first
0Ch 8Ch
twelve locations of each Bank are reserved for the
Special Function Registers. The remainder are Gen-
eral Purpose Registers implemented as static RAM.
68
General Mapped
Purpose (accesses)
Registers in Bank 0
(SRAM)
4Fh CFh
50h D0h
7Fh FFh
Bank 0 Bank 1
Unimplemented data memory location; read as '0'.
Bank 0
00h INDF Uses contents of FSR to address data memory (not a physical register) ---- ---- ---- ----
01h TMR0 8-bit real-time clock/counter xxxx xxxx uuuu uuuu
02h PCL Low order 8 bits of the Program Counter (PC) 0000 0000 0000 0000
(2) TO
03h STATUS IRP RP1 RP0 PD Z DC C 0001 1xxx 000q quuu
04h FSR Indirect data memory address pointer 0 xxxx xxxx uuuu uuuu
05h PORTA (4) — — — RA4/T0CKI RA3 RA2 RA1 RA0 ---x xxxx ---u uuuu
06h PORTB (5) RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0/INT xxxx xxxx uuuu uuuu
0Ah PCLATH — — — Write buffer for upper 5 bits of the PC (1) ---0 0000 ---0 0000
0Bh INTCON GIE EEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
Bank 1
80h INDF Uses contents of FSR to address data memory (not a physical register) ---- ---- ---- ----
81h OPTION_REG RBPU INTEDG T0CS T0SE PSA PS2 PS1 PS0 1111 1111 1111 1111
82h PCL Low order 8 bits of Program Counter (PC) 0000 0000 0000 0000
83h STATUS (2) IRP RP1 RP0 TO PD Z DC C 0001 1xxx 000q quuu
84h FSR Indirect data memory address pointer 0 xxxx xxxx uuuu uuuu
85h TRISA — — — PORTA data direction register ---1 1111 ---1 1111
86h TRISB PORTB data direction register 1111 1111 1111 1111
89h EECON2 EEPROM control register 2 (not a physical register) ---- ---- ---- ----
0Ah PCLATH — — — Write buffer for upper 5 bits of the PC (1) ---0 0000 ---0 0000
0Bh INTCON GIE EEIE T0IE INTE RBIE T0IF INTF RBIF 0000 000x 0000 000u
Legend: x = unknown, u = unchanged. - = unimplemented read as '0', q = value depends on condition.
Note 1: The upper byte of the program counter is not directly accessible. PCLATH is a slave register for PC<12:8>. The contents
of PCLATH can be transferred to the upper byte of the program counter, but the contents of PC<12:8> is never transferred
to PCLATH.
2: The TO and PD status bits in the STATUS register are not affected by a MCLR reset.
3: Other (non power-up) resets include: external reset through MCLR and the Watchdog Timer Reset.
4: On any device reset, these pins are configured as inputs.
5: This is the value that will be in the port output latch.
00 01
00h 80h
0Bh
0Ch
Addresses
Data map back
Memory (1) to Bank 0
4Fh
50h
(3) (3)
7Fh FFh
Bank 0 Bank 1
Data
bus D Q
WR
PORT
CK Q
N RA4 pin
Data Latch
VSS
D Q
WR
TRIS CK Q
Schmitt
TRIS Latch Trigger
input
buffer
RD TRIS
Q D
EN
EN
RD PORT
TRIS Latch
D Q
RD TRIS
WR TRIS TTL Q D
CK
Input
Buffer
RD Port EN
RD TRIS Latch
RB0/INT
Q D
Schmitt Trigger
Buffer RD Port
RD Port
EN
Set RBIF Note 1: TRISB = '1' enables weak pull-up
(if RBPU = '0' in the OPTION_REG register).
2: I/O pins have diode protection to VDD and VSS.
From other Q D
RB7:RB4 pins
EN
RD Port
Note 1: TRISB = '1' enables weak pull-up
(if RBPU = '0' in the OPTION_REG register).
2: I/O pins have diode protection to VDD and VSS.
Data bus
FOSC/4 0
PSout 8
1
Sync with
1 Internal TMR0
clocks
RA4/T0CKI Programmable 0 PSout
pin Prescaler
T0SE (2 cycle delay)
3
Set interrupt
PS2, PS1, PS0 PSA flag bit T0IF
T0CS on overflow
8
M 1
0
RA4/T0CKI U M
X SYNC
pin U 2 TMR0 reg
1 0
X Cycles
T0SE
T0CS
PSA Set flag bit T0IF
on Overflow
0
M 8-bit Prescaler
U
Watchdog 1 X 8
Timer
8 - to - 1MUX PS2:PS0
PSA
0 1
WDT Enable bit
MUX PSA
WDT
Time-out
Legend: x = unknown, u = unchanged, - = unimplemented read as '0', q = value depends upon condition. Shaded cells are not
used by data EEPROM.
R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u R/P-u
CP CP CP CP CP CP CP CP CP CP PWRTE WDTE FOSC1 FOSC0
bit13 bit0
R = Readable bit
P = Programmable bit
- n = Value at POR reset
u = unchanged
bit 13:4 CP: Code Protection bit
1 = Code protection off
0 = All memory is code protected
bit 3 PWRTE: Power-up Timer Enable bit
1 = Power-up timer is disabled
0 = Power-up timer is enabled
bit 2 WDTE: Watchdog Timer Enable bit
1 = WDT enabled
0 = WDT disabled
bit 1:0 FOSC1:FOSC0: Oscillator Selection bits
11 = RC oscillator
10 = HS oscillator
01 = XT oscillator
00 = LP oscillator
External
Reset
MCLR
SLEEP
WDT WDT
Module Time_Out
Reset
VDD rise
detect S
Power_on_Reset
VDD
OST/PWRT
OST
Chip_Reset
10-bit Ripple counter R Q
OSC1/
CLKIN
PWRT
On-chip
RC OSC(1) 10-bit Ripple counter
Enable PWRT
VDD
MCLR
INTERNAL POR
TPWRT
OST TIME-OUT
INTERNAL RESET
FIGURE 6-8: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED TO VDD): CASE 2
VDD
MCLR
INTERNAL POR
TPWRT
OST TIME-OUT
INTERNAL RESET
VDD
MCLR
INTERNAL POR
TPWRT
OST TIME-OUT
INTERNAL RESET
FIGURE 6-10: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED TO VDD): SLOW VDD RISE TIME
V1
VDD
MCLR
INTERNAL POR
TPWRT
OST TIME-OUT
INTERNAL RESET
When VDD rises very slowly, it is possible that the TPWRT time-out and TOST time-out will expire before VDD
has reached its final value. In this example, the chip will reset properly if, and only if, V1 ≥ VDD min.
GIE
External interrupt on RB0/INT pin is edge triggered: At the completion of a data EEPROM write cycle, flag
either rising if INTEDG bit (OPTION_REG<6>) is set, bit EEIF (EECON1<4>) will be set. The interrupt can be
or falling, if INTEDG bit is clear. When a valid edge enabled/disabled by setting/clearing enable bit EEIE
appears on the RB0/INT pin, the INTF bit (INTCON<6>) (Section 5.0).
(INTCON<1>) is set. This interrupt can be disabled by
clearing control bit INTE (INTCON<4>). Flag bit INTF 6.9 Context Saving During Interrupts
must be cleared in software via the interrupt service
During an interrupt, only the return PC value is saved
routine before re-enabling this interrupt. The INT
on the stack. Typically, users wish to save key register
interrupt can wake the processor from SLEEP
values during an interrupt (e.g., W register and STATUS
(Section 6.11) only if the INTE bit was set prior to going
register). This is implemented in software.
into SLEEP. The status of the GIE bit decides whether
the processor branches to the interrupt vector Example 6-1 stores and restores the STATUS and W
following wake-up. register’s values. The User defined registers, W_TEMP
and STATUS_TEMP are the temporary storage
6.8.2 TMR0 INTERRUPT locations for the W and STATUS registers values.
An overflow (FFh → 00h) in TMR0 will set flag bit T0IF Example 6-1 does the following:
(INTCON<2>). The interrupt can be enabled/disabled a) Stores the W register.
by setting/clearing enable bit T0IE (INTCON<5>) b) Stores the STATUS register in STATUS_TEMP.
(Section 4.0).
c) Executes the Interrupt Service Routine code.
6.8.3 PORB INTERRUPT d) Restores the STATUS (and bank select bit)
register.
An input change on PORTB<7:4> sets flag bit RBIF
e) Restores the W register.
(INTCON<0>). The interrupt can be enabled/disabled
by setting/clearing enable bit RBIE (INTCON<3>)
(Section 3.2).
Note 1: For a change on the I/O pin to be
recognized, the pulse width must be at
least TCY wide.
0
M Postscaler
WDT Timer 1 U
• X 8
8 - to -1 MUX PS2:PS0
PSA
WDT
Enable Bit
• To TMR0 (Figure 4-2)
0 1
MUX PSA
WDT
Time-out
2007h Config. bits (2) (2) (2) (2) PWRTE(1) WDTE FOSC1 FOSC0 (2)
81h OPTION_REG RBPU INTEDG T0CS T0SE PSA PS2 PS1 PS0 1111 1111 1111 1111
Legend: x = unknown. Shaded cells are not used by the WDT.
Note 1: See Figure 6-1 for operation of the PWRTE bit.
2: See Figure 6-1 and Section 6.12 for operation of the Code and Data protection bits.
A device may be powered down (SLEEP) and later The device can wake-up from SLEEP through one of
powered up (Wake-up from SLEEP). the following events:
1. External reset input on MCLR pin.
6.11.1 SLEEP
2. WDT Wake-up (if WDT was enabled).
The Power-down mode is entered by executing the 3. Interrupt from RB0/INT pin, RB port change, or
SLEEP instruction. data EEPROM write complete.
If enabled, the Watchdog Timer is cleared (but keeps Peripherals cannot generate interrupts during SLEEP,
running), the PD bit (STATUS<3>) is cleared, the TO bit since no on-chip Q clocks are present.
(STATUS<4>) is set, and the oscillator driver is turned
The first event (MCLR reset) will cause a device reset.
off. The I/O ports maintain the status they had before
The two latter events are considered a continuation of
the SLEEP instruction was executed (driving high, low,
program execution. The TO and PD bits can be used to
or hi-impedance).
determine the cause of a device reset. The PD bit,
For the lowest current consumption in SLEEP mode, which is set on power-up, is cleared when SLEEP is
place all I/O pins at either at VDD or VSS, with no invoked. The TO bit is cleared if a WDT time-out
external circuitry drawing current from the I/O pins, and occurred (and caused wake-up).
disable external clocks. I/O pins that are hi-impedance
While the SLEEP instruction is being executed, the next
inputs should be pulled high or low externally to avoid
instruction (PC + 1) is pre-fetched. For the device to
switching currents caused by floating inputs. The
wake-up through an interrupt event, the corresponding
T0CKI input should also be at VDD or VSS. The
interrupt enable bit must be set (enabled). Wake-up
contribution from on-chip pull-ups on PORTB should be
occurs regardless of the state of the GIE bit. If the GIE
considered.
bit is clear (disabled), the device continues execution at
The MCLR pin must be at a logic high level (VIHMC). the instruction after the SLEEP instruction. If the GIE bit
It should be noted that a RESET generated by a WDT is set (enabled), the device executes the instruction
time-out does not drive the MCLR pin low. after the SLEEP instruction and then branches to the
interrupt address (0004h). In cases where the
execution of the instruction following SLEEP is not
desirable, the user should have a NOP after the
SLEEP instruction.
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OSC1
CLKOUT(4) TOST(2)
INT pin
INTF flag
(INTCON<1>) Interrupt Latency
(Note 2)
GIE bit Processor in
(INTCON<7>)
SLEEP
INSTRUCTION FLOW
PC PC PC+1 PC+2 PC+2 PC + 2 0004h 0005h
Instruction
fetched Inst(PC) = SLEEP Inst(PC + 1) Inst(PC + 2) Inst(0004h) Inst(0005h)
6.13 ID Locations
Four memory locations (2000h - 2004h) are designated
as ID locations to store checksum or other code
identification numbers. These locations are not
accessible during normal execution but are readable
and writable only during program/verify. Only the
four least significant bits of ID location are usable.
The MPLAB-ICE Universal In-Circuit Emulator is 8.5 PICSTART Plus Entry Level
intended to provide the product development engineer Development System
with a complete microcontroller design tool set for
PICmicro microcontrollers (MCUs). MPLAB-ICE is sup- The PICSTART programmer is an easy-to-use, low-
plied with the MPLAB Integrated Development Environ- cost prototype programmer. It connects to the PC via
ment (IDE), which allows editing, “make” and one of the COM (RS-232) ports. MPLAB Integrated
download, and source debugging from a single envi- Development Environment software makes using the
ronment. programmer simple and efficient. PICSTART Plus is not
recommended for production programming.
Interchangeable processor modules allow the system
to be easily reconfigured for emulation of different pro- PICSTART Plus supports all PIC12CXXX, PIC14C000,
cessors. The universal architecture of the MPLAB-ICE PIC16C5X, PIC16CXXX and PIC17CXX devices with
allows expansion to support all new Microchip micro- up to 40 pins. Larger pin count devices such as the
controllers. PIC16C923, PIC16C924 and PIC17C756 may be sup-
ported with an adapter socket. PICSTART Plus is CE
The MPLAB-ICE Emulator System has been designed compliant.
as a real-time emulation system with advanced fea-
tures that are generally found on more expensive devel-
opment tools. The PC compatible 386 (and higher)
machine platform and Microsoft Windows 3.x or
Windows 95 environment were chosen to best make
these features available to you, the end user.
MPLAB-ICE is available in two versions.
MPLAB-ICE 1000 is a basic, low-cost emulator system
with simple trace capabilities. It shares processor mod-
ules with the MPLAB-ICE 2000. This is a full-featured
emulator system with enhanced trace, trigger, and data
monitoring features. Both systems will operate across
the entire operating speed reange of the PICmicro
MCU.
TABLE 8-1:
24CXX HCS200
PIC12C5XX PIC14000 PIC16C5X PIC16CXXX PIC16C6X PIC16C7XX PIC16C8X PIC16C9XX PIC17C4X PIC17C7XX 25CXX HCS300
93CXX HCS301
Emulator Products
MPLAB™-ICE ü ü ü ü ü ü ü ü ü ü
MPLAB
Integrated
Development ü ü ü ü ü ü ü ü ü ü
Environment
Software Tools
MPLAB C17*
Compiler ü ü
fuzzyTECH-MP
Explorer/Edition
ü ü ü ü ü ü ü ü ü
Preliminary
Fuzzy Logic
Dev. Tool
Total Endurance
Software Model ü
PICSTARTPlus
Low-Cost ü ü ü ü ü ü ü ü ü ü
Programmers
SEEVAL
Designers Kit ü
PIC16F84A
SIMICE ü ü
PICDEM-14A ü
Demo Boards
PICDEM-1 ü ü ü ü
PICDEM-2 ü ü
DS35007A-page 39
PICDEM-3 ü
KEELOQ®
Evaluation Kit ü
KEELOQ
Transponder Kit ü
PIC16F84A
NOTES:
1. TppS2ppS
2. TppS
T
F Frequency T Time
Lowercase symbols (pp) and their meanings:
pp
2 to os,osc OSC1
ck CLKOUT ost oscillator start-up timer
cy cycle time pwrt power-up timer
io I/O port rbt RBx pins
inp INT pin t0 T0CKI
mc MCLR wdt watchdog timer
Uppercase symbols and their meanings:
S
F Fall P Period
H High R Rise
I Invalid (Hi-impedance) V Valid
L Low Z High Impedance
VDD/2
RL Pin CL
CL VSS
Pin
VSS
RL = 464Ω
CL = 50 pF for all pins except OSC2.
15 pF for OSC2 output.
OSC1
1 3 3 4 4
2
CLKOUT
OSC1
11
10
22
CLKOUT 23
13 12
19 18
14 16
I/O Pin
(input)
17 15
VDD
MCLR
30
Internal
POR
33
PWRT
Time-out 32
OSC
Time-out
Internal
RESET
Watchdog
Timer
RESET
31
34 34
I/O Pins
TABLE 9-5 RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER AND POWER-UP
TIMER REQUIREMENTS
Parameter
No. Sym Characteristic Min Typ† Max Units Conditions
30 TmcL MCLR Pulse Width (low) 2* — — µs VDD = 5.0V, extended
31 Twdt Watchdog Timer Time-out Period 7* 18 33 * ms VDD = 5.0V, extended
(No Prescaler)
32 Tost Oscillation Start-up Timer Period 1024TOSC ms TOSC = OSC1 period
33 Tpwrt Power-up Timer Period 28 * 72 132 * ms VDD = 5.0V, extended
34 TIOZ I/O Hi-impedance from MCLR — — 100 * ns
Low or reset
* These parameters are characterized but not tested.
† Data in "Typ" column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not
tested.
RA4/T0CKI
40 41
42
XXXXXXXXXX PIC16F84A-
XXXXXXXXXX 20/SS
AABBCDE 9822CAN
* Standard OTP marking consists of Microchip part number, year code, week code, facility code, mask
rev#, and assembly code. For OTP marking beyond this, certain price adders apply. Please check with
your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP price.
n 1 α
E1
A1
R
c L
A2
B1
β
B p
eB
E1
p
E
2
B n 1
X
α
45 °
L
R2
c
A
A1
R1
φ
β L1 A2
E1
E
p
B 2
n 1
α
L
R2
c
A
A1
R1
φ
L1 A2
β
PIC16CR83/
Difference PIC16C84 PIC16F83/F84 PIC16F84A
CR84
Voltage Range 2.0V - 6.0V 2.0V - 6.0V 2.0V - 6.0V 2.0V - 5.5V
(-40°C to +85°C) (-40°C to +85°C) (-40°C to +85°C) (-40°C to +125°C)
Supply Current IDD (typ) = 60µA IDD (typ) = 15µA IDD (typ) = 15µA IDD (typ) = 15µA
(IDD). See parame- IDD (max) = 400µA IDD (max) = 45µA IDD (max) = 45µA IDD (max) = 45µA
ter # D014 in the (LP osc, FOSC = (LP osc, FOSC = (LP osc, FOSC = (LP osc, FOSC =
electrical spec’s for 32kHz, VDD = 2.0V, 32kHz, VDD = 2.0V, 32kHz, VDD = 2.0V, 32kHz, VDD = 2.0V,
more detail. WDT disabled) WDT disabled) WDT disabled) WDT disabled)
Power-down Current IPD (typ) = 26µA IPD (typ) = 0.4µA IPD (typ) = 0.4µA IPD (typ) = 0.4µA
(IPD). See parame- IPD (max) = 100µA IPD (max) = 9µA IPD (max) = 6µA IPD (max) = 9µA
ters # D020, D021, (VDD = 2.0V, WDT (VDD = 2.0V, WDT (VDD = 2.0V, WDT (VDD = 2.0V, WDT
and D021A in the disabled, industrial) disabled, industrial) disabled, industrial) disabled, industrial)
electrical spec’s for
more detail.
Input Low Voltage VIL (max) = 0.2VDD VIL (max) = 0.1VDD VIL (max) = 0.1VDD VIL (max) = 0.1VDD
(VIL). See parame- (Osc1, RC mode) (Osc1, RC mode) (Osc1, RC mode) (Osc1, RC mode)
ters # D032 and
D034 in the electri-
cal spec’s for more
detail.
Input High Voltage VIH (min) = 0.36VDD VIH (min) = 2.4V VIH (min) = 2.4V VIH (min) = 2.4V
(VIH). See parame- (I/O Ports with TTL, (I/O Ports with TTL, (I/O Ports with TTL, (I/O Ports with TTL,
ter # D040 in the 4.5V ≤ VDD ≤ 5.5V) 4.5V ≤ VDD ≤ 5.5V) 4.5V ≤ VDD ≤ 5.5V) 4.5V ≤ VDD ≤ 5.5V)
electrical spec’s for
more detail.
Data EEPROM TDEW (typ) = 10ms TDEW (typ) = 10ms TDEW (typ) = 10ms TDEW (typ) = 4ms
Memory TDEW (max) = 20ms TDEW (max) = 20ms TDEW (max) = 20ms TDEW (max) = 10ms
Erase/Write cycle
time (TDEW). See
parameter # D122 in
the electrical spec’s
for more detail.
PIC16CR83/
Difference PIC16C84 PIC16F83/F84 PIC16F84A
CR84
Port Output TioR, TioF (max) = TioR, TioF (max) = TioR, TioF (max) = TioR, TioF (max) =
Rise/Fall time 25ns (C84) 35ns (C84) 35ns (C84) 35ns (C84)
(TioR, TioF). See TioR, TioF (max) = TioR, TioF (max) = TioR, TioF (max) = TioR, TioF (max) =
parameters #20, 60ns (LC84) 70ns (LC84) 70ns (LC84) 70ns (LC84)
20A, 21, and 21A in
the electrical spec’s
for more detail.
Recommended REXT = 3kΩ - 100kΩ REXT = 5kΩ - 100kΩ REXT = 5kΩ - 100kΩ REXT = 3kΩ - 100kΩ
value of REXT for RC
oscillator circuits
Packages PDIP, SOIC PDIP, SOIC PDIP, SOIC PDIP, SOIC, SSOP
R
RAM. See Data Memory
Reader Response .............................................................. 66
Register File ......................................................................... 6
Reset ............................................................................ 21, 23
Block Diagram ............................................................ 23
Reset Conditions for All Registers ............................. 24
Reset Conditions for Program Counter ...................... 24
Reset Conditions for STATUS Register ..................... 24
WDT Reset. See Watchdog Timer (WDT)
Revision History ................................................................. 59
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________ FAX: (______) _________ - _________
Application (optional):
Would you like a reply? Y N
Questions:
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this data sheet easy to follow? If not, why?
4. What additions to the data sheet do you think would enhance the structure and subject?
5. What deletions from the data sheet could be made without affecting the overall usefulness?
8. How would you improve our software, systems, and silicon products?
Package P = PDIP
SO = SOIC (Gull Wing, 300 mil body) Note 1: F = Standard VDD range
SS = SSOP LF = Extended VDD range
2: T = in tape and reel - SOIC, SSOP
Pattern 3-digit Pattern Code for QTP, ROM (blank otherwise) packages only.
All rights reserved. © 1999 Microchip Technology Incorporated. Printed in the USA. 11/99 Printed on recycled paper.
Information contained in this publication regarding device applications and the like is intended for suggestion only and may be superseded by updates. No representation or warranty is given and no liability is assumed
by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip’s products
as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. The Microchip
logo and name are registered trademarks of Microchip Technology Inc. in the U.S.A. and other countries. All rights reserved. All other trademarks mentioned herein are the property of their respective companies.