DATA SHEET PIC Microcontrollers

DATA SHEET PIC Microcontrollers
DATA SHEET
PIC Microcontrollers
Order code
73-2634
Manufacturer code
PIC16F84A-04/P
Description
PIC16F84A-04/P MICROCONTROLLER
PIC Microcontrollers
The enclosed information is believed to be correct, Information may change ‘without notice’ due to
product improvement. Users should ensure that the product is suitable for their use. E. & O. E.
Sales: 01206 751166
[email protected]
Technical: 01206 835555
[email protected]
Page 1 of 3
Revision A
04/07/2003
Fax: 01206 7551188
www.rapidelectronics.co.uk
Please note: the full manual for this product is available for download from www.microchip.com
M
PIC16F84A
18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
Devices Included in this Data Sheet:
Pin Diagrams
• PIC16F84A
• Extended voltage range device available
(PIC16LF84A)
PDIP, SOIC
• 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
•1
18
RA1
RA3
2
17
RA0
RA4/T0CKI
3
16
OSC1/CLKIN
MCLR
4
15
OSC2/CLKOUT
VSS
5
14
VDD
RB0/INT
6
13
RB7
RB1
7
12
RB6
RB2
8
11
RB5
RB3
9
10
RB4
SSOP
•1
20
RA1
RA3
2
19
RA0
RA4/T0CKI
3
18
OSC1/CLKIN
MCLR
VSS
4
17
OSC2/CLKOUT
16
VSS
6
RB0/INT
7
14
VDD
VDD
RB7
RB1
8
13
RB6
RB2
9
10
12
11
RB5
RB3
• 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
5
PIC16F84A
RA2
Peripheral Features:
15
RB4
CMOS Enhanced Flash/EERPOM Technology:
Special Microcontroller Features:
• 1000 erase/write cycles Enhanced Flash program
memory
• 1,000,000 typical erase/write cycles EEPROM data
memory
• 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
 1998 Microchip Technology Inc.
PIC16F84A
High Performance RISC CPU Features:
RA2
• 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
Preliminary
DS35007A-page 1
PIC16F84A
TABLE 1-1
PIC16F84A PINOUT DESCRIPTION
Pin Name
DIP
No.
SOIC
No.
SSOP
No.
I/O/P
Type
Buffer
Type
OSC1/CLKIN
16
16
18
I
OSC2/CLKOUT
15
15
19
O
—
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.
MCLR
4
4
4
I/P
ST
Master clear (reset) input/programming voltage input. This
pin is an active low reset to the device.
RA0
17
17
19
I/O
TTL
RA1
18
18
20
I/O
TTL
RA2
1
1
1
I/O
TTL
RA3
2
2
2
I/O
TTL
RA4/T0CKI
3
3
3
I/O
ST
Description
ST/CMOS (3) Oscillator crystal input/external clock source input.
PORTA is a bi-directional I/O port.
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
6
6
7
I/O
TTL/ST (1)
RB1
7
7
8
I/O
TTL
RB2
8
8
9
I/O
TTL
RB3
9
9
10
I/O
TTL
RB4
10
10
11
I/O
TTL
RB5
11
11
12
I/O
TTL
RB0/INT can also be selected as an external interrupt
pin.
Interrupt on change pin.
Interrupt on change pin.
(2)
RB6
12
12
13
I/O
TTL/ST
RB7
13
13
14
I/O
TTL/ST (2)
Interrupt on change pin. Serial programming clock.
Interrupt on change pin. Serial programming data.
VSS
5
5
5,6
P
—
Ground reference for logic and I/O pins.
VDD
14
14
15,16
P
—
Positive supply for logic and I/O pins.
Legend: I= input
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.
DS35007A-page 4
Preliminary
 1998 Microchip Technology Inc.
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement