Datasheets»Microchip Technology»PIC16F87XATI/SP Datasheet

PIC16F87XATI/SP Datasheet - Page 45

Download or read online Microchip Technology PIC16F87XATI/SP 28/40/44-Pin Enhanced Flash Microcontrollers pdf datasheet.



Page
45 of 234
prevnext
TABLE 4-3:
PORTB FUNCTIONS
Name
Bit#
Buffer
(1)
RB0/INT
bit 0
TTL/ST
RB1
bit 1
TTL
RB2
bit 2
TTL
(3)
RB3/PGM
bit 3
TTL
RB4
bit 4
TTL
RB5
bit 5
TTL
(2)
RB6/PGC
bit 6
TTL/ST
(2)
RB7/PGD
bit 7
TTL/ST
Legend:
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 or in-circuit debugger.
3:
Low-Voltage ICSP Programming (LVP) is enabled by default which disables the RB3 I/O function. LVP
must be disabled to enable RB3 as an I/O pin and allow maximum compatibility to the other 28-pin and
40-pin mid-range devices.
TABLE 4-4:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
Address
Name
Bit 7
06h, 106h PORTB
RB7
86h, 186h TRISB
PORTB Data Direction Register
81h, 181h OPTION_REG RBPU
INTEDG T0CS T0SE
Legend: x = unknown, u = unchanged. Shaded cells are not used by PORTB.
 2001-2013 Microchip Technology Inc.
Function
Input/output pin or external interrupt input. Internal software programmable
weak pull-up.
Input/output pin. Internal software programmable weak pull-up.
Input/output pin. Internal software programmable weak pull-up.
Input/output pin or programming pin in LVP mode. Internal software
programmable weak pull-up.
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up.
Input/output pin (with interrupt-on-change). Internal software programmable
weak pull-up.
Input/output pin (with interrupt-on-change) or in-circuit debugger pin.
Internal software programmable weak pull-up. Serial programming clock.
Input/output pin (with interrupt-on-change) or in-circuit debugger pin.
Internal software programmable weak pull-up. Serial programming data.
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2 Bit 1
RB6
RB5
RB4
RB3
RB2
PSA
PS2
PIC16F87XA
Value on
Value on:
Bit 0
all other
POR, BOR
Resets
RB1
RB0 xxxx xxxx uuuu uuuu
1111 1111 1111 1111
PS1
PS0 1111 1111 1111 1111
DS39582C-page 45

Comments to this Datasheet