PIC16C662-20/TQ Microchip Technology, PIC16C662-20/TQ Datasheet - Page 33
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC16C662-20/TQ
Manufacturer Part Number
PIC16C662-20/TQ
Description
8-Bit EPROM Microcontrollers with Analog Comparators
Manufacturer
Microchip Technology
Datasheet
1.PIC16C662-20TQ.pdf
(136 pages)
- Current page: 33 of 136
- Download datasheet (635Kb)
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
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C662-04/SO](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![PIC16C662-04/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-10/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662/JW](/photos/6/63/66338/150-40-cdip_tmb.jpg)
Part Number:
Description:
IC MCU EPROM 4KX14 COMP 40CDIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04E/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44-MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C662-04/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 4KX14 COMP 44TQFP
Manufacturer:
Microchip Technology
Datasheet: