Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

PIC16F84A Datasheet(PDF) 23 Page - Microchip Technology

Part # PIC16F84A
Description  18-pin Flash/EEPROM 8-Bit Microcontrollers
Download  124 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F84A Datasheet(HTML) 23 Page - Microchip Technology

Back Button PIC16F84A Datasheet HTML 19Page - Microchip Technology PIC16F84A Datasheet HTML 20Page - Microchip Technology PIC16F84A Datasheet HTML 21Page - Microchip Technology PIC16F84A Datasheet HTML 22Page - Microchip Technology PIC16F84A Datasheet HTML 23Page - Microchip Technology PIC16F84A Datasheet HTML 24Page - Microchip Technology PIC16F84A Datasheet HTML 25Page - Microchip Technology PIC16F84A Datasheet HTML 26Page - Microchip Technology PIC16F84A Datasheet HTML 27Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 124 page
background image
PIC16F8X
© 1998 Microchip Technology Inc.
DS30430C-page 23
5.2
PORTB and TRISB Registers
PORTB is an 8-bit wide bi-directional port. The
corresponding data direction register is TRISB. A '1' on
any bit in the TRISB register puts the corresponding
output driver in a hi-impedance mode. A '0' on any bit
in the TRISB register puts the contents of the output
latch on the selected pin(s).
Each of the PORTB pins have a weak internal pull-up.
A single control bit can turn on all the pull-ups. This is
done by clearing the RBPU (OPTION_REG<7>) bit.
The weak pull-up is automatically turned off when the
port pin is configured as an output. The pull-ups are
disabled on a Power-on Reset.
Four of PORTB’s pins, RB7:RB4, have an interrupt on
change feature. Only pins configured as inputs can
cause this interrupt to occur (i.e., any RB7:RB4 pin
configured as an output is excluded from the interrupt
on change comparison). The pins value in input mode
are compared with the old value latched on the last
read of PORTB. The “mismatch” outputs of the pins are
OR’ed
together
to
generate
the
RB
port
change interrupt.
FIGURE 5-3:
BLOCK DIAGRAM OF PINS
RB7:RB4
This interrupt can wake the device from SLEEP. The
user, in the interrupt service routine, can clear the
interrupt in the following manner:
a)
Read (or write) PORTB. This will end the mis-
match condition.
b)
Clear flag bit RBIF.
A mismatch condition will continue to set the RBIF bit.
Reading PORTB will end the mismatch condition, and
allow the RBIF bit to be cleared.
This interrupt on mismatch feature, together with
software configurable pull-ups on these four pins allow
easy interface to a key pad and make it possible for
wake-up on key-depression (see AN552 in the
Embedded Control Handbook).
The interrupt on change feature is recommended for
wake-up on key depression operation and operations
where PORTB is only used for the interrupt on change
feature. Polling of PORTB is not recommended while
using the interrupt on change feature.
FIGURE 5-4:
BLOCK DIAGRAM OF PINS
RB3:RB0
RBPU(1)
Data Latch
From other
P
VDD
Q
D
CK
Q
D
CK
Q
D
EN
Q
D
EN
Data bus
WR Port
WR TRIS
Set RBIF
TRIS Latch
RD TRIS
RD Port
RB7:RB4 pins
weak
pull-up
RD Port
Latch
TTL
Input
Buffer
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.
I/O
pin(2)
Note 1: For a change on the I/O pin to be
recognized, the pulse width must be at
least TCY (4/fOSC) wide.
RBPU(1)
I/O
pin(2)
Data Latch
P
VDD
Q
D
CK
Q
D
CK
Q
D
EN
Data bus
WR Port
WR TRIS
RD TRIS
RD Port
weak
pull-up
RD Port
RB0/INT
TTL
Input
Buffer
Schmitt Trigger
Buffer
TRIS Latch
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.


Similar Part No. - PIC16F84A

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC16F84A MICROCHIP-PIC16F84A Datasheet
494Kb / 68P
   18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
1999
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 88P
   18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller
2001
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12 2001-2013
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12
PIC16F84A MICROCHIP-PIC16F84A Datasheet
1Mb / 337P
   8-Bit CMOS Microcontrollers
01/18/02
More results

Similar Description - PIC16F84A

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC16F8X MICROCHIP-PIC16F8X_99 Datasheet
1Mb / 124P
   18-pin Flash/EEPROM 8-Bit Microcontrollers
1998 - 1999
PIC16F8X MICROCHIP-PIC16F8X_13 Datasheet
1Mb / 128P
   18-pin Flash/EEPROM 8-Bit Microcontrollers
11/29/12 1996-2013
PIC16F84A-04-P MICROCHIP-PIC16F84A-04-P Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12
PIC16F84A MICROCHIP-PIC16F84A Datasheet
494Kb / 68P
   18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller
1999
35007B MICROCHIP-35007B Datasheet
1Mb / 88P
   18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller
2001
PIC16F84A MICROCHIP-PIC16F84A_07 Datasheet
1Mb / 88P
   18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller
2001
PIC16F84A MICROCHIP-PIC16F84A_13 Datasheet
1Mb / 90P
   18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller
11/29/12 2001-2013
PIC12F1501-I MICROCHIP-PIC12F1501-I Datasheet
3Mb / 278P
   8-Pin Flash, 8-Bit Microcontrollers
08/02/11
PIC12LF1552 MICROCHIP-PIC12LF1552 Datasheet
4Mb / 260P
   8-Pin Flash, 8-Bit Microcontrollers
2013
PIC12F519 MICROCHIP-PIC12F519_08 Datasheet
1Mb / 96P
   8-Pin, 8-Bit Flash Microcontrollers
2008
More results


Html Pages

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 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com