PIC16C662-04E/P Microchip Technology, PIC16C662-04E/P Datasheet - Page 33
![IC MCU OTP 4KX14 COMP 40DIP](/photos/6/61/66192/150-40-dip_sml.jpg)
PIC16C662-04E/P
Manufacturer Part Number
PIC16C662-04E/P
Description
IC MCU OTP 4KX14 COMP 40DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16C662-04E/P
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, LED, POR, WDT
Number Of I /o
33
Program Memory Size
7KB (4K x 14)
Program Memory Type
OTP
Ram Size
176 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C662-04E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC16C662-04E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
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