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

no-image

PIC16C662-20/TQ

Manufacturer Part Number
PIC16C662-20/TQ
Description
8-Bit EPROM Microcontrollers with Analog Comparators
Manufacturer
Microchip Technology
Datasheet
PIC16C64X & PIC16C66X
5.3
PORTC is an 8-bit bi-directional port. Each pin is indi-
vidually configurable as an input or output through the
TRISC register. PORTC pins have Schmitt Trigger
input buffers.
EXAMPLE 5-3:
CLRF
BSF
MOVLW
MOVWF
TABLE 5-5:
TABLE 5-6:
DS30559A-page 34
Name
RC0
Address Name
07h
87h
Legend: x = unknown, u = unchanged.
RC1
RC2
RC3
RC4
RC5
RC6
RC7
Legend: ST = Schmitt Trigger input
PORTC
STATUS, RP0
0xCF
TRISC
PORTC and TRISC Registers
PORTC
TRISC
PORTC FUNCTIONS
SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
INITIALIZING PORTC
TRISC7 TRISC6 TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0 1111 1111
Bit 7
RC7
Bit#
; 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
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
Buffer Type
Bit 6
RC6
ST
ST
ST
ST
ST
ST
ST
ST
Bit 5
RC5
Input/output
Input/output
Input/output
Input/output
Input/output
Input/output
Input/output
Input/output
Function
Bit 4
RC4
Preliminary
Bit 3
RC3
FIGURE 5-7:
Note 1: I/O pins have protection diodes to V
Bit 2
RC2
Data
bus
WR
TRIS
WR
PORT
RD PORT
Bit 1
RC1
TRIS Latch
Data Latch
D
D
CK
CK
RD TRIS
PORTC BLOCK DIAGRAM (IN
I/O PORT MODE)
Bit 0
RC0
Q
Q
1996 Microchip Technology Inc.
Q
xxxx xxxx
Value on:
POR,
BOR
EN
Schmitt
Trigger
input
buffer
EN
D
DD
other resets
Value on all
uuuu uuuu
1111 1111
and V
I/O pin
SS
(1)
.

Related parts for PIC16C662-20/TQ