PIC16C662-20/TQ Microchip Technology, PIC16C662-20/TQ Datasheet - Page 33

no-image

PIC16C662-20/TQ

Manufacturer Part Number
PIC16C662-20/TQ
Description
8-Bit EPROM Microcontrollers with Analog Comparators
Manufacturer
Microchip Technology
Datasheet
EXAMPLE 5-2:
CLRF
BSF
MOVLW
MOVWF
TABLE 5-3:
TABLE 5-4:
RB0/INT
RB1
RB2
RB3
RB4
RB5
RB6
RB7
Legend: ST = Schmitt Trigger input, TTL = TTL input
Note 1: This buffer is a Schmitt Trigger input when configured as the external interrupt.
Address Name
06h
86h
81h
Legend: x = unknown, u = unchanged, shaded cells are not used by PORTB.
1996 Microchip Technology Inc.
Name
2: This buffer is a Schmitt Trigger input when used in serial programming mode.
PORTB
STATUS, RP0
0xCF
TRISB
PORTB
TRISB
OPTION
Bit #
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
PORTB FUNCTIONS
SUMMARY OF REGISTERS ASSOCIATED WITH PORTB
INITIALIZING PORTB
TRISB7
RBPU
Bit 7
RB7
; Initialize PORTB by
; clearing output
; data latches
; Select Bank 1
; Value used to
; initialize data
; direction
; Set RB<3:0> as inputs
; RB<5:4> as outputs
; RB<7:6> as inputs
Buffer Type
TTL/ST
TTL/ST
TTL/ST
INTEDG
TRISB6
TTL
TTL
TTL
TTL
TTL
Bit 6
RB6
(1)
(2)
(2)
TRISB5 TRISB4 TRISB3 TRISB2 TRISB1 TRISB0 1111 1111
T0CS
Bit 5
RB5
Input/output 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. 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). Internal software programmable
weak pull-up. Serial programming clock pin.
Input/output pin (with interrupt on change). Internal software programmable
weak pull-up. Serial programming data pin.
T0SE
Bit 4
RB4
Preliminary
PIC16C64X & PIC16C66X
Bit 3
RB3
PSA
Bit 2
RB2
PS2
Function
Bit 1
RB1
PS1
Bit 0
RB0
PS0
xxxx xxxx
1111 1111
Value on:
POR,
BOR
DS30559A-page 33
uuuu uuuu
1111 1111
1111 1111
Value on
all other
resets

Related parts for PIC16C662-20/TQ