PIC16C773-I/SP Microchip Technology, PIC16C773-I/SP Datasheet - Page 32

IC MCU OTP 4KX14 A/D PWM 28DIP

PIC16C773-I/SP

Manufacturer Part Number
PIC16C773-I/SP
Description
IC MCU OTP 4KX14 A/D PWM 28DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16C773-I/SP

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Number Of I /o
22
Program Memory Type
OTP
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 6x12b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
28-DIP (0.300", 7.62mm)
Controller Family/series
PIC16C
No. Of I/o's
22
Ram Memory Size
256Byte
Cpu Speed
20MHz
No. Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
PIC16C773-04I/SP
PIC16C77X
3.3
PORTC is an 8-bit wide bi-directional port. The corre-
sponding data direction register is TRISC. Setting a
TRISC bit (=1) will make the corresponding PORTC pin
an input, i.e., put the corresponding output driver in a
hi-impedance mode. Clearing a TRISC bit (=0) will
make the corresponding PORTC pin an output, i.e., put
the contents of the output latch on the selected pin.
PORTC is multiplexed with several peripheral functions
(Table
buffers.
When enabling peripheral functions, care should be
taken in defining TRIS bits for each PORTC pin. Some
peripherals override the TRIS bit to make a pin an out-
put, while other peripherals override the TRIS bit to
make a pin an input. Since the TRIS bit override is in
effect while the peripheral is enabled, read-mod-
ify-write instructions (BSF, BCF, XORWF) with TRISC
as destination should be avoided. The user should refer
to the corresponding peripheral section for the correct
TRIS bit settings.
EXAMPLE 3-1:
BCF
CLRF
BSF
MOVLW
MOVWF
DS30275A-page 32
3-5). PORTC pins have Schmitt Trigger input
STATUS, RP0
PORTC
STATUS, RP0
0xCF
TRISC
PORTC and the TRISC Register
INITIALIZING PORTC
; Select Bank 0
; Initialize PORTC by
; clearing output
; data latches
; Select Bank 1
; Value used to
; initialize data
; direction
; Set RC<3:0> as inputs
; RC<5:4> as outputs
; RC<7:6> as inputs
Advance Information
FIGURE 3-9:
Note 1: I/O pins have diode protection to V
PORT/PERIPHERAL Select
Peripheral Data Out
Data bus
Peripheral input
Peripheral
OE
WR
TRIS
WR
PORT
(3)
2: Port/Peripheral select signal selects between port
3: Peripheral OE (output enable) is only activated if
data and peripheral output.
peripheral select is active.
RD
PORT
TRIS Latch
Data Latch
D
D
RD TRIS
CK
CK
PORTC BLOCK DIAGRAM
(PERIPHERAL OUTPUT
OVERRIDE)
Q
Q
Q
Q
0
1
(2)
1999 Microchip Technology Inc.
Q
EN
D
Schmitt
Trigger
DD
V
V
N
P
and V
SS
DD
I/O
pin
SS
(1)
.

Related parts for PIC16C773-I/SP