电子工程世界电子工程世界电子工程世界

产品描述

搜索
 

PIC16LF84A-04/SO

器件型号:PIC16LF84A-04/SO
器件类别:嵌入式处理器和控制器   
厂商名称:Microchip
厂商官网:https://www.microchip.com
下载文档

器件描述

PIC 微控制器 IC series 8-位 4MHz 1.75KB(1K x 14) 闪存

参数
产品属性属性值
属性:参数值
商品目录:MICROCHIP(美国微芯)

文档预览

PIC16F84A
18-pin
Enhanced
FLASH/EEPROM 8-Bit Microcontroller
High Performance RISC CPU Features:
• Only 35 single word instructions to learn
• All instructions single-cycle except for program
branches which are two-cycle
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
• 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
• 15 Special Function Hardware registers
• Eight-level deep hardware stack
• Direct, indirect and relative addressing modes
• Four interrupt sources:
- External RB0/INT pin
- TMR0 timer overflow
- PORTB<7:4> interrupt-on-change
- Data EEPROM write complete
Pin Diagrams
PDIP, SOIC
RA2
RA3
RA4/T0CKI
MCLR
V
SS
RB0/INT
RB1
RB2
RB3
1
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
RB7
RB6
RB5
RB4
PIC16F84A
SSOP
RA2
RA3
RA4/T0CKI
MCLR
V
SS
V
SS
RB0/INT
RB1
RB2
RB3
1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
V
DD
RB7
RB6
RB5
RB4
PIC16F84A
Peripheral Features:
• 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
• TMR0: 8-bit timer/counter with 8-bit
programmable prescaler
Special Microcontroller Features:
• 10,000 erase/write cycles
Enhanced
FLASH
Program memory typical
• 10,000,000 typical erase/write cycles EEPROM
Data memory typical
• EEPROM Data Retention > 40 years
• In-Circuit Serial Programming™ (ICSP™) - via
two 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
CMOS Enhanced FLASH/EEPROM
Technology:
• Low power, high speed technology
• Fully static design
• Wide operating voltage range:
- Commercial: 2.0V to 5.5V
- Industrial:
2.0V to 5.5V
• Low power consumption:
- < 2 mA typical @ 5V, 4 MHz
- 15
A
typical @ 2V, 32 kHz
- < 0.5
A
typical standby current @ 2V
2001-2013 Microchip Technology Inc.
DS35007C-page 1
PIC16F84A
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 3
2.0 Memory Organization ................................................................................................................................................................... 5
3.0 Data EEPROM Memory ............................................................................................................................................................. 13
4.0 I/O Ports ..................................................................................................................................................................................... 15
5.0 Timer0 Module ........................................................................................................................................................................... 19
6.0 Special Features of the CPU ...................................................................................................................................................... 21
7.0 Instruction Set Summary ............................................................................................................................................................ 35
8.0 Development Support................................................................................................................................................................. 43
9.0 Electrical Characteristics ............................................................................................................................................................ 47
10.0 DC/AC Characteristic Graphs .................................................................................................................................................... 59
11.0 Packaging Information................................................................................................................................................................ 69
Appendix A: Revision History .............................................................................................................................................................. 77
Appendix B: Conversion Considerations.............................................................................................................................................. 78
Appendix C: Migration from Baseline to
Mid-range Devices80
INDEX .................................................................................................................................................................................................. 81
The Microchip Web Site ....................................................................................................................................................................... 85
Customer Change Notification Service ................................................................................................................................................ 85
Customer Support ................................................................................................................................................................................ 85
Reader Response ................................................................................................................................................................................ 86
PIC16F84A Product Identification System ........................................................................................................................................... 87
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at
docerrors@microchip.com
or fax the
Reader Response Form
in the back of this data sheet to (480) 792-4150. We
welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site;
http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at
www.microchip.com
to receive the most current information on all of our products.
DS35007C-page 2
2001-2013 Microchip Technology Inc.
PIC16F84A
1.0
DEVICE OVERVIEW
This document contains device specific information for
the operation of the PIC16F84A device. Additional
information may be found in the PIC
®
Mid-Range Ref-
erence Manual, (DS33023), which may be downloaded
from the Microchip website. The Reference Manual
should be considered a complementary document to
this data sheet, and is highly recommended reading for
a better understanding of the device architecture and
operation of the peripheral modules.
The PIC16F84A belongs to the mid-range family of the
PIC
®
microcontroller devices. A block diagram of the
device is shown in Figure 1-1.
The program memory contains 1K words, which trans-
lates to 1024 instructions, since each 14-bit program
memory word is the same width as each device instruc-
tion. The data memory (RAM) contains 68 bytes. Data
EEPROM is 64 bytes.
There are also 13 I/O pins that are user-configured on
a pin-to-pin basis. Some pins are multiplexed with other
device functions. These functions include:
• External interrupt
• Change on PORTB interrupt
• Timer0 clock input
Table 1-1 details the pinout of the device with descrip-
tions and details for each pin.
FIGURE 1-1:
PIC16F84A BLOCK DIAGRAM
13
Data Bus
Program Counter
8
EEPROM Data Memory
FLASH
Program
Memory
1K x 14
8 Level Stack
(13-bit)
RAM
File Registers
68 x 8
EEDATA
EEPROM
Data Memory
64 x 8
Program
Bus
14
7
RAM Addr
EEADR
Instruction Register
5
Direct Addr
Addr Mux
7
Indirect
Addr
TMR0
FSR reg
RA4/T0CKI
STATUS reg
8
Power-up
Timer
Instruction
Decode &
Control
Oscillator
Start-up Timer
Power-on
Reset
Watchdog
Timer
W reg
ALU
MUX
8
I/O Ports
RA3:RA0
RB7:RB1
Timing
Generation
RB0/INT
OSC2/CLKOUT
OSC1/CLKIN
MCLR
V
DD
, V
SS
2001-2013 Microchip Technology Inc.
DS35007C-page 3
PIC16F84A
TABLE 1-1:
Pin Name
OSC1/CLKIN
OSC2/CLKOUT
PIC16F84A PINOUT DESCRIPTION
PDIP
No.
16
15
SOIC
No.
16
15
SSOP
No.
18
19
I/O/P
Type
I
O
Buffer
Type
Description
ST/CMOS
(3)
Oscillator crystal input/external clock source input.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode. In RC mode,
OSC2 pin outputs CLKOUT, which has 1/4 the
frequency of OSC1 and denotes the instruction
cycle rate.
Master Clear (Reset) input/programming voltage
input. This pin is an active low RESET to the device.
PORTA is a bi-directional I/O port.
MCLR
4
4
4
I/P
ST
RA0
RA1
RA2
RA3
RA4/T0CKI
17
18
1
2
3
17
18
1
2
3
19
20
1
2
3
I/O
I/O
I/O
I/O
I/O
TTL
TTL
TTL
TTL
ST
Can also be selected to be the clock input to the
TMR0 timer/counter. Output is open drain type.
PORTB is a bi-directional I/O port. PORTB can be
software programmed for internal weak pull-up on
all inputs.
RB0/INT
RB1
RB2
RB3
RB4
RB5
RB6
RB7
V
SS
V
DD
Legend: I= input
6
7
8
9
10
11
12
13
5
14
6
7
8
9
10
11
12
13
5
14
7
8
9
10
11
12
13
14
5,6
15,16
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
P
P
TTL/ST
(1)
TTL
TTL
TTL
TTL
TTL
TTL/ST
(2)
TTL/ST
(2)
RB0/INT can also be selected as an external
interrupt pin.
Interrupt-on-change pin.
Interrupt-on-change pin.
Interrupt-on-change pin.
Serial programming clock.
Interrupt-on-change pin.
Serial programming data.
Ground reference for logic and I/O pins.
Positive supply for logic and I/O pins.
O = Output
I/O = Input/Output
P = Power
— = Not used
TTL = TTL input
ST = Schmitt Trigger input
Note 1:
This buffer is a Schmitt Trigger input when configured as the external interrupt.
2:
This buffer is a Schmitt Trigger input when used in Serial Programming mode.
3:
This buffer is a Schmitt Trigger input when configured in RC oscillator mode and a CMOS input otherwise.
DS35007C-page 4
2001-2013 Microchip Technology Inc.
PIC16F84A
2.0
MEMORY ORGANIZATION
FIGURE 2-1:
There are two memory blocks in the PIC16F84A.
These are the program memory and the data memory.
Each block has its own bus, so that access to each
block can occur during the same oscillator cycle.
The data memory can further be broken down into the
general purpose RAM and the Special Function
Registers (SFRs). The operation of the SFRs that
control the “core” are described here. The SFRs used
to control the peripheral modules are described in the
section discussing each individual peripheral module.
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,
an indirect address pointer specifies the address of the
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 3.0.
Additional information on device memory may be found
in the PIC
®
Mid-Range Reference Manual, (DS33023).
PROGRAM MEMORY MAP
AND STACK - PIC16F84A
PC<12:0>
13
CALL, RETURN
RETFIE, RETLW
Stack Level 1
Stack Level 8
RESET Vector
Peripheral Interrupt Vector
0000h
0004h
2.1
Program Memory Organization
User Memory
Space
3FFh
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 loca-
tion above the physically implemented address will
cause a wraparound. For example, for locations 20h,
420h, 820h, C20h, 1020h, 1420h, 1820h, and 1C20h,
the instruction will be the same.
The RESET vector is at 0000h and the interrupt vector
is at 0004h.
1FFFh
2001-2013 Microchip Technology Inc.
DS35007C-page 5
小广播

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 大学堂 TI培训 Datasheet 电子工程

器件索引   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
搜索索引   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

北京市海淀区知春路23号集成电路设计园量子银座1305 电话:(010)82350740 邮编:100191

电子工程世界版权所有 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2021 EEWORLD.com.cn, Inc. All rights reserved